UNPKG

@tanstack/ai

Version:

Type-safe TypeScript AI SDK for streaming chat, tool calling, agents, structured outputs, and multimodal generation.

8 lines (7 loc) • 378 B
export declare function maskKey(key: string): string; /** * Replace each of `secrets` in `text` with `[redacted]`: the raw value, its * JSON-escaped form, and its URL-encoded form. A secret shorter than 6 * characters is left alone, so a tiny value does not redact common words. */ export declare function scrubSecrets(text: string, secrets: ReadonlyArray<string>): string;