export declare const BASE_RESERVED_CHARACTERS = " *,\\()!<>=\"$:[\\]~"; export declare const RESERVED_CHARACTERS = " *,\\()!<>=\"$:[\\]~\\\\"; /** * Regex that matches all characters that need to be escaped, but are not. * The backslash needs to be excluded in the BASE_RESERVED_CHARACTERS to not get * overlapping matches. * E.g. foo = \* * Should not match, but would if we included the backslash in the first character set. * Regex + Javascript string escaping = Fun with backslashes. * https://regex101.com/r/gPeWnE * @internal */ export declare const NEEDS_ESCAPING_REGEX = "(?=\"$:[\\]~]|(\\\\$)"; /** * Regex that matches all escaped characters, including the escape character and escaped character. * https://regex101.com/r/LNo0qJ/1 * @internal */ export declare const ESCAPED_CHARACTERS_REGEX: RegExp; /** * Escapes a suggestion value by wrapping it in double quotes if it contains * reserved characters that need escaping. * * @param value - The suggestion value to escape. * @returns The escaped suggestion value, wrapped in double quotes if necessary. * @public */ export declare function escapeSuggestion(value: string): string;