cyphertap
Version:
Nostr, Lightning and Ecash on a single Button component
12 lines (11 loc) • 438 B
TypeScript
/**
* Utility function to copy text to clipboard
* @param text Text to copy to clipboard
* @returns Promise that resolves when the text is copied
*/
export declare function copyToClipboard(text: string, label: string): Promise<void>;
/**
* Pastes text from clipboard if available
* @returns Promise with the clipboard text or null if not supported/permitted
*/
export declare function pasteFromClipboard(): Promise<string | null>;