export interface UseClipboardOptions { /** How long `copied` stays `true` after a successful copy, in ms. Default: 2000. */ timeout?: number; } export interface UseClipboardResult { /** Writes `text` to the clipboard. Resolves `true` on success, `false` on failure. */ copy: (text: string) => Promise; /** `true` for `timeout` ms after a successful copy. */ copied: boolean; /** Why the last copy failed, until the next attempt. */ error: Error | null; /** Clears `copied` and `error` early. */ reset: () => void; } export declare function useClipboard({ timeout }?: UseClipboardOptions): UseClipboardResult; export default useClipboard;