export interface OpenFilePayload { /** * Local file path in PDF Viewer. */ path: string; } interface AddFileWithUrlPayload { /** * URL address to a file. */ url: string; data?: never; filename?: never; /** * Open newly added file. */ open?: boolean; } interface AddFileWithDataPayload { /** * Base64 representation of a file. The generated URL encodes this parameter. */ data: string; /** * File name with extension. */ filename: string; url?: never; /** * Open newly added file. */ open?: boolean; } export type AddFilePayload = AddFileWithUrlPayload | AddFileWithDataPayload; export declare function pdfViewerUrl(action: string, params: Record): string; export {};