export interface CopyOptions { /** Names what was copied in the toast, "Copied email address"; without it the * toast says only that something was copied. */ label?: string | undefined; /** No toast on success, for a control that shows its own check. A failure * still says so. */ quiet?: boolean | undefined; /** The whole success toast, in place of "Copied …", such as "Link copied" or one that * names the value: "Copied feature/login". */ success?: string | undefined; /** The whole failure toast, in place of "Couldn't copy …", such as one that says where * else to copy the value from. */ failure?: string | undefined; } /** Copies text to the clipboard and says how it went. `copied` stays true for a * moment after, for a button that turns into a check. */ export declare function useCopy(): { copy: (text: string, options?: CopyOptions) => Promise; copied: boolean; };