UNPKG

2.57 kBTypeScriptView Raw
1export declare const Highlight: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2 autoEscape: {
3 type: BooleanConstructor;
4 default: true;
5 };
6 caseSensitive: BooleanConstructor;
7 highlightClass: StringConstructor;
8 highlightTag: {
9 type: import("vue").PropType<keyof HTMLElementTagNameMap>;
10 default: keyof HTMLElementTagNameMap;
11 };
12 keywords: {
13 type: import("vue").PropType<string | string[]>;
14 required: true;
15 };
16 sourceString: {
17 type: import("vue").PropType<string>;
18 default: string;
19 };
20 tag: {
21 type: import("vue").PropType<keyof HTMLElementTagNameMap>;
22 default: keyof HTMLElementTagNameMap;
23 };
24 unhighlightClass: StringConstructor;
25 unhighlightTag: {
26 type: import("vue").PropType<keyof HTMLElementTagNameMap>;
27 default: keyof HTMLElementTagNameMap;
28 };
29}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
30 autoEscape: {
31 type: BooleanConstructor;
32 default: true;
33 };
34 caseSensitive: BooleanConstructor;
35 highlightClass: StringConstructor;
36 highlightTag: {
37 type: import("vue").PropType<keyof HTMLElementTagNameMap>;
38 default: keyof HTMLElementTagNameMap;
39 };
40 keywords: {
41 type: import("vue").PropType<string | string[]>;
42 required: true;
43 };
44 sourceString: {
45 type: import("vue").PropType<string>;
46 default: string;
47 };
48 tag: {
49 type: import("vue").PropType<keyof HTMLElementTagNameMap>;
50 default: keyof HTMLElementTagNameMap;
51 };
52 unhighlightClass: StringConstructor;
53 unhighlightTag: {
54 type: import("vue").PropType<keyof HTMLElementTagNameMap>;
55 default: keyof HTMLElementTagNameMap;
56 };
57}>> & Readonly<{}>, {
58 tag: keyof HTMLElementTagNameMap;
59 autoEscape: boolean;
60 caseSensitive: boolean;
61 highlightTag: keyof HTMLElementTagNameMap;
62 sourceString: string;
63 unhighlightTag: keyof HTMLElementTagNameMap;
64}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
65export default Highlight;
66export { highlightProps } from './Highlight';
67export type { HighlightProps } from './Highlight';
68export type { HighlightThemeVars } from './types';
69declare module 'vue' {
70 interface GlobalComponents {
71 vanHighlight: typeof Highlight;
72 }
73}