export interface TelegramLogSink { debug?(message: string, metadata?: Record): void; info?(message: string, metadata?: Record): void; warn?(message: string, metadata?: Record): void; error?(message: string, metadata?: Record): void; } /** Redact configured and recognizable Telegram Bot API tokens from arbitrary text. */ export declare function redactTelegramSecretText(text: string, knownSecrets?: readonly string[]): string; /** Render one error message without allowing Telegram credentials into logs. */ export declare function redactTelegramErrorMessage(error: unknown, knownSecrets?: readonly string[]): string; /** * Wrap a logger at the adapter boundary so future log sites are safe even when * they pass nested errors, causes, request objects, URLs, or stacks. */ export declare function createSecretSafeTelegramLogger(logger: T | undefined, knownSecrets: readonly string[]): T | undefined; /** Return an Error safe to hand to host callbacks that may log it themselves. */ export declare function redactTelegramError(error: unknown, knownSecrets: readonly string[]): Error; //# sourceMappingURL=log-redaction.d.ts.map