import { APIResource } from "../../core/resource.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; export declare class BaseContent extends APIResource { static readonly _key: readonly ['browserRendering', 'content']; /** * Fetches rendered HTML content from provided URL or HTML. Check available options * like `gotoOptions` and `waitFor*` to control page load behaviour. * * @example * ```ts * const content = * await client.browserRendering.content.create({ * account_id: 'account_id', * url: 'https://www.example.com/', * }); * ``` */ create(params: ContentCreateParams, options?: RequestOptions): APIPromise; } export declare class Content extends BaseContent { } /** * HTML content. */ export type ContentCreateResponse = string; export type ContentCreateParams = ContentCreateParams.Variant0 | ContentCreateParams.Variant1; export declare namespace ContentCreateParams { interface Variant0 { /** * Path param: Account ID. */ account_id: string; /** * Body param: URL to navigate to, eg. `https://example.com`. */ url: 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 `