/** * Copies the provided text to the clipboard using the Clipboard API. * * @param text - The text string to be copied to the clipboard. * @returns A promise that resolves when the text is successfully copied or rejects with an error if the operation fails. * * @example * ```typescript * copyToClipboard('Hello, world!') * .then(() => { * console.log('Text successfully copied!'); * }) * .catch((error) => { * console.error('Failed to copy text:', error); * }); * ``` */ declare const copyToClipboard: (text: string) => Promise; export default copyToClipboard;