/**
 * Cloudflare BROWSER-RENDERING API
 *
 * Generated from Cloudflare TypeScript SDK.
 * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service browser-rendering
 */
import * as Schema from "effect/Schema";
import type * as HttpClient from "effect/unstable/http/HttpClient";
import * as API from "../client/api.ts";
import type { Credentials } from "../credentials.ts";
import { type DefaultErrors } from "../errors.ts";
export interface CreateContentRequest {
    /** Path param: Account ID. */
    accountId: string;
    /** Query param: Cache TTL default is 5s. Set to 0 to disable. */
    cacheTTL?: number;
    /** Body param: URL to navigate to, eg. `https://example.com`. */
    url?: string;
    /** Body param: The maximum duration allowed for the browser action to complete after the page has loaded (such as taking screenshots, extracting content, or generating PDFs). If this time limit is exceed */
    actionTimeout?: number;
    /** Body param: Adds a `<script>` tag into the page with the desired URL or content. */
    addScriptTag?: {
        id?: string;
        content?: string;
        type?: string;
        url?: string;
    }[];
    /** Body param: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a `<style type="text/css">` tag with the content. */
    addStyleTag?: {
        content?: string;
        url?: string;
    }[];
    /** Body param: Only allow requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    allowRequestPattern?: string[];
    /** Body param: Only allow requests that match the provided resource types, eg. 'image' or 'script'. */
    allowResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param: Provide credentials for HTTP authentication. */
    authenticate?: {
        password: string;
        username: string;
    };
    /** Body param: Attempt to proceed when 'awaited' events fail or timeout. */
    bestAttempt?: boolean;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setcookie). */
    cookies?: {
        name: string;
        value: string;
        domain?: string;
        expires?: number;
        httpOnly?: boolean;
        partitionKey?: string;
        path?: string;
        priority?: "Low" | "Medium" | "High" | (string & {});
        sameParty?: boolean;
        sameSite?: "Strict" | "Lax" | "None" | (string & {});
        secure?: boolean;
        sourcePort?: number;
        sourceScheme?: "Unset" | "NonSecure" | "Secure" | (string & {});
        url?: string;
    }[];
    /** Body param */
    emulateMediaType?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.gotooptions). */
    gotoOptions?: {
        referer?: string;
        referrerPolicy?: string;
        timeout?: number;
        waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | ("load" | "domcontentloaded" | "networkidle0" | "networkidle2" | (string & {}))[];
    };
    /** Body param: Block undesired requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    rejectRequestPattern?: string[];
    /** Body param: Block undesired requests that match the provided resource types, eg. 'image' or 'script'. */
    rejectResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param */
    setExtraHTTPHeaders?: Record<string, unknown>;
    /** Body param */
    setJavaScriptEnabled?: boolean;
    /** Body param */
    userAgent?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setviewport). */
    viewport?: {
        height: number;
        width: number;
        deviceScaleFactor?: number;
        hasTouch?: boolean;
        isLandscape?: boolean;
        isMobile?: boolean;
    };
    /** Body param: Wait for the selector to appear in page. Check [options](https://pptr.dev/api/puppeteer.page.waitforselector). */
    waitForSelector?: {
        selector: string;
        hidden?: true;
        timeout?: number;
        visible?: true;
    };
    /** Body param: Waits for a specified timeout before continuing. */
    waitForTimeout?: number;
    /** Body param: Set the content of the page, eg: `<h1>Hello World!!</h1>`. Either `html` or `url` must be set. */
    html?: string;
}
export declare const CreateContentRequest: Schema.Schema<CreateContentRequest>;
export type CreateContentResponse = string;
export declare const CreateContentResponse: Schema.Schema<CreateContentResponse>;
export type CreateContentError = DefaultErrors;
export declare const createContent: API.OperationMethod<CreateContentRequest, CreateContentResponse, CreateContentError, Credentials | HttpClient.HttpClient>;
export interface GetCrawlRequest {
    jobId: string;
    /** Path param: Account ID. */
    accountId: string;
    /** Query param: Cache TTL default is 5s. Set to 0 to disable. */
    cacheTTL?: number;
    /** Query param: Cursor for pagination. */
    cursor?: number;
    /** Query param: Limit for pagination. */
    limit?: number;
    /** Query param: Filter by URL status. */
    status?: "queued" | "errored" | "completed" | "disallowed" | "skipped" | "cancelled" | (string & {});
}
export declare const GetCrawlRequest: Schema.Schema<GetCrawlRequest>;
export interface GetCrawlResponse {
    /** Crawl job ID. */
    id: string;
    /** Total seconds spent in browser so far. */
    browserSecondsUsed: number;
    /** Total number of URLs that have been crawled so far. */
    finished: number;
    /** List of crawl job records. */
    records: {
        metadata: {
            status: number;
            url: string;
            title?: string | null;
        };
        status: "queued" | "errored" | "completed" | "disallowed" | "skipped" | "cancelled" | (string & {});
        url: string;
        html?: string | null;
        json?: Record<string, unknown> | null;
        markdown?: string | null;
    }[];
    /** Total number of URLs that were skipped due to include/exclude/subdomain filters. Skipped URLs are included in records but are not counted toward total/finished. */
    skipped: number;
    /** Current crawl job status. */
    status: string;
    /** Total current number of URLs in the crawl job. */
    total: number;
    /** Cursor for pagination. */
    cursor?: string | null;
}
export declare const GetCrawlResponse: Schema.Schema<GetCrawlResponse>;
export type GetCrawlError = DefaultErrors;
export declare const getCrawl: API.OperationMethod<GetCrawlRequest, GetCrawlResponse, GetCrawlError, Credentials | HttpClient.HttpClient>;
export interface CreateCrawlRequest {
    /** Path param: Account ID. */
    accountId: string;
    /** Query param: Cache TTL default is 5s. Set to 0 to disable. */
    cacheTTL?: number;
    /** Body param: URL to navigate to, eg. `https://example.com`. */
    url: string;
    /** Body param: The maximum duration allowed for the browser action to complete after the page has loaded (such as taking screenshots, extracting content, or generating PDFs). If this time limit is exceed */
    actionTimeout?: number;
    /** Body param: Adds a `<script>` tag into the page with the desired URL or content. */
    addScriptTag?: {
        id?: string;
        content?: string;
        type?: string;
        url?: string;
    }[];
    /** Body param: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a `<style type="text/css">` tag with the content. */
    addStyleTag?: {
        content?: string;
        url?: string;
    }[];
    /** Body param: Only allow requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    allowRequestPattern?: string[];
    /** Body param: Only allow requests that match the provided resource types, eg. 'image' or 'script'. */
    allowResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param: Provide credentials for HTTP authentication. */
    authenticate?: {
        password: string;
        username: string;
    };
    /** Body param: Attempt to proceed when 'awaited' events fail or timeout. */
    bestAttempt?: boolean;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setcookie). */
    cookies?: {
        name: string;
        value: string;
        domain?: string;
        expires?: number;
        httpOnly?: boolean;
        partitionKey?: string;
        path?: string;
        priority?: "Low" | "Medium" | "High" | (string & {});
        sameParty?: boolean;
        sameSite?: "Strict" | "Lax" | "None" | (string & {});
        secure?: boolean;
        sourcePort?: number;
        sourceScheme?: "Unset" | "NonSecure" | "Secure" | (string & {});
        url?: string;
    }[];
    /** Body param: List of crawl purposes to respect Content-Signal directives in robots.txt. Allowed values: 'search', 'ai-input', 'ai-train'. Learn more: https://contentsignals.org/. Default: ['search', 'a */
    crawlPurposes?: ("search" | "ai-input" | "ai-train" | (string & {}))[];
    /** Body param: Maximum number of levels deep the crawler will traverse from the starting URL. */
    depth?: number;
    /** Body param */
    emulateMediaType?: string;
    /** Body param: Formats to return. Default is `html`. */
    formats?: ("html" | "markdown" | "json" | (string & {}))[];
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.gotooptions). */
    gotoOptions?: {
        referer?: string;
        referrerPolicy?: string;
        timeout?: number;
        waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | ("load" | "domcontentloaded" | "networkidle0" | "networkidle2" | (string & {}))[];
    };
    /** Body param: Options for JSON extraction. */
    jsonOptions?: {
        customAi?: {
            model: string;
            authorization?: string;
        }[];
        prompt?: string;
        responseFormat?: {
            type: string;
            jsonSchema?: Record<string, unknown> | null;
        };
    };
    /** Body param: Maximum number of URLs to crawl. */
    limit?: number;
    /** Body param: Maximum age of a resource that can be returned from cache in seconds. Default is 1 day. */
    maxAge?: number;
    /** Body param: Unix timestamp (seconds since epoch) indicating to only crawl pages that were modified since this time. For sitemap URLs with a lastmod field, this is compared directly. For other URLs, th */
    modifiedSince?: number;
    /** Body param: Additional options for the crawler. */
    options?: {
        excludePatterns?: string[];
        includeExternalLinks?: boolean;
        includePatterns?: string[];
        includeSubdomains?: boolean;
    };
    /** Body param: Block undesired requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    rejectRequestPattern?: string[];
    /** Body param: Block undesired requests that match the provided resource types, eg. 'image' or 'script'. */
    rejectResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param: Whether to render the page or fetch static content. True by default. */
    render?: true | false;
    /** Body param */
    setExtraHTTPHeaders?: Record<string, unknown>;
    /** Body param */
    setJavaScriptEnabled?: boolean;
    /** Body param: Source of links to crawl. 'sitemaps' - only crawl URLs from sitemaps, 'links' - only crawl URLs scraped from pages, 'all' - crawl both sitemap and scraped links (default). */
    source?: "sitemaps" | "links" | "all" | (string & {});
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setviewport). */
    viewport?: {
        height: number;
        width: number;
        deviceScaleFactor?: number;
        hasTouch?: boolean;
        isLandscape?: boolean;
        isMobile?: boolean;
    };
    /** Body param: Wait for the selector to appear in page. Check [options](https://pptr.dev/api/puppeteer.page.waitforselector). */
    waitForSelector?: {
        selector: string;
        hidden?: true;
        timeout?: number;
        visible?: true;
    };
    /** Body param: Waits for a specified timeout before continuing. */
    waitForTimeout?: number;
}
export declare const CreateCrawlRequest: Schema.Schema<CreateCrawlRequest>;
export type CreateCrawlResponse = string;
export declare const CreateCrawlResponse: Schema.Schema<CreateCrawlResponse>;
export type CreateCrawlError = DefaultErrors;
export declare const createCrawl: API.OperationMethod<CreateCrawlRequest, CreateCrawlResponse, CreateCrawlError, Credentials | HttpClient.HttpClient>;
export interface DeleteCrawlRequest {
    jobId: string;
    /** Account ID. */
    accountId: string;
}
export declare const DeleteCrawlRequest: Schema.Schema<DeleteCrawlRequest>;
export interface DeleteCrawlResponse {
    /** The ID of the cancelled job. */
    jobId: string;
    /** Cancellation confirmation message. */
    message: string;
}
export declare const DeleteCrawlResponse: Schema.Schema<DeleteCrawlResponse>;
export type DeleteCrawlError = DefaultErrors;
export declare const deleteCrawl: API.OperationMethod<DeleteCrawlRequest, DeleteCrawlResponse, DeleteCrawlError, Credentials | HttpClient.HttpClient>;
export interface CreateDevtoolBrowserRequest {
    /** Path param: Account ID. */
    accountId: string;
    /** Query param: Keep-alive time in milliseconds. */
    keepAlive?: number;
    /** Query param: Use experimental browser. */
    lab?: boolean;
    /** Query param */
    recording?: boolean;
    /** Query param: Include browser targets in response. */
    targets?: boolean;
}
export declare const CreateDevtoolBrowserRequest: Schema.Schema<CreateDevtoolBrowserRequest>;
export interface CreateDevtoolBrowserResponse {
    /** Browser session ID. */
    sessionId: string;
    /** WebSocket URL for the session. */
    webSocketDebuggerUrl?: string | null;
}
export declare const CreateDevtoolBrowserResponse: Schema.Schema<CreateDevtoolBrowserResponse>;
export type CreateDevtoolBrowserError = DefaultErrors;
export declare const createDevtoolBrowser: API.OperationMethod<CreateDevtoolBrowserRequest, CreateDevtoolBrowserResponse, CreateDevtoolBrowserError, Credentials | HttpClient.HttpClient>;
export interface DeleteDevtoolBrowserRequest {
    sessionId: string;
    /** Account ID. */
    accountId: string;
}
export declare const DeleteDevtoolBrowserRequest: Schema.Schema<DeleteDevtoolBrowserRequest>;
export interface DeleteDevtoolBrowserResponse {
    status: "closing" | "closed" | (string & {});
}
export declare const DeleteDevtoolBrowserResponse: Schema.Schema<DeleteDevtoolBrowserResponse>;
export type DeleteDevtoolBrowserError = DefaultErrors;
export declare const deleteDevtoolBrowser: API.OperationMethod<DeleteDevtoolBrowserRequest, DeleteDevtoolBrowserResponse, DeleteDevtoolBrowserError, Credentials | HttpClient.HttpClient>;
export interface ConnectDevtoolBrowserRequest {
    sessionId: string;
    /** Path param: Account ID. */
    accountId: string;
    /** Query param: Keep-alive time in ms (only valid when acquiring new session). */
    keepAlive?: number;
    /** Query param: Use experimental browser. */
    lab?: boolean;
    /** Query param */
    recording?: boolean;
}
export declare const ConnectDevtoolBrowserRequest: Schema.Schema<ConnectDevtoolBrowserRequest>;
export type ConnectDevtoolBrowserResponse = unknown;
export declare const ConnectDevtoolBrowserResponse: Schema.Schema<ConnectDevtoolBrowserResponse>;
export type ConnectDevtoolBrowserError = DefaultErrors;
export declare const connectDevtoolBrowser: API.OperationMethod<ConnectDevtoolBrowserRequest, ConnectDevtoolBrowserResponse, ConnectDevtoolBrowserError, Credentials | HttpClient.HttpClient>;
export interface LaunchDevtoolBrowserRequest {
    /** Path param: Account ID. */
    accountId: string;
    /** Query param: Keep-alive time in ms (only valid when acquiring new session). */
    keepAlive?: number;
    /** Query param: Use experimental browser. */
    lab?: boolean;
    /** Query param */
    recording?: boolean;
}
export declare const LaunchDevtoolBrowserRequest: Schema.Schema<LaunchDevtoolBrowserRequest>;
export type LaunchDevtoolBrowserResponse = unknown;
export declare const LaunchDevtoolBrowserResponse: Schema.Schema<LaunchDevtoolBrowserResponse>;
export type LaunchDevtoolBrowserError = DefaultErrors;
export declare const launchDevtoolBrowser: API.OperationMethod<LaunchDevtoolBrowserRequest, LaunchDevtoolBrowserResponse, LaunchDevtoolBrowserError, Credentials | HttpClient.HttpClient>;
export interface ProtocolDevtoolBrowserRequest {
    sessionId: string;
    /** Account ID. */
    accountId: string;
}
export declare const ProtocolDevtoolBrowserRequest: Schema.Schema<ProtocolDevtoolBrowserRequest>;
export interface ProtocolDevtoolBrowserResponse {
    /** List of protocol domains. */
    domains: {
        domain: string;
        commands?: Record<string, unknown>[] | null;
        dependencies?: string[] | null;
        events?: Record<string, unknown>[] | null;
        experimental?: boolean | null;
        types?: Record<string, unknown>[] | null;
    }[];
    /** Protocol version. */
    version?: {
        major: string;
        minor: string;
    } | null;
}
export declare const ProtocolDevtoolBrowserResponse: Schema.Schema<ProtocolDevtoolBrowserResponse>;
export type ProtocolDevtoolBrowserError = DefaultErrors;
export declare const protocolDevtoolBrowser: API.OperationMethod<ProtocolDevtoolBrowserRequest, ProtocolDevtoolBrowserResponse, ProtocolDevtoolBrowserError, Credentials | HttpClient.HttpClient>;
export interface VersionDevtoolBrowserRequest {
    sessionId: string;
    /** Account ID. */
    accountId: string;
}
export declare const VersionDevtoolBrowserRequest: Schema.Schema<VersionDevtoolBrowserRequest>;
export interface VersionDevtoolBrowserResponse {
    /** Browser name and version. */
    browser: string;
    /** Chrome DevTools Protocol version. */
    protocolVersion: string;
    /** User agent string. */
    userAgent: string;
    /** V8 JavaScript engine version. */
    v8Version: string;
    /** WebKit version. */
    webKitVersion: string;
    /** WebSocket URL for debugging the browser. */
    webSocketDebuggerUrl: string;
}
export declare const VersionDevtoolBrowserResponse: Schema.Schema<VersionDevtoolBrowserResponse>;
export type VersionDevtoolBrowserError = DefaultErrors;
export declare const versionDevtoolBrowser: API.OperationMethod<VersionDevtoolBrowserRequest, VersionDevtoolBrowserResponse, VersionDevtoolBrowserError, Credentials | HttpClient.HttpClient>;
export interface GetDevtoolBrowserPageRequest {
    sessionId: string;
    targetId: string;
    /** Account ID. */
    accountId: string;
}
export declare const GetDevtoolBrowserPageRequest: Schema.Schema<GetDevtoolBrowserPageRequest>;
export type GetDevtoolBrowserPageResponse = unknown;
export declare const GetDevtoolBrowserPageResponse: Schema.Schema<GetDevtoolBrowserPageResponse>;
export type GetDevtoolBrowserPageError = DefaultErrors;
export declare const getDevtoolBrowserPage: API.OperationMethod<GetDevtoolBrowserPageRequest, GetDevtoolBrowserPageResponse, GetDevtoolBrowserPageError, Credentials | HttpClient.HttpClient>;
export interface GetDevtoolBrowserTargetRequest {
    sessionId: string;
    targetId: string;
    /** Account ID. */
    accountId: string;
}
export declare const GetDevtoolBrowserTargetRequest: Schema.Schema<GetDevtoolBrowserTargetRequest>;
export interface GetDevtoolBrowserTargetResponse {
    /** Target ID. */
    id: string;
    /** Target type (page, background_page, worker, etc.). */
    type: string;
    /** URL of the target. */
    url: string;
    /** Target description. */
    description?: string | null;
    /** DevTools frontend URL. */
    devtoolsFrontendUrl?: string | null;
    /** Title of the target. */
    title?: string | null;
    /** WebSocket URL for debugging this target. */
    webSocketDebuggerUrl?: string | null;
}
export declare const GetDevtoolBrowserTargetResponse: Schema.Schema<GetDevtoolBrowserTargetResponse>;
export type GetDevtoolBrowserTargetError = DefaultErrors;
export declare const getDevtoolBrowserTarget: API.OperationMethod<GetDevtoolBrowserTargetRequest, GetDevtoolBrowserTargetResponse, GetDevtoolBrowserTargetError, Credentials | HttpClient.HttpClient>;
export interface ListDevtoolBrowserTargetsRequest {
    sessionId: string;
    /** Account ID. */
    accountId: string;
}
export declare const ListDevtoolBrowserTargetsRequest: Schema.Schema<ListDevtoolBrowserTargetsRequest>;
export type ListDevtoolBrowserTargetsResponse = {
    id: string;
    type: string;
    url: string;
    description?: string | null;
    devtoolsFrontendUrl?: string | null;
    title?: string | null;
    webSocketDebuggerUrl?: string | null;
}[];
export declare const ListDevtoolBrowserTargetsResponse: Schema.Schema<ListDevtoolBrowserTargetsResponse>;
export type ListDevtoolBrowserTargetsError = DefaultErrors;
export declare const listDevtoolBrowserTargets: API.OperationMethod<ListDevtoolBrowserTargetsRequest, ListDevtoolBrowserTargetsResponse, ListDevtoolBrowserTargetsError, Credentials | HttpClient.HttpClient>;
export interface CreateDevtoolBrowserTargetRequest {
    sessionId: string;
    /** Path param: Account ID. */
    accountId: string;
    /** Query param */
    url?: string;
}
export declare const CreateDevtoolBrowserTargetRequest: Schema.Schema<CreateDevtoolBrowserTargetRequest>;
export interface CreateDevtoolBrowserTargetResponse {
    /** Target ID. */
    id: string;
    /** Target type (page, background_page, worker, etc.). */
    type: string;
    /** URL of the target. */
    url: string;
    /** Target description. */
    description?: string | null;
    /** DevTools frontend URL. */
    devtoolsFrontendUrl?: string | null;
    /** Title of the target. */
    title?: string | null;
    /** WebSocket URL for debugging this target. */
    webSocketDebuggerUrl?: string | null;
}
export declare const CreateDevtoolBrowserTargetResponse: Schema.Schema<CreateDevtoolBrowserTargetResponse>;
export type CreateDevtoolBrowserTargetError = DefaultErrors;
export declare const createDevtoolBrowserTarget: API.OperationMethod<CreateDevtoolBrowserTargetRequest, CreateDevtoolBrowserTargetResponse, CreateDevtoolBrowserTargetError, Credentials | HttpClient.HttpClient>;
export interface ActivateDevtoolBrowserTargetRequest {
    sessionId: string;
    targetId: string;
    /** Account ID. */
    accountId: string;
}
export declare const ActivateDevtoolBrowserTargetRequest: Schema.Schema<ActivateDevtoolBrowserTargetRequest>;
export interface ActivateDevtoolBrowserTargetResponse {
    /** Target activated. */
    message: string;
}
export declare const ActivateDevtoolBrowserTargetResponse: Schema.Schema<ActivateDevtoolBrowserTargetResponse>;
export type ActivateDevtoolBrowserTargetError = DefaultErrors;
export declare const activateDevtoolBrowserTarget: API.OperationMethod<ActivateDevtoolBrowserTargetRequest, ActivateDevtoolBrowserTargetResponse, ActivateDevtoolBrowserTargetError, Credentials | HttpClient.HttpClient>;
export interface CloseDevtoolBrowserTargetRequest {
    sessionId: string;
    targetId: string;
    /** Account ID. */
    accountId: string;
}
export declare const CloseDevtoolBrowserTargetRequest: Schema.Schema<CloseDevtoolBrowserTargetRequest>;
export interface CloseDevtoolBrowserTargetResponse {
    /** Target is closing. */
    message: string;
}
export declare const CloseDevtoolBrowserTargetResponse: Schema.Schema<CloseDevtoolBrowserTargetResponse>;
export type CloseDevtoolBrowserTargetError = DefaultErrors;
export declare const closeDevtoolBrowserTarget: API.OperationMethod<CloseDevtoolBrowserTargetRequest, CloseDevtoolBrowserTargetResponse, CloseDevtoolBrowserTargetError, Credentials | HttpClient.HttpClient>;
export interface GetDevtoolSessionRequest {
    sessionId: string;
    /** Account ID. */
    accountId: string;
}
export declare const GetDevtoolSessionRequest: Schema.Schema<GetDevtoolSessionRequest>;
export interface GetDevtoolSessionResponse {
    /** Session ID. */
    sessionId: string;
    /** Reason for session closure. */
    closeReason?: string | null;
    /** Human-readable close reason. */
    closeReasonText?: string | null;
    /** Connection end time. */
    connectionEndTime?: number | null;
    /** Connection ID. */
    connectionId?: string | null;
    /** Connection start time. */
    connectionStartTime?: number | null;
    /** DevTools frontend URL. */
    devtoolsFrontendUrl?: string | null;
    /** Session end time. */
    endTime?: number | null;
    /** Last updated timestamp. */
    lastUpdated?: number | null;
    /** Session start time. */
    startTime?: number | null;
    /** WebSocket URL for debugging this target. */
    webSocketDebuggerUrl?: string | null;
}
export declare const GetDevtoolSessionResponse: Schema.Schema<GetDevtoolSessionResponse>;
export type GetDevtoolSessionError = DefaultErrors;
export declare const getDevtoolSession: API.OperationMethod<GetDevtoolSessionRequest, GetDevtoolSessionResponse, GetDevtoolSessionError, Credentials | HttpClient.HttpClient>;
export interface ListDevtoolSessionsRequest {
    /** Path param: Account ID. */
    accountId: string;
    /** Query param */
    limit?: number;
    /** Query param */
    offset?: number;
}
export declare const ListDevtoolSessionsRequest: Schema.Schema<ListDevtoolSessionsRequest>;
export type ListDevtoolSessionsResponse = {
    sessionId: string;
    closeReason?: string | null;
    closeReasonText?: string | null;
    connectionEndTime?: number | null;
    connectionId?: string | null;
    connectionStartTime?: number | null;
    devtoolsFrontendUrl?: string | null;
    endTime?: number | null;
    lastUpdated?: number | null;
    startTime?: number | null;
    webSocketDebuggerUrl?: string | null;
}[];
export declare const ListDevtoolSessionsResponse: Schema.Schema<ListDevtoolSessionsResponse>;
export type ListDevtoolSessionsError = DefaultErrors;
export declare const listDevtoolSessions: API.OperationMethod<ListDevtoolSessionsRequest, ListDevtoolSessionsResponse, ListDevtoolSessionsError, Credentials | HttpClient.HttpClient>;
export interface CreateJsonRequest {
    /** Path param: Account ID. */
    accountId: string;
    /** Query param: Cache TTL default is 5s. Set to 0 to disable. */
    cacheTTL?: number;
    /** Body param: Set the content of the page, eg: `<h1>Hello World!!</h1>`. Either `html` or `url` must be set. */
    html?: string;
    /** Body param: The maximum duration allowed for the browser action to complete after the page has loaded (such as taking screenshots, extracting content, or generating PDFs). If this time limit is exceed */
    actionTimeout?: number;
    /** Body param: Adds a `<script>` tag into the page with the desired URL or content. */
    addScriptTag?: {
        id?: string;
        content?: string;
        type?: string;
        url?: string;
    }[];
    /** Body param: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a `<style type="text/css">` tag with the content. */
    addStyleTag?: {
        content?: string;
        url?: string;
    }[];
    /** Body param: Only allow requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    allowRequestPattern?: string[];
    /** Body param: Only allow requests that match the provided resource types, eg. 'image' or 'script'. */
    allowResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param: Provide credentials for HTTP authentication. */
    authenticate?: {
        password: string;
        username: string;
    };
    /** Body param: Attempt to proceed when 'awaited' events fail or timeout. */
    bestAttempt?: boolean;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setcookie). */
    cookies?: {
        name: string;
        value: string;
        domain?: string;
        expires?: number;
        httpOnly?: boolean;
        partitionKey?: string;
        path?: string;
        priority?: "Low" | "Medium" | "High" | (string & {});
        sameParty?: boolean;
        sameSite?: "Strict" | "Lax" | "None" | (string & {});
        secure?: boolean;
        sourcePort?: number;
        sourceScheme?: "Unset" | "NonSecure" | "Secure" | (string & {});
        url?: string;
    }[];
    /** Body param: Optional list of custom AI models to use for the request. The models will be tried in the order provided, and in case a model returns an error, the next one will be used as fallback. */
    customAi?: {
        model: string;
        authorization?: string;
    }[];
    /** Body param */
    emulateMediaType?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.gotooptions). */
    gotoOptions?: {
        referer?: string;
        referrerPolicy?: string;
        timeout?: number;
        waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | ("load" | "domcontentloaded" | "networkidle0" | "networkidle2" | (string & {}))[];
    };
    /** Body param */
    prompt?: string;
    /** Body param: Block undesired requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    rejectRequestPattern?: string[];
    /** Body param: Block undesired requests that match the provided resource types, eg. 'image' or 'script'. */
    rejectResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param */
    responseFormat?: {
        type: string;
        jsonSchema?: Record<string, unknown> | null;
    };
    /** Body param */
    setExtraHTTPHeaders?: Record<string, unknown>;
    /** Body param */
    setJavaScriptEnabled?: boolean;
    /** Body param */
    userAgent?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setviewport). */
    viewport?: {
        height: number;
        width: number;
        deviceScaleFactor?: number;
        hasTouch?: boolean;
        isLandscape?: boolean;
        isMobile?: boolean;
    };
    /** Body param: Wait for the selector to appear in page. Check [options](https://pptr.dev/api/puppeteer.page.waitforselector). */
    waitForSelector?: {
        selector: string;
        hidden?: true;
        timeout?: number;
        visible?: true;
    };
    /** Body param: Waits for a specified timeout before continuing. */
    waitForTimeout?: number;
    /** Body param: URL to navigate to, eg. `https://example.com`. */
    url?: string;
}
export declare const CreateJsonRequest: Schema.Schema<CreateJsonRequest>;
export type CreateJsonResponse = Record<string, unknown>;
export declare const CreateJsonResponse: Schema.Schema<CreateJsonResponse>;
export type CreateJsonError = DefaultErrors;
export declare const createJson: API.OperationMethod<CreateJsonRequest, CreateJsonResponse, CreateJsonError, Credentials | HttpClient.HttpClient>;
export interface CreateLinkRequest {
    /** Path param: Account ID. */
    accountId: string;
    /** Query param: Cache TTL default is 5s. Set to 0 to disable. */
    cacheTTL?: number;
    /** Body param: Set the content of the page, eg: `<h1>Hello World!!</h1>`. Either `html` or `url` must be set. */
    html?: string;
    /** Body param: The maximum duration allowed for the browser action to complete after the page has loaded (such as taking screenshots, extracting content, or generating PDFs). If this time limit is exceed */
    actionTimeout?: number;
    /** Body param: Adds a `<script>` tag into the page with the desired URL or content. */
    addScriptTag?: {
        id?: string;
        content?: string;
        type?: string;
        url?: string;
    }[];
    /** Body param: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a `<style type="text/css">` tag with the content. */
    addStyleTag?: {
        content?: string;
        url?: string;
    }[];
    /** Body param: Only allow requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    allowRequestPattern?: string[];
    /** Body param: Only allow requests that match the provided resource types, eg. 'image' or 'script'. */
    allowResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param: Provide credentials for HTTP authentication. */
    authenticate?: {
        password: string;
        username: string;
    };
    /** Body param: Attempt to proceed when 'awaited' events fail or timeout. */
    bestAttempt?: boolean;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setcookie). */
    cookies?: {
        name: string;
        value: string;
        domain?: string;
        expires?: number;
        httpOnly?: boolean;
        partitionKey?: string;
        path?: string;
        priority?: "Low" | "Medium" | "High" | (string & {});
        sameParty?: boolean;
        sameSite?: "Strict" | "Lax" | "None" | (string & {});
        secure?: boolean;
        sourcePort?: number;
        sourceScheme?: "Unset" | "NonSecure" | "Secure" | (string & {});
        url?: string;
    }[];
    /** Body param */
    emulateMediaType?: string;
    /** Body param */
    excludeExternalLinks?: boolean;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.gotooptions). */
    gotoOptions?: {
        referer?: string;
        referrerPolicy?: string;
        timeout?: number;
        waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | ("load" | "domcontentloaded" | "networkidle0" | "networkidle2" | (string & {}))[];
    };
    /** Body param: Block undesired requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    rejectRequestPattern?: string[];
    /** Body param: Block undesired requests that match the provided resource types, eg. 'image' or 'script'. */
    rejectResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param */
    setExtraHTTPHeaders?: Record<string, unknown>;
    /** Body param */
    setJavaScriptEnabled?: boolean;
    /** Body param */
    userAgent?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setviewport). */
    viewport?: {
        height: number;
        width: number;
        deviceScaleFactor?: number;
        hasTouch?: boolean;
        isLandscape?: boolean;
        isMobile?: boolean;
    };
    /** Body param */
    visibleLinksOnly?: boolean;
    /** Body param: Wait for the selector to appear in page. Check [options](https://pptr.dev/api/puppeteer.page.waitforselector). */
    waitForSelector?: {
        selector: string;
        hidden?: true;
        timeout?: number;
        visible?: true;
    };
    /** Body param: Waits for a specified timeout before continuing. */
    waitForTimeout?: number;
    /** Body param: URL to navigate to, eg. `https://example.com`. */
    url?: string;
}
export declare const CreateLinkRequest: Schema.Schema<CreateLinkRequest>;
export type CreateLinkResponse = string[];
export declare const CreateLinkResponse: Schema.Schema<CreateLinkResponse>;
export type CreateLinkError = DefaultErrors;
export declare const createLink: API.OperationMethod<CreateLinkRequest, CreateLinkResponse, CreateLinkError, Credentials | HttpClient.HttpClient>;
export interface CreateMarkdownRequest {
    /** Path param: Account ID. */
    accountId: string;
    /** Query param: Cache TTL default is 5s. Set to 0 to disable. */
    cacheTTL?: number;
    /** Body param: URL to navigate to, eg. `https://example.com`. */
    url?: string;
    /** Body param: The maximum duration allowed for the browser action to complete after the page has loaded (such as taking screenshots, extracting content, or generating PDFs). If this time limit is exceed */
    actionTimeout?: number;
    /** Body param: Adds a `<script>` tag into the page with the desired URL or content. */
    addScriptTag?: {
        id?: string;
        content?: string;
        type?: string;
        url?: string;
    }[];
    /** Body param: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a `<style type="text/css">` tag with the content. */
    addStyleTag?: {
        content?: string;
        url?: string;
    }[];
    /** Body param: Only allow requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    allowRequestPattern?: string[];
    /** Body param: Only allow requests that match the provided resource types, eg. 'image' or 'script'. */
    allowResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param: Provide credentials for HTTP authentication. */
    authenticate?: {
        password: string;
        username: string;
    };
    /** Body param: Attempt to proceed when 'awaited' events fail or timeout. */
    bestAttempt?: boolean;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setcookie). */
    cookies?: {
        name: string;
        value: string;
        domain?: string;
        expires?: number;
        httpOnly?: boolean;
        partitionKey?: string;
        path?: string;
        priority?: "Low" | "Medium" | "High" | (string & {});
        sameParty?: boolean;
        sameSite?: "Strict" | "Lax" | "None" | (string & {});
        secure?: boolean;
        sourcePort?: number;
        sourceScheme?: "Unset" | "NonSecure" | "Secure" | (string & {});
        url?: string;
    }[];
    /** Body param */
    emulateMediaType?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.gotooptions). */
    gotoOptions?: {
        referer?: string;
        referrerPolicy?: string;
        timeout?: number;
        waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | ("load" | "domcontentloaded" | "networkidle0" | "networkidle2" | (string & {}))[];
    };
    /** Body param: Block undesired requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    rejectRequestPattern?: string[];
    /** Body param: Block undesired requests that match the provided resource types, eg. 'image' or 'script'. */
    rejectResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param */
    setExtraHTTPHeaders?: Record<string, unknown>;
    /** Body param */
    setJavaScriptEnabled?: boolean;
    /** Body param */
    userAgent?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setviewport). */
    viewport?: {
        height: number;
        width: number;
        deviceScaleFactor?: number;
        hasTouch?: boolean;
        isLandscape?: boolean;
        isMobile?: boolean;
    };
    /** Body param: Wait for the selector to appear in page. Check [options](https://pptr.dev/api/puppeteer.page.waitforselector). */
    waitForSelector?: {
        selector: string;
        hidden?: true;
        timeout?: number;
        visible?: true;
    };
    /** Body param: Waits for a specified timeout before continuing. */
    waitForTimeout?: number;
    /** Body param: Set the content of the page, eg: `<h1>Hello World!!</h1>`. Either `html` or `url` must be set. */
    html?: string;
}
export declare const CreateMarkdownRequest: Schema.Schema<CreateMarkdownRequest>;
export type CreateMarkdownResponse = string;
export declare const CreateMarkdownResponse: Schema.Schema<CreateMarkdownResponse>;
export type CreateMarkdownError = DefaultErrors;
export declare const createMarkdown: API.OperationMethod<CreateMarkdownRequest, CreateMarkdownResponse, CreateMarkdownError, Credentials | HttpClient.HttpClient>;
export interface CreatePdfRequest {
    /** Path param: Account ID. */
    accountId: string;
    /** Query param: Cache TTL default is 5s. Set to 0 to disable. */
    cacheTTL?: number;
    /** Body param: Set the content of the page, eg: `<h1>Hello World!!</h1>`. Either `html` or `url` must be set. */
    html?: string;
    /** Body param: The maximum duration allowed for the browser action to complete after the page has loaded (such as taking screenshots, extracting content, or generating PDFs). If this time limit is exceed */
    actionTimeout?: number;
    /** Body param: Adds a `<script>` tag into the page with the desired URL or content. */
    addScriptTag?: {
        id?: string;
        content?: string;
        type?: string;
        url?: string;
    }[];
    /** Body param: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a `<style type="text/css">` tag with the content. */
    addStyleTag?: {
        content?: string;
        url?: string;
    }[];
    /** Body param: Only allow requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    allowRequestPattern?: string[];
    /** Body param: Only allow requests that match the provided resource types, eg. 'image' or 'script'. */
    allowResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param: Provide credentials for HTTP authentication. */
    authenticate?: {
        password: string;
        username: string;
    };
    /** Body param: Attempt to proceed when 'awaited' events fail or timeout. */
    bestAttempt?: boolean;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setcookie). */
    cookies?: {
        name: string;
        value: string;
        domain?: string;
        expires?: number;
        httpOnly?: boolean;
        partitionKey?: string;
        path?: string;
        priority?: "Low" | "Medium" | "High" | (string & {});
        sameParty?: boolean;
        sameSite?: "Strict" | "Lax" | "None" | (string & {});
        secure?: boolean;
        sourcePort?: number;
        sourceScheme?: "Unset" | "NonSecure" | "Secure" | (string & {});
        url?: string;
    }[];
    /** Body param */
    emulateMediaType?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.gotooptions). */
    gotoOptions?: {
        referer?: string;
        referrerPolicy?: string;
        timeout?: number;
        waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | ("load" | "domcontentloaded" | "networkidle0" | "networkidle2" | (string & {}))[];
    };
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.pdfoptions). */
    pdfOptions?: {
        displayHeaderFooter?: boolean;
        footerTemplate?: string;
        format?: "letter" | "legal" | "tabloid" | "ledger" | "a0" | "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | (string & {});
        headerTemplate?: string;
        height?: string | number;
        landscape?: boolean;
        margin?: {
            bottom?: string | number;
            left?: string | number;
            right?: string | number;
            top?: string | number;
        };
        omitBackground?: boolean;
        outline?: boolean;
        pageRanges?: string;
        preferCSSPageSize?: boolean;
        printBackground?: boolean;
        scale?: number;
        tagged?: boolean;
        timeout?: number;
        width?: string | number;
    };
    /** Body param: Block undesired requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    rejectRequestPattern?: string[];
    /** Body param: Block undesired requests that match the provided resource types, eg. 'image' or 'script'. */
    rejectResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param */
    setExtraHTTPHeaders?: Record<string, unknown>;
    /** Body param */
    setJavaScriptEnabled?: boolean;
    /** Body param */
    userAgent?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setviewport). */
    viewport?: {
        height: number;
        width: number;
        deviceScaleFactor?: number;
        hasTouch?: boolean;
        isLandscape?: boolean;
        isMobile?: boolean;
    };
    /** Body param: Wait for the selector to appear in page. Check [options](https://pptr.dev/api/puppeteer.page.waitforselector). */
    waitForSelector?: {
        selector: string;
        hidden?: true;
        timeout?: number;
        visible?: true;
    };
    /** Body param: Waits for a specified timeout before continuing. */
    waitForTimeout?: number;
    /** Body param: URL to navigate to, eg. `https://example.com`. */
    url?: string;
}
export declare const CreatePdfRequest: Schema.Schema<CreatePdfRequest>;
export type CreatePdfResponse = unknown;
export declare const CreatePdfResponse: Schema.Schema<CreatePdfResponse>;
export type CreatePdfError = DefaultErrors;
export declare const createPdf: API.OperationMethod<CreatePdfRequest, CreatePdfResponse, CreatePdfError, Credentials | HttpClient.HttpClient>;
export interface CreateScrapeRequest {
    /** Path param: Account ID. */
    accountId: string;
    /** Query param: Cache TTL default is 5s. Set to 0 to disable. */
    cacheTTL?: number;
    /** Body param */
    elements: {
        selector: string;
    }[];
    /** Body param: Set the content of the page, eg: `<h1>Hello World!!</h1>`. Either `html` or `url` must be set. */
    html?: string;
    /** Body param: The maximum duration allowed for the browser action to complete after the page has loaded (such as taking screenshots, extracting content, or generating PDFs). If this time limit is exceed */
    actionTimeout?: number;
    /** Body param: Adds a `<script>` tag into the page with the desired URL or content. */
    addScriptTag?: {
        id?: string;
        content?: string;
        type?: string;
        url?: string;
    }[];
    /** Body param: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a `<style type="text/css">` tag with the content. */
    addStyleTag?: {
        content?: string;
        url?: string;
    }[];
    /** Body param: Only allow requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    allowRequestPattern?: string[];
    /** Body param: Only allow requests that match the provided resource types, eg. 'image' or 'script'. */
    allowResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param: Provide credentials for HTTP authentication. */
    authenticate?: {
        password: string;
        username: string;
    };
    /** Body param: Attempt to proceed when 'awaited' events fail or timeout. */
    bestAttempt?: boolean;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setcookie). */
    cookies?: {
        name: string;
        value: string;
        domain?: string;
        expires?: number;
        httpOnly?: boolean;
        partitionKey?: string;
        path?: string;
        priority?: "Low" | "Medium" | "High" | (string & {});
        sameParty?: boolean;
        sameSite?: "Strict" | "Lax" | "None" | (string & {});
        secure?: boolean;
        sourcePort?: number;
        sourceScheme?: "Unset" | "NonSecure" | "Secure" | (string & {});
        url?: string;
    }[];
    /** Body param */
    emulateMediaType?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.gotooptions). */
    gotoOptions?: {
        referer?: string;
        referrerPolicy?: string;
        timeout?: number;
        waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | ("load" | "domcontentloaded" | "networkidle0" | "networkidle2" | (string & {}))[];
    };
    /** Body param: Block undesired requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    rejectRequestPattern?: string[];
    /** Body param: Block undesired requests that match the provided resource types, eg. 'image' or 'script'. */
    rejectResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param */
    setExtraHTTPHeaders?: Record<string, unknown>;
    /** Body param */
    setJavaScriptEnabled?: boolean;
    /** Body param */
    userAgent?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setviewport). */
    viewport?: {
        height: number;
        width: number;
        deviceScaleFactor?: number;
        hasTouch?: boolean;
        isLandscape?: boolean;
        isMobile?: boolean;
    };
    /** Body param: Wait for the selector to appear in page. Check [options](https://pptr.dev/api/puppeteer.page.waitforselector). */
    waitForSelector?: {
        selector: string;
        hidden?: true;
        timeout?: number;
        visible?: true;
    };
    /** Body param: Waits for a specified timeout before continuing. */
    waitForTimeout?: number;
    /** Body param: URL to navigate to, eg. `https://example.com`. */
    url?: string;
}
export declare const CreateScrapeRequest: Schema.Schema<CreateScrapeRequest>;
export type CreateScrapeResponse = {
    results: {
        attributes: {
            name: string;
            value: string;
        }[];
        height: number;
        html: string;
        left: number;
        text: string;
        top: number;
        width: number;
    };
    selector: string;
}[];
export declare const CreateScrapeResponse: Schema.Schema<CreateScrapeResponse>;
export type CreateScrapeError = DefaultErrors;
export declare const createScrape: API.OperationMethod<CreateScrapeRequest, CreateScrapeResponse, CreateScrapeError, Credentials | HttpClient.HttpClient>;
export interface CreateScreenshotRequest {
    /** Path param: Account ID. */
    accountId: string;
    /** Query param: Cache TTL default is 5s. Set to 0 to disable. */
    cacheTTL?: number;
    /** Body param: Set the content of the page, eg: `<h1>Hello World!!</h1>`. Either `html` or `url` must be set. */
    html?: string;
    /** Body param: The maximum duration allowed for the browser action to complete after the page has loaded (such as taking screenshots, extracting content, or generating PDFs). If this time limit is exceed */
    actionTimeout?: number;
    /** Body param: Adds a `<script>` tag into the page with the desired URL or content. */
    addScriptTag?: {
        id?: string;
        content?: string;
        type?: string;
        url?: string;
    }[];
    /** Body param: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a `<style type="text/css">` tag with the content. */
    addStyleTag?: {
        content?: string;
        url?: string;
    }[];
    /** Body param: Only allow requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    allowRequestPattern?: string[];
    /** Body param: Only allow requests that match the provided resource types, eg. 'image' or 'script'. */
    allowResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param: Provide credentials for HTTP authentication. */
    authenticate?: {
        password: string;
        username: string;
    };
    /** Body param: Attempt to proceed when 'awaited' events fail or timeout. */
    bestAttempt?: boolean;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setcookie). */
    cookies?: {
        name: string;
        value: string;
        domain?: string;
        expires?: number;
        httpOnly?: boolean;
        partitionKey?: string;
        path?: string;
        priority?: "Low" | "Medium" | "High" | (string & {});
        sameParty?: boolean;
        sameSite?: "Strict" | "Lax" | "None" | (string & {});
        secure?: boolean;
        sourcePort?: number;
        sourceScheme?: "Unset" | "NonSecure" | "Secure" | (string & {});
        url?: string;
    }[];
    /** Body param */
    emulateMediaType?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.gotooptions). */
    gotoOptions?: {
        referer?: string;
        referrerPolicy?: string;
        timeout?: number;
        waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | ("load" | "domcontentloaded" | "networkidle0" | "networkidle2" | (string & {}))[];
    };
    /** Body param: Block undesired requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    rejectRequestPattern?: string[];
    /** Body param: Block undesired requests that match the provided resource types, eg. 'image' or 'script'. */
    rejectResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.screenshotoptions). */
    screenshotOptions?: {
        captureBeyondViewport?: boolean;
        clip?: {
            height: number;
            width: number;
            x: number;
            y: number;
            scale?: number;
        };
        encoding?: "binary" | "base64" | (string & {});
        fromSurface?: boolean;
        fullPage?: boolean;
        omitBackground?: boolean;
        optimizeForSpeed?: boolean;
        quality?: number;
        type?: "png" | "jpeg" | "webp" | (string & {});
    };
    /** Body param */
    scrollPage?: boolean;
    /** Body param */
    selector?: string;
    /** Body param */
    setExtraHTTPHeaders?: Record<string, unknown>;
    /** Body param */
    setJavaScriptEnabled?: boolean;
    /** Body param */
    userAgent?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setviewport). */
    viewport?: {
        height: number;
        width: number;
        deviceScaleFactor?: number;
        hasTouch?: boolean;
        isLandscape?: boolean;
        isMobile?: boolean;
    };
    /** Body param: Wait for the selector to appear in page. Check [options](https://pptr.dev/api/puppeteer.page.waitforselector). */
    waitForSelector?: {
        selector: string;
        hidden?: true;
        timeout?: number;
        visible?: true;
    };
    /** Body param: Waits for a specified timeout before continuing. */
    waitForTimeout?: number;
    /** Body param: URL to navigate to, eg. `https://example.com`. */
    url?: string;
}
export declare const CreateScreenshotRequest: Schema.Schema<CreateScreenshotRequest>;
export interface CreateScreenshotResponse {
    /** Response status. */
    success: boolean;
    errors?: {
        code: number;
        message: string;
    }[] | null;
}
export declare const CreateScreenshotResponse: Schema.Schema<CreateScreenshotResponse>;
export type CreateScreenshotError = DefaultErrors;
export declare const createScreenshot: API.OperationMethod<CreateScreenshotRequest, CreateScreenshotResponse, CreateScreenshotError, Credentials | HttpClient.HttpClient>;
export interface CreateSnapshotRequest {
    /** Path param: Account ID. */
    accountId: string;
    /** Query param: Cache TTL default is 5s. Set to 0 to disable. */
    cacheTTL?: number;
    /** Body param: Set the content of the page, eg: `<h1>Hello World!!</h1>`. Either `html` or `url` must be set. */
    html?: string;
    /** Body param: The maximum duration allowed for the browser action to complete after the page has loaded (such as taking screenshots, extracting content, or generating PDFs). If this time limit is exceed */
    actionTimeout?: number;
    /** Body param: Adds a `<script>` tag into the page with the desired URL or content. */
    addScriptTag?: {
        id?: string;
        content?: string;
        type?: string;
        url?: string;
    }[];
    /** Body param: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a `<style type="text/css">` tag with the content. */
    addStyleTag?: {
        content?: string;
        url?: string;
    }[];
    /** Body param: Only allow requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    allowRequestPattern?: string[];
    /** Body param: Only allow requests that match the provided resource types, eg. 'image' or 'script'. */
    allowResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param: Provide credentials for HTTP authentication. */
    authenticate?: {
        password: string;
        username: string;
    };
    /** Body param: Attempt to proceed when 'awaited' events fail or timeout. */
    bestAttempt?: boolean;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setcookie). */
    cookies?: {
        name: string;
        value: string;
        domain?: string;
        expires?: number;
        httpOnly?: boolean;
        partitionKey?: string;
        path?: string;
        priority?: "Low" | "Medium" | "High" | (string & {});
        sameParty?: boolean;
        sameSite?: "Strict" | "Lax" | "None" | (string & {});
        secure?: boolean;
        sourcePort?: number;
        sourceScheme?: "Unset" | "NonSecure" | "Secure" | (string & {});
        url?: string;
    }[];
    /** Body param */
    emulateMediaType?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.gotooptions). */
    gotoOptions?: {
        referer?: string;
        referrerPolicy?: string;
        timeout?: number;
        waitUntil?: "load" | "domcontentloaded" | "networkidle0" | "networkidle2" | ("load" | "domcontentloaded" | "networkidle0" | "networkidle2" | (string & {}))[];
    };
    /** Body param: Block undesired requests that match the provided regex patterns, eg. '/^.\ \.(css)'. */
    rejectRequestPattern?: string[];
    /** Body param: Block undesired requests that match the provided resource types, eg. 'image' or 'script'. */
    rejectResourceTypes?: ("document" | "stylesheet" | "image" | "media" | "font" | "script" | "texttrack" | "xhr" | "fetch" | "prefetch" | "eventsource" | "websocket" | "manifest" | "signedexchange" | "ping" | "cspviolationreport" | "preflight" | "other" | (string & {}))[];
    /** Body param */
    screenshotOptions?: {
        captureBeyondViewport?: boolean;
        clip?: {
            height: number;
            width: number;
            x: number;
            y: number;
            scale?: number;
        };
        fromSurface?: boolean;
        fullPage?: boolean;
        omitBackground?: boolean;
        optimizeForSpeed?: boolean;
        quality?: number;
        type?: "png" | "jpeg" | "webp" | (string & {});
    };
    /** Body param */
    setExtraHTTPHeaders?: Record<string, unknown>;
    /** Body param */
    setJavaScriptEnabled?: boolean;
    /** Body param */
    userAgent?: string;
    /** Body param: Check [options](https://pptr.dev/api/puppeteer.page.setviewport). */
    viewport?: {
        height: number;
        width: number;
        deviceScaleFactor?: number;
        hasTouch?: boolean;
        isLandscape?: boolean;
        isMobile?: boolean;
    };
    /** Body param: Wait for the selector to appear in page. Check [options](https://pptr.dev/api/puppeteer.page.waitforselector). */
    waitForSelector?: {
        selector: string;
        hidden?: true;
        timeout?: number;
        visible?: true;
    };
    /** Body param: Waits for a specified timeout before continuing. */
    waitForTimeout?: number;
    /** Body param: URL to navigate to, eg. `https://example.com`. */
    url?: string;
}
export declare const CreateSnapshotRequest: Schema.Schema<CreateSnapshotRequest>;
export interface CreateSnapshotResponse {
    /** HTML content. */
    content: string;
    /** Base64 encoded image. */
    screenshot: string;
}
export declare const CreateSnapshotResponse: Schema.Schema<CreateSnapshotResponse>;
export type CreateSnapshotError = DefaultErrors;
export declare const createSnapshot: API.OperationMethod<CreateSnapshotRequest, CreateSnapshotResponse, CreateSnapshotError, Credentials | HttpClient.HttpClient>;
//# sourceMappingURL=browser-rendering.d.ts.map