/** * v2.2.0 — focus-driver validation helpers. * * Title strings reach platform shells (osascript, wmctrl, PowerShell). Even * though the Zod boundary (src/types.ts TERMINAL_TITLE_REF_PATTERN) already * rejects shell metacharacters, the defense-in-depth rule from spawn-agent * land holds: quote-escape before interpolation. If a future schema * relaxation ever lets a `'` or `"` through, the driver still does the right * thing without opening an injection vector. * * Mirrors the patterns in src/spawn/validation.ts. */ /** POSIX single-quote-safe escape: `'` → `'\''`. */ export declare function escapeSingleQuotesPosix(raw: string): string; /** PowerShell single-quote escape: `'` → `''`. */ export declare function escapeSingleQuotesPowershell(raw: string): string; /** AppleScript double-quote + backslash escape. Same rule as bin/spawn-agent.sh. */ export declare function escapeAppleScript(raw: string): string; //# sourceMappingURL=validation.d.ts.map