import { APIResource } from "../../resource.js";
import * as Core from "../../core.js";
export declare class Screenshot extends APIResource {
/**
* Takes a screenshot of a webpage from provided URL or HTML. Control page loading
* with `gotoOptions` and `waitFor*` options. Customize screenshots with
* `viewport`, `fullPage`, `clip` and others.
*
* @example
* ```ts
* const screenshot =
* await client.browserRendering.screenshot.create({
* account_id: 'account_id',
* html: '
Hello World!
',
* });
* ```
*/
create(params: ScreenshotCreateParams, options?: Core.RequestOptions): Core.APIPromise;
}
export interface ScreenshotCreateResponse {
/**
* Response status.
*/
success: boolean;
errors?: Array;
}
export declare namespace ScreenshotCreateResponse {
interface Error {
/**
* Error code.
*/
code: number;
/**
* Error message.
*/
message: string;
}
}
export type ScreenshotCreateParams = ScreenshotCreateParams.Variant0 | ScreenshotCreateParams.Variant1;
export declare namespace ScreenshotCreateParams {
interface Variant0 {
/**
* Path param: Account ID.
*/
account_id: string;
/**
* Body param: Set the content of the page, eg: `Hello World!!
`. Either
* `html` or `url` must be set.
*/
html: string;
/**
* Query param: Cache TTL default is 5s. Set to 0 to disable.
*/
cacheTTL?: number;
/**
* 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 exceeded, the action stops and returns a
* timeout error.
*/
actionTimeout?: number;
/**
* Body param: Adds a `