export interface UseCopyToClipboardOptions {
    /** Milliseconds the `copied` flag stays true after a successful copy. */
    resetDelay?: number;
    /** Fired with the copied text after a successful copy. */
    onCopy?: (value: string) => void;
}
export interface CopyToClipboard {
    /** True for `resetDelay` ms after the last successful copy. */
    copied: boolean;
    /** Copy `value` to the clipboard, flipping `copied` on success. */
    copy: (value: string) => void;
}
/**
 * Copy-to-clipboard with transient "copied" feedback. Prefers the async
 * Clipboard API and falls back to a hidden-textarea + `execCommand` when it
 * is unavailable or blocked (older browsers, insecure contexts). The `copied`
 * flag auto-resets after `resetDelay`, and any pending reset is cleared on
 * unmount.
 *
 * Shared by `CopyLabel`, `CodeBlock`, and any other copy affordance so the
 * fallback path and reset timing live in one place.
 *
 * @beta This hook is experimental — its API may change before release.
 */
export declare function useCopyToClipboard(options?: UseCopyToClipboardOptions): CopyToClipboard;
//# sourceMappingURL=useCopyToClipboard.d.ts.map