export declare const WINDOW = 20; export declare const TOKEN_WINDOWS: readonly [8, 10]; export declare const KEY_STRUCTURE: string[]; export declare function normalizeText(s: string): string; export declare function fpHash(window: string): string; /** Private text without the record identifiers it mentions. An agent reads an issue, task or request id in a command's * output and passes it back to the same tool; fingerprinting the id made that call a private-text leak. UUIDs on a * line that names a credential stay. Credential files are fingerprinted whole (the caller passes their text as is). */ export declare function withoutRecordIds(text: string): string; /** Windows of the private text at every STRIDE-th position: any leaked run of WINDOW+STRIDE-1 normalized chars hits one. */ export declare function fingerprints(text: string): string[]; export declare function piiTokens(text: string): string[]; export declare const SECRET_PATTERNS: ReadonlyArray; export declare function secretPattern(texts: readonly string[]): string | undefined; export declare const CONFUSABLE: Record; /** Letters and digits only, lower-cased: separators, case, spacing and look-alike letters do not hide a key. */ export declare function alnum(s: string): string; /** Key-like values in private text: every random-looking run of a credential file, and every well-known * secret format wherever it was read. Words, paths and host names are not random enough to count. */ export declare function secretValues(text: string, credentialFile: boolean): string[]; /** Normalized credentials for the original strong-window check. Raw values exist only transiently. */ export declare function secretTokens(text: string, credentialFile: boolean): string[]; /** Known providers' alphabetic payload prefixes are still secret: do not skip them merely because the first * digit comes late. Keep every previously indexed window. Generic values retain the old conservative start: * public word-based environment values ending in a year must not gain new hard-denial substrings. */ export declare function tokenFingerprintStart(a: string): number; /** Windows hold both a letter and a digit; alphabetic-only words are not strong credential evidence. * Public format/DER structure is excluded. The 8/10-character thresholds and stored hash format are unchanged. */ export declare function tokenFingerprints(tokens: readonly string[]): string[]; /** Every window of letters and digits of both token sizes, forwards and backwards: what a call is checked by. */ export declare function tokenWindows(text: string): string[]; //# sourceMappingURL=flow-guard-fingerprints.d.ts.map