UNPKG

750 BTypeScriptView Raw
1/**
2 * Key is opaque string up to 256 characters printable. It MUST begin with a
3 * lowercase letter, and can only contain lowercase letters a-z, digits 0-9,
4 * underscores _, dashes -, asterisks *, and forward slashes /.
5 * For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the
6 * vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.
7 * see https://www.w3.org/TR/trace-context/#key
8 */
9export declare function validateKey(key: string): boolean;
10/**
11 * Value is opaque string up to 256 characters printable ASCII RFC0020
12 * characters (i.e., the range 0x20 to 0x7E) except comma , and =.
13 */
14export declare function validateValue(value: string): boolean;
15//# sourceMappingURL=tracestate-validators.d.ts.map
\No newline at end of file