/** * Copy text to the clipboard, falling back to a hidden textarea when the async * Clipboard API is unavailable *or* rejects (denied permission, unfocused * document, sandboxed iframe — all common). * * Lives in its own module so components can use it without importing * `utils/copyToClipboard`, which re-exports components and would cycle. */ export declare const copyTextToClipboard: (text: string, onCopy?: (text: string, success: boolean) => void, onError?: (error: Error) => void) => Promise; export default copyTextToClipboard;