/** * Returns a display-safe copy of `cmd` with sensitive flag values replaced by [REDACTED]. * The original string is unchanged; this is pure and has no side effects. */ export declare function redactCommand(cmd: string): string; /** * Redact a command + argument vector WITHOUT corrupting the array shape. * * Each token is redacted independently (catches attached/equal forms like * `--token=secret`, `-pSECRET`, `TOKEN=secret` within a single arg). Then a * pair-scan handles the split-flag-value case where a bare sensitive flag * (`--token` / `-p`) and its value arrive as two separate args — which * per-token redaction would otherwise miss. This avoids the join→split * round-trip that corrupted args containing spaces. */ export declare function redactCommandArgs(command: string, args: readonly string[]): { command: string; args: string[]; }; //# sourceMappingURL=redact-command.d.ts.map