/** * OSC-52 clipboard write primitive. * * The terminal-native "set clipboard" sequence: `\e]52;c;\x07`. * Works over SSH because it lives in the byte stream, not in any local * clipboard daemon. Limit comes from terminal buffer caps — most modern * terminals accept ~75k base64 bytes (a few MB rendered, but base64 is the * wire format). We truncate at 74_994 to leave headroom for the framing * bytes (`\e]52;c;` + `\x07`). */ /** Maximum decoded character count we accept before truncation, conservative. */ export declare const OSC52_MAX_BYTES = 74994; /** Buffers the input and returns the OSC-52 sequence ready to write. */ export declare function encodeOsc52(text: string, options?: { primary?: boolean; }): { sequence: string; truncated: boolean; bytes: number; }; /** Convenience: write the sequence with a caller-provided emit function. */ export declare function writeOsc52(write: (s: string) => void, text: string, options?: { primary?: boolean; }): { truncated: boolean; bytes: number; }; //# sourceMappingURL=osc52.d.ts.map