/** * Define the pattern for a valid, optional, token namespace prefix * * **Note:**\ * There is a long-standing bug that namespaces can start and end with spaces.\ * This bug **will not** be fixed; doing so could potentially break dashboards. */ export declare const TOKEN_NAMESPACE_PREFIX_PATTERN: string; /** * Token name validation rules: * 1. Must not start with a space * 2. Must not end with a space * 3. Must contain only: * * Alphanumeric * * Underscore * * Space * * Dash * * Period * * @see {@link DEFAULT_ALLOWABLE_NAME_PATTERN} */ export declare const TOKEN_NAME_CHARS_PATTERN: string; /** * Additional regex used to test an entire string if matches token * * @deprecated Shared use of a common RegExp instance may surface fringe * bugs. Consumers should own their own RegExp compilation and lifecycle. */ export declare const TokenNameRegExp: RegExp; /** Full token content (non-delimited) pattern */ export declare const TOKEN_NO_DELIMITERS_PATTERN: string; /** * @private * Pattern for a token delimiter */ export declare const DELIMITER: string; /** * @private * Pattern for an escaped token delimiter */ export declare const ESCAPED_DELIMITER: string; /** Identify valid tokens and escaped delimiters (`$$`) */ export declare const TOKEN_REGEXP_SOURCE: string; /** * A pre-compiled global RegExp whose source matches both delimited tokens and * the literal string `$$` * * @deprecated Shared use of a common RegExp instance may surface fringe bugs. Consumers should own their own RegExp compilation and lifecycle. */ export declare const TOKEN_OR_DOLLAR_RE: RegExp; /** * A pre-compiled RegExp whose source matches delimited tokens but does not * match the literal string `$$` * * @deprecated Shared use of a common RegExp instance may surface fringe bugs. Consumers should own their own RegExp compilation and lifecycle. */ export declare const TokenRegExp: RegExp; /** * Set of regex patterns to extract tokens from a string */ /** * Create a RegExp instance matching {@link TOKEN_OR_DOLLAR_RE `TOKEN_OR_DOLLAR_RE`}\ * e.g. `$$`, `$token1$` * * @deprecated Token identification should be done using the {@link TOKEN_REGEXP_SOURCE `TOKEN_REGEXP_SOURCE`} pattern */ export declare const doubleDollarOrTokenRegex: () => RegExp; /** * Create a RegExp instance matching adjacent {@link TOKEN_PATTERN `TOKEN_PATTERN`} at the start of a line\ * e.g. `$token1$$token2$` * * @deprecated Token identification should be done using the {@link TOKEN_REGEXP_SOURCE `TOKEN_REGEXP_SOURCE`} pattern */ export declare const adjacentTokenRegex: () => RegExp; /** * Create a RegExp instance matching {@link TOKEN_PATTERN `TOKEN_PATTERN`} suffixed by `$$` at the start of a line\ * e.g. `$token1$$$` * * @deprecated Token identification should be done using the {@link TOKEN_REGEXP_SOURCE `TOKEN_REGEXP_SOURCE`} pattern */ export declare const tokenWithTrailingDoubleDollarRegex: () => RegExp; /** * Create a RegExp instance matching {@link TOKEN_PATTERN `TOKEN_PATTERN`} suffixed by `$` at the start of a line\ * e.g. `$token1$$` * * @deprecated Token identification should be done using the {@link TOKEN_REGEXP_SOURCE `TOKEN_REGEXP_SOURCE`} pattern */ export declare const tokenWithTrailingDollarRegex: () => RegExp; //# sourceMappingURL=regexHelpers.d.ts.map