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3B","file":"CreateOptions.d.ts","sourcesContent":["'use strict';\n\nimport { CompletionTrigger } from './CompletionTriggers';\nimport ExtraHTTPHeader from './typings/chrome/Network/ExtraHTTPHeader';\nimport SetCookieOptions from './typings/chrome/Network/SetCookieOptions';\nimport PrintToPDFOptions from './typings/chrome/Page/PrintToPDFOptions';\nimport ConsoleAPICalled from './typings/chrome/Runtime/ConsoleAPICalled';\nimport ExceptionThrown from './typings/chrome/Runtime/ExceptionThrown';\n\n/**\n * PDF generation options.\n *\n * @export\n * @interface CreateOptions\n */\nexport interface CreateOptions {\n  /**\n   * The host to connect to Chrome at.\n   * If set, it attempts to connect to Chrome.\n   * If this and port are not set, it spawns\n   * Chrome for the duration of the PDF generation.\n   *\n   * @type {string}\n   * @memberof CreateOptions\n   */\n  host?: string;\n\n  /**\n   * The port to connect to Chrome with.\n   * If set, it attempts to connect to Chrome.\n   * If this and host are not set, it spawns\n   * Chrome for the duration of the PDF generation.\n   *\n   * @type {number}\n   * @memberof CreateOptions\n   */\n  port?: number;\n\n  /**\n   * The explicit path of the intended Chrome binary.\n   *\n   * @type {string}\n   * @memberof CreateOptions\n   */\n  chromePath?: string;\n\n  /**\n   * The flags to pass to Chrome.\n   *\n   * @type {string[]}\n   * @memberof CreateOptions\n   */\n  chromeFlags?: string[];\n\n  /**\n   * The options to pass to Chrome's Page.printToPDF.\n   * Note: these require Chrome >= 60.\n   *\n   * @type {PrintToPDFOptions}\n   * @memberof CreateOptions\n   */\n  printOptions?: PrintToPDFOptions;\n\n  /**\n   * An optional CompletionTrigger to wait for before\n   * printing the rendered page to a PDF.\n   *\n   * @type {CompletionTrigger}\n   * @memberof CreateOptions\n   */\n  completionTrigger?: CompletionTrigger;\n\n  /**\n   * The time in milliseconds to wait until timing out.\n   *\n   * @type {number}\n   * @memberof CreateOptions\n   */\n  timeout?: number;\n\n  /**\n   * Clears Chrome's cache before loading a page.\n   *\n   * @type {boolean}\n   * @memberof CreateOptions\n   */\n  clearCache?: boolean;\n\n  /**\n   * Cookies to set.\n   *\n   * @type {SetCookieOptions[]}\n   * @memberof CreateOptions\n   */\n  cookies?: SetCookieOptions[];\n\n  /**\n   * Extra HTTP headers to send when making a request.\n   *\n   * @type {ExtraHTTPHeader[]}\n   * @memberof CreateOptions\n   */\n  extraHTTPHeaders?: ExtraHTTPHeader[];\n\n  /**\n   * Set a callback to receive console messages.\n   *\n   * @memberof CreateOptions\n   */\n  runtimeConsoleHandler?: (value: ConsoleAPICalled) => void;\n\n  /**\n   * Set a callback to receive unhandled exceptions.\n   *\n   * @memberof CreateOptions\n   */\n  runtimeExceptionHandler?: (exception: ExceptionThrown) => void;\n\n  /**\n   * A private flag to signify the operation has been canceled.\n   *\n   * @type {boolean}\n   * @memberof CreateOptions\n   */\n  _canceled?: boolean;\n\n  /**\n   * A private variable to store the main page navigation requestId.\n   *\n   * @type {string}\n   * @memberof CreateOptions\n   */\n  _mainRequestId?: string;\n\n  /**\n   * A private flag to signify the main page navigation failed.\n   *\n   * @type {boolean}\n   * @memberof CreateOptions\n   */\n  _navigateFailed?: boolean;\n}\n"],"sourceRoot":"../.."}