/** Read plain text from the system clipboard. */ export declare function readClipboardText(): Promise; /** * Windows writer: `clip.exe` decodes stdin with the console code page, so UTF-8 accents * arrive corrupted, and UTF-16LE input either keeps its BOM in the clipboard or is * misdetected without one (CJK). PowerShell reads stdin as UTF-8 and calls Set-Clipboard; * the text never touches the command line, so nothing is interpolated or escaped. */ export declare const WINDOWS_SET_CLIPBOARD_SCRIPT = "$ErrorActionPreference = 'Stop'; [Console]::InputEncoding = New-Object System.Text.UTF8Encoding $false; Set-Clipboard -Value ([Console]::In.ReadToEnd())"; export declare function copyToClipboard(text: string): Promise; //# sourceMappingURL=clipboard.d.ts.map