///
///
import type { CountryType, GeoInfoType } from '../types/types';
export declare const FILE_VIEWER_HOST = "https://viewer.cloudparker.com";
export declare const CODE_FILE_EXTENTIONS: string[];
export declare let countries: import("svelte/store").Writable;
export declare const geoInfo: import("svelte/store").Writable;
export declare const ACCEPT_IMAGE_FILES: string;
export declare function random(min: number, max: number): number;
export declare function authError(code: string): string;
export declare function openFilePicker(opt: {
accept?: string;
multiple?: boolean;
}): Promise;
/**
* Default quality 1.0
* @param opt
* @returns
*/
export declare function resizeImage(opt: {
file: File;
width: number;
height?: number;
fileName?: string;
quality?: number;
type?: string;
}): Promise;
export declare function downloadURI(uri: string, name: string): Promise;
export declare function downloadFile(file: File): Promise;
export declare function downloadBlob(blob: Blob, name: string): Promise;
export declare function fileToDataURL(file: File): Promise;
export declare function fileToText(file: File): Promise;
export declare function fileToBuffer(file: File): Promise;
export declare function fileToImage(file: File): Promise;
export declare function dataUrlToImage(base64: string): Promise;
export declare function stripBase64(data: string): string;
/**
* Function to download content from a given URL and convert it to a Base64-encoded string.
* @param url - The URL to download the content from.
* @returns A promise that resolves to the Base64-encoded string of the downloaded content.
*/
export declare function urlToBase64(url: string): Promise;
export declare function urlToFile(url: string, givenFileName?: string, givenMimeType?: string): Promise;
export declare function dataUrlToFile(url: string, givenFileName?: string, givenMimeType?: string): Promise;
export declare function bufferToFile(buffer: Buffer, filename: string, mimeType: string): Promise;
export declare function postData(url?: string, data?: {}): Promise;
export declare function fileNameAndExt(filename: string): {
name: string;
ext: string | undefined;
};
export declare function isValidateEmail(email: string): boolean;
export declare function isValidURL(str: string): boolean;
export declare function mailto({ to, body, subject }: {
to: string;
body: string;
subject: string;
}): void;
export declare function copyText(str: string): void;
export declare function copyRichText(node: HTMLElement): void;
export declare function getCountries(): Promise;
export declare function searchCountry(searchText: string): Promise;
export declare function prepareApiSiteUrl(siteName: string): string;
export declare function prepareApiSiteName(siteName: string): string;
export declare function download(data: string, filename: string, type: string): void;
export declare function formatString(str: string, ...args: any[]): string;
export declare function fileSizeString(size: number): string;
export declare function watchWindowValue(key: string): Promise;
export declare function delay(mills?: number): Promise;
export declare function sort({ array, field, desc, isDate }: {
array: T[];
field?: string;
desc?: boolean;
isDate?: boolean;
}): T[];
export declare function vibrate(value?: number | number[]): void;
export declare function playClickEffect(): void;
export declare function getPhoneDialCode(): any;
export declare function toArrayByKey(key: string, obj?: any): any[];
export declare function convertNumToAlphabates(num: number): string;
export declare function fetchGeoInfo(): Promise;
export declare function printHtml({ element, style, imports }: {
element: HTMLElement;
style?: string;
imports?: string;
}): void;
export declare function fetchText(url: string): Promise;
export declare function isTouchDevice(): any;
export declare function toCurrency(value?: number, symbol?: string): string;
export declare function inchToPixel(inches: number): number;
export declare function pixelToInch(pixels: number): number;