webdev-power-kit
Version:
A powerful toolkit that simplifies access to browser features like clipboard, notifications, battery, vibration, and more — perfect for modern web developers.
12 lines (11 loc) • 388 B
TypeScript
/**
* Copies a given string to the clipboard.
* @param text - The text to copy
* @returns A Promise that resolves when the copy is complete
*/
export declare function copyToClipboard(text: string): Promise<void>;
/**
* Reads the current string from the clipboard.
* @returns A Promise that resolves to clipboard content
*/
export declare function readClipboard(): Promise<string>;