export interface UseClipboardReturn { /** Copies text to the clipboard */ copy: (text: string) => Promise; /** Whether the text was successfully copied recently */ copied: boolean; /** Error message if copying failed */ error: Error | null; } /** * Hook to copy text to the user's clipboard with auto-resetting copied state. * * @param timeout Duration in ms to keep the `copied` state as true (default: 2000). * @returns An object with `copy` function, `copied` boolean, and `error`. */ export declare function useClipboard(timeout?: number): UseClipboardReturn;