export declare function copyToClipboard(text: string, onSuccess?: () => void, onError?: (e: unknown) => void): Promise; export declare function downloadAsFile(content: string, filename: string, onSuccess?: () => void, onError?: (e: unknown) => void): void;