export declare function normalizeText(value: string): string; export declare function containsPhrase(value: string, phrase: string): boolean; export declare function tokenize(value: string): string[]; export declare function overlapRatio(left: string[], right: string[]): number; export declare function clamp(value: number, minimum?: number, maximum?: number): number; export declare function compactWhitespace(value: string): string; export declare function stripControlCharacters(value: string): string; export declare function contentFingerprint(value: string): string; /** * A bounded `"Name: message"` summary of a caught error, for persisting to * durable run/audit records (e.g. `consolidation_records.metadata`) where * `error.name` alone ("TypeError") gives no way to tell two different * failures apart. These are internal processing errors (an embedding * backend failure, a consolidation pipeline error), not raw user input, but * a library or driver error can still echo back a connection string, * file path, or other operational detail it was given -- `error.message` * is redacted the same way captured session text is (`sensitive-data.ts`) * before this becomes a relied-on diagnostics surface, and control * characters are stripped so a persisted record can't smuggle terminal * escape sequences into a human reviewer's tooling. Capped since a * pathological `.message` (e.g. a library that embeds a full stack trace) * should not balloon a persisted JSONB column unbounded. */ export declare function describeError(error: unknown, maxLength?: number): string;