/** Isomorphic Zod schemas + error class for the REST API surface * (`/v1/screenshot`, `/v1/content`, `/v1/scrape`). Consumed by both the OSS * server (`src/server/rest/*`) and any downstream runtime that speaks the * same request shape (Cloudflare Workers etc.). No `node:` imports. */ import { z } from "zod"; export declare const ScreenshotRequestSchema: z.ZodObject<{ fullPage: z.ZodDefault; format: z.ZodDefault>; quality: z.ZodOptional; selector: z.ZodOptional; clip: z.ZodOptional>; omitBackground: z.ZodDefault; scrollPage: z.ZodDefault; waitUntil: z.ZodDefault>; url: z.ZodString; viewport: z.ZodOptional; height: z.ZodDefault; }, z.core.$strip>>; waitForSelector: z.ZodOptional; waitForTimeout: z.ZodOptional; timeout: z.ZodDefault; retries: z.ZodDefault; headers: z.ZodOptional>; userAgent: z.ZodOptional; profile: z.ZodOptional; provider: z.ZodOptional; }, z.core.$strict>; /** Request body for `POST /v1/screenshot`. Inferred from {@link ScreenshotRequestSchema}. @public */ export type ScreenshotRequest = z.infer; export declare const ContentRequestSchema: z.ZodObject<{ formats: z.ZodDefault>>; waitUntil: z.ZodDefault>; url: z.ZodString; viewport: z.ZodOptional; height: z.ZodDefault; }, z.core.$strip>>; waitForSelector: z.ZodOptional; waitForTimeout: z.ZodOptional; timeout: z.ZodDefault; retries: z.ZodDefault; headers: z.ZodOptional>; userAgent: z.ZodOptional; profile: z.ZodOptional; provider: z.ZodOptional; }, z.core.$strict>; /** Request body for `POST /v1/content`. Inferred from {@link ContentRequestSchema}. @public */ export type ContentRequest = z.infer; export declare const ScrapeRequestSchema: z.ZodObject<{ selectors: z.ZodOptional; }, z.core.$strict>>>; formats: z.ZodOptional>>; screenshot: z.ZodDefault; waitUntil: z.ZodDefault>; url: z.ZodString; viewport: z.ZodOptional; height: z.ZodDefault; }, z.core.$strip>>; waitForSelector: z.ZodOptional; waitForTimeout: z.ZodOptional; timeout: z.ZodDefault; retries: z.ZodDefault; headers: z.ZodOptional>; userAgent: z.ZodOptional; profile: z.ZodOptional; provider: z.ZodOptional; }, z.core.$strict>; /** Request body for `POST /v1/scrape`. Inferred from {@link ScrapeRequestSchema}. @public */ export type ScrapeRequest = z.infer; /** Structured error thrown by REST handlers. Server layer maps `.status` to HTTP. */ export declare class RestApiError extends Error { status: number; constructor(status: number, message: string); } //# sourceMappingURL=index.d.ts.map