liusuyi
2023-04-24 4737f1e038743ced243c9e52423404d9034d6107
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { Next } from "./types";
/**
 * Quote a string.
 */
export declare function quoteString(str: string): string;
/**
 * Test for valid JavaScript identifier.
 */
export declare const IS_VALID_IDENTIFIER: RegExp;
/**
 * Check if a variable name is valid.
 */
export declare function isValidVariableName(name: PropertyKey): name is string;
/**
 * Quote JavaScript key access.
 */
export declare function quoteKey(key: PropertyKey, next: Next): string | undefined;
/**
 * Serialize the path to a string.
 */
export declare function stringifyPath(path: PropertyKey[], next: Next): string;