export declare const copyToClipboard: (text: string, { onSuccess, onError, }: {
    onSuccess?: () => void;
    onError?: (error: unknown) => void;
}) => Promise<void>;
