export interface UseClipboardOptions { /** Time in ms after which the copied state will reset, 2000 by default */ timeout?: number; } export interface UseClipboardReturnValue { /** Function to copy value to clipboard */ copy: (value: any) => Promise | void; /** Function to reset copied state and error */ reset: () => void; /** Error if copying failed */ error: Error | null; /** Boolean indicating if the value was copied successfully */ copied: boolean; /** The last copied value (stringified) */ lastValue: string | null; /** True if clipboard API not available */ unsupported: boolean; } export declare function useClipboard(options?: UseClipboardOptions): UseClipboardReturnValue; export default useClipboard;