type Clipboard = { /** a return boolean with status of clipboard action. */ isCopied: boolean; /** a return function that allows to initiate copying. */ copyToClipboard: () => void; /** an optional return function. */ reset: () => void; }; type UseClipboardReturn = Clipboard; /** an object for value, onCopy, and resetTimeout props. */ type UseClipboardProps = { /** Sets the text to copy to the clipboard. Changing it resets `isCopied` to `false`. */ value: string; /** Defines a callback function which is called after the value is copied to the clipboard. */ onCopy?: (() => void) | undefined; /** Sets the time in milliseconds after which `isCopied` resets to `false`. When not set, the status doesn't reset automatically. */ resetTimeout?: number | undefined; }; /** * Hook to use copy to clipboard functionality. * @returns object with values: * - isCopied - boolean with status of clipboard action * - copyToClipboard - a return function that allows to initiate copying * - reset - an optional return function */ export declare function useCopyClipboard({ value, onCopy, resetTimeout, }: UseClipboardProps): UseClipboardReturn; export {}; //# sourceMappingURL=useCopyClipboard.d.ts.map