/**
 * @param data
 * @param filename
 * @param mime See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
 * @param bom A byte order mark (BOM) is a sequence of bytes used to indicate Unicode encoding of a text file. The underlying character code, U+FEFF , takes one of the following forms depending on the character encoding.
 *
 * .zip	ZIP archive	application/zip
 */
export declare const downloadFile: (data: any, filename: string, mime?: any, bom?: any) => void;
export type TextDownloadPayload = {
    content: string;
    filename: string;
    mime: string;
};
/**
 * Create a generic markdown text payload for file downloads.
 */
export declare const createMarkdownDownloadPayload: (content: string, fileStem: string) => TextDownloadPayload;
/**
 * Download a text payload produced by a helper such as createMarkdownDownloadPayload.
 */
export declare const downloadTextPayload: (payload: TextDownloadPayload, withBom?: boolean) => void;
export default downloadFile;
