@copilotkit/shared
Version:
<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />
14 lines • 508 B
text/typescript
//#region src/utils/clipboard.d.ts
/**
* Safely copies text to the clipboard.
*
* Checks that the Clipboard API is available before attempting the write,
* and catches any errors (e.g. permission denied, insecure context).
*
* @param text - The text to copy to the clipboard.
* @returns `true` if the text was successfully copied, `false` otherwise.
*/
declare function copyToClipboard(text: string): Promise<boolean>;
//#endregion
export { copyToClipboard };
//# sourceMappingURL=clipboard.d.mts.map