import { Api } from './api'; /** Options when creating a PDF */ export type PdfOptions = { /** Cookies PDF server should use */ cookies?: { name: string; value: string; domain?: string; path?: string; }[]; /** Display page header/footer (The URL, page count, etc) */ displayHeaderFooter?: boolean; /** Uploaded filename */ filename?: string; /** Wait for x'ms of idle network traffic before creating PDF */ idleTime?: number; /** Create the PDF in landscape orientation instead of portrait */ landscape?: boolean; /** Change the CSS media type */ mediaType?: 'screen' | 'print'; /** Max amount of time request will wait before timing out */ timeout?: number; /** Wait for the URL to emit a javascript event before creating PDF */ waitForEvent?: string; }; export declare class Pdf { private readonly api; constructor(api: Api); /** * Create a PDF from a public URL * @param {string} url Target URL address * @param {{slice: number, row: number, field: string} | null} associate Optionally associate PDF with a slice row * @param {PdfOptions} options PDF options for rendering & uploading * @return {Promise} Either the PDF file number or the updated slice row response if associated */ fromUrl(url: string, associate?: { slice: number; row: number; field: string; } | null, options?: PdfOptions): Promise; } //# sourceMappingURL=pdf.d.ts.map