/** * A mapping between a token and its string value. * * @since v0.3.0 */ export interface Tokens extends Record { } /** * Creates {@link Tokens} record from a given array of positional tokens, * where each token is an index of each value in the given array. * * If given a {@link Tokens} object returns the given object. * * @since v0.3.0 */ export declare function tokens(tokens: unknown[] | Tokens): Tokens; /** * Creates a token RegExp from a key. * * @protected * * @since v0.3.0 */ export declare function tokenKey(key: string): RegExp;