UNPKG

ngx-doc-viewer

Version:
25 lines (24 loc) 1.12 kB
import { IFrameReloader, ViewerType } from './model'; export declare const fileToArray: (url: string) => Promise<ArrayBuffer>; export declare const handleFileUpload: (fileInput: any) => Promise<string>; export declare const getbaseUrl: () => string; export declare const getLocation: (href: string) => { href: string; protocol: string; host: string; hostname: string; port: string; pathname: string; search: string; hash: string; }; export declare const getDocxToHtml: (url: string) => Promise<any>; export declare const googleCheckSubscription: () => IFrameReloader; export declare const iframeIsLoaded: (iframe: HTMLIFrameElement) => boolean; export declare const getViewerDetails: (url: string, configuredViewer?: ViewerType, queryParams?: string, viewerUrl?: string) => { url: string; externalViewer: boolean; }; export declare const replaceLocalUrl: (url: string, overrideLocalhost: string) => string; export declare const uploadToCloud: (fileUrl: string, api: string) => Promise<unknown>; export declare const isLocalFile: (file: string) => boolean;