@vue/shared 3.2.47 → 3.3.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/shared.d.ts CHANGED
@@ -1,363 +1,308 @@
1
- /**
2
- * @private
3
- */
4
- export declare const camelize: (str: string) => string;
5
-
6
- /**
7
- * @private
8
- */
9
- export declare const capitalize: (str: string) => string;
10
-
11
- export declare const def: (obj: object, key: string | symbol, value: any) => void;
12
-
13
- export declare const EMPTY_ARR: readonly never[];
14
-
15
- export declare const EMPTY_OBJ: {
16
- readonly [key: string]: any;
17
- };
18
-
19
- export declare function escapeHtml(string: unknown): string;
20
-
21
- export declare function escapeHtmlComment(src: string): string;
22
-
23
- export declare const extend: {
24
- <T extends {}, U>(target: T, source: U): T & U;
25
- <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
26
- <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
27
- (target: object, ...sources: any[]): any;
28
- };
29
-
30
- export declare function generateCodeFrame(source: string, start?: number, end?: number): string;
31
-
32
- export declare function genPropsAccessExp(name: string): string;
33
-
34
- export declare const getGlobalThis: () => any;
35
-
36
- export declare const hasChanged: (value: any, oldValue: any) => boolean;
37
-
38
- export declare const hasOwn: (val: object, key: string | symbol) => key is never;
39
-
40
- /**
41
- * @private
42
- */
43
- export declare const hyphenate: (str: string) => string;
44
-
45
- export declare type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
46
-
47
- /**
48
- * Boolean attributes should be included if the value is truthy or ''.
49
- * e.g. `<select multiple>` compiles to `{ multiple: '' }`
50
- */
51
- export declare function includeBooleanAttr(value: unknown): boolean;
52
-
53
- export declare const invokeArrayFns: (fns: Function[], arg?: any) => void;
54
-
55
- export declare const isArray: (arg: any) => arg is any[];
56
-
57
- /**
58
- * The full list is needed during SSR to produce the correct initial markup.
59
- */
60
- export declare const isBooleanAttr: (key: string) => boolean;
61
-
62
- export declare const isBuiltInDirective: (key: string) => boolean;
63
-
64
- export declare const isDate: (val: unknown) => val is Date;
65
-
66
- export declare const isFunction: (val: unknown) => val is Function;
67
-
68
- export declare const isGloballyWhitelisted: (key: string) => boolean;
69
-
70
- /**
71
- * Compiler only.
72
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
73
- */
74
- export declare const isHTMLTag: (key: string) => boolean;
75
-
76
- export declare const isIntegerKey: (key: unknown) => boolean;
77
-
78
- /**
79
- * Known attributes, this is used for stringification of runtime static nodes
80
- * so that we don't stringify bindings that cannot be set from HTML.
81
- * Don't also forget to allow `data-*` and `aria-*`!
82
- * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
83
- */
84
- export declare const isKnownHtmlAttr: (key: string) => boolean;
85
-
86
- /**
87
- * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
88
- */
89
- export declare const isKnownSvgAttr: (key: string) => boolean;
90
-
91
- export declare const isMap: (val: unknown) => val is Map<any, any>;
92
-
93
- export declare const isModelListener: (key: string) => boolean;
94
-
95
- export declare const isObject: (val: unknown) => val is Record<any, any>;
96
-
97
- export declare const isOn: (key: string) => boolean;
98
-
99
- export declare const isPlainObject: (val: unknown) => val is object;
100
-
101
- export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
102
-
103
- export declare const isRegExp: (val: unknown) => val is RegExp;
104
-
105
- export declare const isReservedProp: (key: string) => boolean;
106
-
107
- export declare const isSet: (val: unknown) => val is Set<any>;
108
-
109
- export declare const isSpecialBooleanAttr: (key: string) => boolean;
110
-
111
- export declare function isSSRSafeAttrName(name: string): boolean;
112
-
113
- export declare const isString: (val: unknown) => val is string;
114
-
115
- /**
116
- * Compiler only.
117
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
118
- */
119
- export declare const isSVGTag: (key: string) => boolean;
120
-
121
- export declare const isSymbol: (val: unknown) => val is symbol;
122
-
123
- /**
124
- * Compiler only.
125
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
126
- */
127
- export declare const isVoidTag: (key: string) => boolean;
128
-
129
- export declare function looseEqual(a: any, b: any): boolean;
130
-
131
- export declare function looseIndexOf(arr: any[], val: any): number;
132
-
133
- export declare type LooseRequired<T> = {
134
- [P in keyof (T & Required<T>)]: T[P];
135
- };
136
-
137
- /**
138
- * "123-foo" will be parsed to 123
139
- * This is used for the .number modifier in v-model
140
- */
141
- export declare const looseToNumber: (val: any) => any;
142
-
143
- /**
144
- * Make a map and return a function for checking if a key
145
- * is in that map.
146
- * IMPORTANT: all calls of this function must be prefixed with
147
- * \/\*#\_\_PURE\_\_\*\/
148
- * So that rollup can tree-shake them if necessary.
149
- */
150
- export declare function makeMap(str: string, expectsLowerCase?: boolean): (key: string) => boolean;
151
-
152
- /**
153
- * Always return false.
154
- */
155
- export declare const NO: () => boolean;
156
-
157
- export declare const NOOP: () => void;
158
-
159
- export declare function normalizeClass(value: unknown): string;
160
-
161
- export declare type NormalizedStyle = Record<string, string | number>;
162
-
163
- export declare function normalizeProps(props: Record<string, any> | null): Record<string, any> | null;
164
-
165
- export declare function normalizeStyle(value: unknown): NormalizedStyle | string | undefined;
166
-
167
- export declare const objectToString: () => string;
168
-
169
- export declare function parseStringStyle(cssText: string): NormalizedStyle;
170
-
171
- /**
172
- * dev only flag -> name mapping
173
- */
174
- export declare const PatchFlagNames: {
175
- [x: number]: string;
176
- };
177
-
178
- /**
179
- * Patch flags are optimization hints generated by the compiler.
180
- * when a block with dynamicChildren is encountered during diff, the algorithm
181
- * enters "optimized mode". In this mode, we know that the vdom is produced by
182
- * a render function generated by the compiler, so the algorithm only needs to
183
- * handle updates explicitly marked by these patch flags.
184
- *
185
- * Patch flags can be combined using the | bitwise operator and can be checked
186
- * using the & operator, e.g.
187
- *
188
- * ```js
189
- * const flag = TEXT | CLASS
190
- * if (flag & TEXT) { ... }
191
- * ```
192
- *
193
- * Check the `patchElement` function in '../../runtime-core/src/renderer.ts' to see how the
194
- * flags are handled during diff.
195
- */
196
- export declare const enum PatchFlags {
197
- /**
198
- * Indicates an element with dynamic textContent (children fast path)
199
- */
200
- TEXT = 1,
201
- /**
202
- * Indicates an element with dynamic class binding.
203
- */
204
- CLASS = 2,
205
- /**
206
- * Indicates an element with dynamic style
207
- * The compiler pre-compiles static string styles into static objects
208
- * + detects and hoists inline static objects
209
- * e.g. `style="color: red"` and `:style="{ color: 'red' }"` both get hoisted
210
- * as:
211
- * ```js
212
- * const style = { color: 'red' }
213
- * render() { return e('div', { style }) }
214
- * ```
215
- */
216
- STYLE = 4,
217
- /**
218
- * Indicates an element that has non-class/style dynamic props.
219
- * Can also be on a component that has any dynamic props (includes
220
- * class/style). when this flag is present, the vnode also has a dynamicProps
221
- * array that contains the keys of the props that may change so the runtime
222
- * can diff them faster (without having to worry about removed props)
223
- */
224
- PROPS = 8,
225
- /**
226
- * Indicates an element with props with dynamic keys. When keys change, a full
227
- * diff is always needed to remove the old key. This flag is mutually
228
- * exclusive with CLASS, STYLE and PROPS.
229
- */
230
- FULL_PROPS = 16,
231
- /**
232
- * Indicates an element with event listeners (which need to be attached
233
- * during hydration)
234
- */
235
- HYDRATE_EVENTS = 32,
236
- /**
237
- * Indicates a fragment whose children order doesn't change.
238
- */
239
- STABLE_FRAGMENT = 64,
240
- /**
241
- * Indicates a fragment with keyed or partially keyed children
242
- */
243
- KEYED_FRAGMENT = 128,
244
- /**
245
- * Indicates a fragment with unkeyed children.
246
- */
247
- UNKEYED_FRAGMENT = 256,
248
- /**
249
- * Indicates an element that only needs non-props patching, e.g. ref or
250
- * directives (onVnodeXXX hooks). since every patched vnode checks for refs
251
- * and onVnodeXXX hooks, it simply marks the vnode so that a parent block
252
- * will track it.
253
- */
254
- NEED_PATCH = 512,
255
- /**
256
- * Indicates a component with dynamic slots (e.g. slot that references a v-for
257
- * iterated value, or dynamic slot names).
258
- * Components with this flag are always force updated.
259
- */
260
- DYNAMIC_SLOTS = 1024,
261
- /**
262
- * Indicates a fragment that was created only because the user has placed
263
- * comments at the root level of a template. This is a dev-only flag since
264
- * comments are stripped in production.
265
- */
266
- DEV_ROOT_FRAGMENT = 2048,
267
- /**
268
- * SPECIAL FLAGS -------------------------------------------------------------
269
- * Special flags are negative integers. They are never matched against using
270
- * bitwise operators (bitwise matching should only happen in branches where
271
- * patchFlag > 0), and are mutually exclusive. When checking for a special
272
- * flag, simply check patchFlag === FLAG.
273
- */
274
- /**
275
- * Indicates a hoisted static vnode. This is a hint for hydration to skip
276
- * the entire sub tree since static content never needs to be updated.
277
- */
278
- HOISTED = -1,
279
- /**
280
- * A special flag that indicates that the diffing algorithm should bail out
281
- * of optimized mode. For example, on block fragments created by renderSlot()
282
- * when encountering non-compiler generated slots (i.e. manually written
283
- * render functions, which should always be fully diffed)
284
- * OR manually cloneVNodes
285
- */
286
- BAIL = -2
287
- }
288
-
289
- export declare const propsToAttrMap: Record<string, string | undefined>;
290
-
291
- export declare const remove: <T>(arr: T[], el: T) => void;
292
-
293
- export declare const enum ShapeFlags {
294
- ELEMENT = 1,
295
- FUNCTIONAL_COMPONENT = 2,
296
- STATEFUL_COMPONENT = 4,
297
- TEXT_CHILDREN = 8,
298
- ARRAY_CHILDREN = 16,
299
- SLOTS_CHILDREN = 32,
300
- TELEPORT = 64,
301
- SUSPENSE = 128,
302
- COMPONENT_SHOULD_KEEP_ALIVE = 256,
303
- COMPONENT_KEPT_ALIVE = 512,
304
- COMPONENT = 6
305
- }
306
-
307
- export declare const enum SlotFlags {
308
- /**
309
- * Stable slots that only reference slot props or context state. The slot
310
- * can fully capture its own dependencies so when passed down the parent won't
311
- * need to force the child to update.
312
- */
313
- STABLE = 1,
314
- /**
315
- * Slots that reference scope variables (v-for or an outer slot prop), or
316
- * has conditional structure (v-if, v-for). The parent will need to force
317
- * the child to update because the slot does not fully capture its dependencies.
318
- */
319
- DYNAMIC = 2,
320
- /**
321
- * `<slot/>` being forwarded into a child component. Whether the parent needs
322
- * to update the child is dependent on what kind of slots the parent itself
323
- * received. This has to be refined at runtime, when the child's vnode
324
- * is being created (in `normalizeChildren`)
325
- */
326
- FORWARDED = 3
327
- }
328
-
329
- /**
330
- * Dev only
331
- */
332
- export declare const slotFlagsText: {
333
- 1: string;
334
- 2: string;
335
- 3: string;
336
- };
337
-
338
- export declare function stringifyStyle(styles: NormalizedStyle | string | undefined): string;
339
-
340
- /**
341
- * For converting {{ interpolation }} values to displayed strings.
342
- * @private
343
- */
344
- export declare const toDisplayString: (val: unknown) => string;
345
-
346
- /**
347
- * @private
348
- */
349
- export declare const toHandlerKey: (str: string) => string;
350
-
351
- /**
352
- * Only conerces number-like strings
353
- * "123-foo" will be returned as-is
354
- */
355
- export declare const toNumber: (val: any) => any;
356
-
357
- export declare const toRawType: (value: unknown) => string;
358
-
359
- export declare const toTypeString: (value: unknown) => string;
360
-
361
- export declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
362
-
363
- export { }
1
+ /**
2
+ * Make a map and return a function for checking if a key
3
+ * is in that map.
4
+ * IMPORTANT: all calls of this function must be prefixed with
5
+ * \/\*#\_\_PURE\_\_\*\/
6
+ * So that rollup can tree-shake them if necessary.
7
+ */
8
+ declare function makeMap(str: string, expectsLowerCase?: boolean): (key: string) => boolean;
9
+
10
+ /**
11
+ * Patch flags are optimization hints generated by the compiler.
12
+ * when a block with dynamicChildren is encountered during diff, the algorithm
13
+ * enters "optimized mode". In this mode, we know that the vdom is produced by
14
+ * a render function generated by the compiler, so the algorithm only needs to
15
+ * handle updates explicitly marked by these patch flags.
16
+ *
17
+ * Patch flags can be combined using the | bitwise operator and can be checked
18
+ * using the & operator, e.g.
19
+ *
20
+ * ```js
21
+ * const flag = TEXT | CLASS
22
+ * if (flag & TEXT) { ... }
23
+ * ```
24
+ *
25
+ * Check the `patchElement` function in '../../runtime-core/src/renderer.ts' to see how the
26
+ * flags are handled during diff.
27
+ */
28
+ declare const enum PatchFlags {
29
+ /**
30
+ * Indicates an element with dynamic textContent (children fast path)
31
+ */
32
+ TEXT = 1,
33
+ /**
34
+ * Indicates an element with dynamic class binding.
35
+ */
36
+ CLASS = 2,
37
+ /**
38
+ * Indicates an element with dynamic style
39
+ * The compiler pre-compiles static string styles into static objects
40
+ * + detects and hoists inline static objects
41
+ * e.g. `style="color: red"` and `:style="{ color: 'red' }"` both get hoisted
42
+ * as:
43
+ * ```js
44
+ * const style = { color: 'red' }
45
+ * render() { return e('div', { style }) }
46
+ * ```
47
+ */
48
+ STYLE = 4,
49
+ /**
50
+ * Indicates an element that has non-class/style dynamic props.
51
+ * Can also be on a component that has any dynamic props (includes
52
+ * class/style). when this flag is present, the vnode also has a dynamicProps
53
+ * array that contains the keys of the props that may change so the runtime
54
+ * can diff them faster (without having to worry about removed props)
55
+ */
56
+ PROPS = 8,
57
+ /**
58
+ * Indicates an element with props with dynamic keys. When keys change, a full
59
+ * diff is always needed to remove the old key. This flag is mutually
60
+ * exclusive with CLASS, STYLE and PROPS.
61
+ */
62
+ FULL_PROPS = 16,
63
+ /**
64
+ * Indicates an element with event listeners (which need to be attached
65
+ * during hydration)
66
+ */
67
+ HYDRATE_EVENTS = 32,
68
+ /**
69
+ * Indicates a fragment whose children order doesn't change.
70
+ */
71
+ STABLE_FRAGMENT = 64,
72
+ /**
73
+ * Indicates a fragment with keyed or partially keyed children
74
+ */
75
+ KEYED_FRAGMENT = 128,
76
+ /**
77
+ * Indicates a fragment with unkeyed children.
78
+ */
79
+ UNKEYED_FRAGMENT = 256,
80
+ /**
81
+ * Indicates an element that only needs non-props patching, e.g. ref or
82
+ * directives (onVnodeXXX hooks). since every patched vnode checks for refs
83
+ * and onVnodeXXX hooks, it simply marks the vnode so that a parent block
84
+ * will track it.
85
+ */
86
+ NEED_PATCH = 512,
87
+ /**
88
+ * Indicates a component with dynamic slots (e.g. slot that references a v-for
89
+ * iterated value, or dynamic slot names).
90
+ * Components with this flag are always force updated.
91
+ */
92
+ DYNAMIC_SLOTS = 1024,
93
+ /**
94
+ * Indicates a fragment that was created only because the user has placed
95
+ * comments at the root level of a template. This is a dev-only flag since
96
+ * comments are stripped in production.
97
+ */
98
+ DEV_ROOT_FRAGMENT = 2048,
99
+ /**
100
+ * SPECIAL FLAGS -------------------------------------------------------------
101
+ * Special flags are negative integers. They are never matched against using
102
+ * bitwise operators (bitwise matching should only happen in branches where
103
+ * patchFlag > 0), and are mutually exclusive. When checking for a special
104
+ * flag, simply check patchFlag === FLAG.
105
+ */
106
+ /**
107
+ * Indicates a hoisted static vnode. This is a hint for hydration to skip
108
+ * the entire sub tree since static content never needs to be updated.
109
+ */
110
+ HOISTED = -1,
111
+ /**
112
+ * A special flag that indicates that the diffing algorithm should bail out
113
+ * of optimized mode. For example, on block fragments created by renderSlot()
114
+ * when encountering non-compiler generated slots (i.e. manually written
115
+ * render functions, which should always be fully diffed)
116
+ * OR manually cloneVNodes
117
+ */
118
+ BAIL = -2
119
+ }
120
+ /**
121
+ * dev only flag -> name mapping
122
+ */
123
+ declare const PatchFlagNames: {
124
+ [x: number]: string;
125
+ };
126
+
127
+ declare const enum ShapeFlags {
128
+ ELEMENT = 1,
129
+ FUNCTIONAL_COMPONENT = 2,
130
+ STATEFUL_COMPONENT = 4,
131
+ TEXT_CHILDREN = 8,
132
+ ARRAY_CHILDREN = 16,
133
+ SLOTS_CHILDREN = 32,
134
+ TELEPORT = 64,
135
+ SUSPENSE = 128,
136
+ COMPONENT_SHOULD_KEEP_ALIVE = 256,
137
+ COMPONENT_KEPT_ALIVE = 512,
138
+ COMPONENT = 6
139
+ }
140
+
141
+ declare const enum SlotFlags {
142
+ /**
143
+ * Stable slots that only reference slot props or context state. The slot
144
+ * can fully capture its own dependencies so when passed down the parent won't
145
+ * need to force the child to update.
146
+ */
147
+ STABLE = 1,
148
+ /**
149
+ * Slots that reference scope variables (v-for or an outer slot prop), or
150
+ * has conditional structure (v-if, v-for). The parent will need to force
151
+ * the child to update because the slot does not fully capture its dependencies.
152
+ */
153
+ DYNAMIC = 2,
154
+ /**
155
+ * `<slot/>` being forwarded into a child component. Whether the parent needs
156
+ * to update the child is dependent on what kind of slots the parent itself
157
+ * received. This has to be refined at runtime, when the child's vnode
158
+ * is being created (in `normalizeChildren`)
159
+ */
160
+ FORWARDED = 3
161
+ }
162
+ /**
163
+ * Dev only
164
+ */
165
+ declare const slotFlagsText: {
166
+ 1: string;
167
+ 2: string;
168
+ 3: string;
169
+ };
170
+
171
+ declare const isGloballyWhitelisted: (key: string) => boolean;
172
+
173
+ declare function generateCodeFrame(source: string, start?: number, end?: number): string;
174
+
175
+ export type NormalizedStyle = Record<string, string | number>;
176
+ declare function normalizeStyle(value: unknown): NormalizedStyle | string | undefined;
177
+ declare function parseStringStyle(cssText: string): NormalizedStyle;
178
+ declare function stringifyStyle(styles: NormalizedStyle | string | undefined): string;
179
+ declare function normalizeClass(value: unknown): string;
180
+ declare function normalizeProps(props: Record<string, any> | null): Record<string, any> | null;
181
+
182
+ /**
183
+ * Compiler only.
184
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
185
+ */
186
+ declare const isHTMLTag: (key: string) => boolean;
187
+ /**
188
+ * Compiler only.
189
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
190
+ */
191
+ declare const isSVGTag: (key: string) => boolean;
192
+ /**
193
+ * Compiler only.
194
+ * Do NOT use in runtime code paths unless behind `__DEV__` flag.
195
+ */
196
+ declare const isVoidTag: (key: string) => boolean;
197
+
198
+ declare const isSpecialBooleanAttr: (key: string) => boolean;
199
+ /**
200
+ * The full list is needed during SSR to produce the correct initial markup.
201
+ */
202
+ declare const isBooleanAttr: (key: string) => boolean;
203
+ /**
204
+ * Boolean attributes should be included if the value is truthy or ''.
205
+ * e.g. `<select multiple>` compiles to `{ multiple: '' }`
206
+ */
207
+ declare function includeBooleanAttr(value: unknown): boolean;
208
+ declare function isSSRSafeAttrName(name: string): boolean;
209
+ declare const propsToAttrMap: Record<string, string | undefined>;
210
+ /**
211
+ * Known attributes, this is used for stringification of runtime static nodes
212
+ * so that we don't stringify bindings that cannot be set from HTML.
213
+ * Don't also forget to allow `data-*` and `aria-*`!
214
+ * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
215
+ */
216
+ declare const isKnownHtmlAttr: (key: string) => boolean;
217
+ /**
218
+ * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
219
+ */
220
+ declare const isKnownSvgAttr: (key: string) => boolean;
221
+
222
+ declare function escapeHtml(string: unknown): string;
223
+ declare function escapeHtmlComment(src: string): string;
224
+
225
+ declare function looseEqual(a: any, b: any): boolean;
226
+ declare function looseIndexOf(arr: any[], val: any): number;
227
+
228
+ /**
229
+ * For converting {{ interpolation }} values to displayed strings.
230
+ * @private
231
+ */
232
+ declare const toDisplayString: (val: unknown) => string;
233
+
234
+ export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
235
+ export type LooseRequired<T> = {
236
+ [P in keyof (T & Required<T>)]: T[P];
237
+ };
238
+ export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
239
+
240
+ declare const EMPTY_OBJ: {
241
+ readonly [key: string]: any;
242
+ };
243
+ declare const EMPTY_ARR: readonly never[];
244
+ declare const NOOP: () => void;
245
+ /**
246
+ * Always return false.
247
+ */
248
+ declare const NO: () => boolean;
249
+ declare const isOn: (key: string) => boolean;
250
+ declare const isModelListener: (key: string) => boolean;
251
+ declare const extend: {
252
+ <T extends {}, U>(target: T, source: U): T & U;
253
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
254
+ <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
255
+ (target: object, ...sources: any[]): any;
256
+ };
257
+ declare const remove: <T>(arr: T[], el: T) => void;
258
+ declare const hasOwn: (val: object, key: string | symbol) => key is never;
259
+ declare const isArray: (arg: any) => arg is any[];
260
+ declare const isMap: (val: unknown) => val is Map<any, any>;
261
+ declare const isSet: (val: unknown) => val is Set<any>;
262
+ declare const isDate: (val: unknown) => val is Date;
263
+ declare const isRegExp: (val: unknown) => val is RegExp;
264
+ declare const isFunction: (val: unknown) => val is Function;
265
+ declare const isString: (val: unknown) => val is string;
266
+ declare const isSymbol: (val: unknown) => val is symbol;
267
+ declare const isObject: (val: unknown) => val is Record<any, any>;
268
+ declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
269
+ declare const objectToString: () => string;
270
+ declare const toTypeString: (value: unknown) => string;
271
+ declare const toRawType: (value: unknown) => string;
272
+ declare const isPlainObject: (val: unknown) => val is object;
273
+ declare const isIntegerKey: (key: unknown) => boolean;
274
+ declare const isReservedProp: (key: string) => boolean;
275
+ declare const isBuiltInDirective: (key: string) => boolean;
276
+ /**
277
+ * @private
278
+ */
279
+ declare const camelize: (str: string) => string;
280
+ /**
281
+ * @private
282
+ */
283
+ declare const hyphenate: (str: string) => string;
284
+ /**
285
+ * @private
286
+ */
287
+ declare const capitalize: (str: string) => string;
288
+ /**
289
+ * @private
290
+ */
291
+ declare const toHandlerKey: (str: string) => string;
292
+ declare const hasChanged: (value: any, oldValue: any) => boolean;
293
+ declare const invokeArrayFns: (fns: Function[], arg?: any) => void;
294
+ declare const def: (obj: object, key: string | symbol, value: any) => void;
295
+ /**
296
+ * "123-foo" will be parsed to 123
297
+ * This is used for the .number modifier in v-model
298
+ */
299
+ declare const looseToNumber: (val: any) => any;
300
+ /**
301
+ * Only conerces number-like strings
302
+ * "123-foo" will be returned as-is
303
+ */
304
+ declare const toNumber: (val: any) => any;
305
+ declare const getGlobalThis: () => any;
306
+ declare function genPropsAccessExp(name: string): string;
307
+
308
+ export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, camelize, capitalize, def, escapeHtml, escapeHtmlComment, extend, genPropsAccessExp, generateCodeFrame, getGlobalThis, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isArray, isBooleanAttr, isBuiltInDirective, isDate, isFunction, isGloballyWhitelisted, isHTMLTag, isIntegerKey, isKnownHtmlAttr, isKnownSvgAttr, isMap, isModelListener, isObject, isOn, isPlainObject, isPromise, isRegExp, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };