/** How long a copy control shows its confirmed state before reverting. */ export declare const COPIED_RESET_MS = 2000; /** A copy control's confirmed face; whichever face shows is also its accessible name. */ export declare const COPIED_LABEL = "Copied"; export interface ClipboardCopyMessages { /** Shown when the browser offers no clipboard at all (any non-secure context). */ readonly noClipboard: string; /** Shown when the write, or producing the value, is offered and refused. */ readonly writeFailed: (reason: unknown) => string; } export interface ClipboardCopy { /** Whether the confirmed window is currently open. */ readonly copied: boolean; /** The last failure's message, or `undefined` while the last copy stands. */ readonly error: string | undefined; /** The polite live-region text: the announcement while confirmed, else empty. */ readonly announcement: string; /** * Writes the produced text to the clipboard, returning whether it landed. The * value is produced lazily so a serialization that throws is reported through * {@link ClipboardCopyMessages.writeFailed}, exactly as a refused write is. */ readonly copy: (produce: () => string) => Promise; } export declare function useClipboardCopy(messages: ClipboardCopyMessages): ClipboardCopy; //# sourceMappingURL=useClipboardCopy.d.ts.map