import Parameters, { StorageOptions } from './parameters'; declare type Optional = T | null | undefined; declare type PaperFormat = 'letter' | 'legal' | 'tabloid' | 'ledger' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6'; export default class ConversionParameters implements Parameters { private params; /** * Static constructor for a fluent API. */ static make(): ConversionParameters; /** * Set the HTML of the document. */ html(html: string): this; /** * Set the URL to the document. */ url(url: string): this; /** * Serve the PDF via the CDN. */ cdn(cdn?: Optional): this; /** * Upload the PDF directly to the user's configured storage disk. */ storage(options?: Partial | boolean): this; /** * Set the landscape option. */ landscape(landscape?: Optional): this; /** * Set the printBackground option. */ printBackground(printBackground?: Optional): this; /** * Set the preferCSSPageSize option. */ preferCSSPageSize(preferCSSPageSize?: Optional): this; /** * Set the adblocker option. */ blockAds(blockAds?: Optional): this; /** * Set the allowErrorPage option. */ allowErrorPage(allow?: Optional): this; /** * Set the optimize (CSS) option. */ optimize(optimize?: Optional): this; /** * Set the waitForSelectorTimeout option. */ waitForSelectorTimeout(waitForSelectorTimeout: Optional): this; /** * Set the waitUntilTimeout option. */ waitUntilTimeout(waitUntilTimeout: Optional): this; /** * Set the delay in milliseconds. */ delay(delay: Optional): this; /** * Set the timeout in milliseconds. */ timeout(timeout: Optional): this; /** * Set the viewport width in pixel. * @param viewportWidth */ viewportWidth(viewportWidth: Optional): this; /** * Set the viewport height in milliseconds. */ viewportHeight(viewportHeight: Optional): this; /** * Set the scale of the page. */ scale(scale: Optional): this; /** * Set the PDF paper width. Accepts values labeled with units (px, in, mm, cm). * Defaults to pixel when no unit given. */ paperWidth(width: Optional): this; /** * Set the PDF paper height. Accepts values labeled with units (px, in, mm, cm). * Defaults to pixel when no unit given. */ paperHeight(height: Optional): this; /** * Set all PDF margins. Accepts values labeled with units (px, in, mm, cm). * Defaults to pixel when no unit given. */ margin(margin: Optional): this; /** * Set the PDF top margin. Accepts values labeled with units (px, in, mm, cm). * Defaults to pixel when no unit given. */ marginTop(marginTop: Optional): this; /** * Set the PDF right margin. Accepts values labeled with units (px, in, mm, cm). * Defaults to pixel when no unit given. */ marginRight(marginRight: Optional): this; /** * Set the PDF bottom margin. Accepts values labeled with units (px, in, mm, cm). * Defaults to pixel when no unit given. */ marginBottom(marginBottom: Optional): this; /** * Set the PDF left margin. Accepts values labeled with units (px, in, mm, cm). * Defaults to pixel when no unit given. */ marginLeft(marginLeft: Optional): this; /** * Set the HTML template for the PDF header. */ headerTemplate(template: Optional): this; /** * Set the HTML template for the PDF footer. */ footerTemplate(template: Optional): this; /** * Set the emulated CSS media. */ emulateMedia(media: Optional<'screen' | 'print'>): this; /** * Set the CSS media to 'screen'. */ emulateMediaScreen(): this; /** * Set the CSS media to 'print'. */ emulateMediaPrint(): this; /** * Secure the PDF with an owner password. */ ownerPassword(password: Optional): this; /** * Secure the PDF with an user password. */ userPassword(password: Optional): this; /** * Secure the PDF with an owner and a user password. */ passwords(owner: Optional, user: Optional): this; /** * Set the page ranges to be caputered in the PDF. */ pageRanges(...ranges: (number | string | (number | string)[])[]): this; /** * Set the paper format. Overrides paperWidth and paperHeight options. */ format(format: Optional): this; /** * Add a custom HTTP header to the request. */ header(key: string, value: any): this; /** * Add multiple HTTP headers to the request. */ headers(headers?: { [key: string]: any; }): this; /** * Wait for a selector to appear on the page before capturing it. */ waitForSelector(selector: string): this; /** * Set the browser event to wait for before capturing the page. */ waitUntil(event: Optional<'load' | 'dom'>): this; /** * Wait for the "load" event of the browser before capturing the page. */ waitUntilLoad(): this; /** * Wait for the "DOMContentLoaded" event of the browser before capturing the page. */ waitUntilDOM(): this; /** * Set the DOM element on the page that's converted to a PDF. */ selector(selector: Optional): this; all(): { [key: string]: any; }; } export {};