/** Return value of {@link useClipboard} */ export type UseClipboardResult = { /** `true` for `resetDelay` ms after a successful copy */ copied: boolean; /** Copy `text` to the clipboard */ copy: (text: string) => void; /** Manually reset the `copied` flag */ reset: () => void; }; /** * Copies text to the clipboard and tracks the "just copied" state. * * @param resetDelay - How long (ms) `copied` stays `true`. Default: `2000` * @returns `{ copy, copied, reset }` * * @example * const { copy, copied } = useClipboard(); * */ export declare const useClipboard: (resetDelay?: number) => UseClipboardResult; //# sourceMappingURL=useClipboard.d.ts.map