UNPKG

903 BTypeScriptView Raw
1export declare function getMimeTypeFromSource(url: string): string;
2export declare function isDataUrl(url: string): boolean;
3export declare function getBlobFromCanvasAsync(canvas: HTMLCanvasElement, quality?: number): Promise<Blob>;
4export declare function resolveUrl(url: string, baseUrl: string): string;
5export declare function getImageElementFromURIAsync(uri: string): Promise<HTMLImageElement>;
6export declare function getSourceAndEncodeAsync(url: string, preventCaching?: boolean, missingImageSource?: string | undefined): Promise<string>;
7export declare function formatDataAsUrl(content: string, type: string): string;
8export declare function getEscapedString(string: string): string;
9export declare function getEscapedXHTMLString(input: string): string;
10export declare function getWidthForElement(element: Element): number;
11export declare function getHeightForElement(element: Element): number;