/** Image edges in pixels and base64 bytes: pi-ai 1.0.4's registry resize profile for its Anthropic, OpenAI and Google models (read 2026-10-09). */ export declare const DEFAULT_IMAGE_MAX_EDGE = 2000; /** The most base64 bytes an image block carries: 4.5 MiB. */ export declare const DEFAULT_IMAGE_MAX_BYTES = 4718592; /** JPEG quality of a re-encoded image: the same registry profile (read 2026-10-09). */ export declare const DEFAULT_JPEG_QUALITY = 80; /** An image whose header claims more pixels is refused before any decode, a guard against decompression bombs (2026-10-09). */ export declare const DECODE_GUARD_PIXELS = 100000000; /** Tile when the long edge is over this many short edges: fitted whole, a 1288x8319 screenshot is 243 px wide (measured 2026-10-09). */ export declare const TILE_ASPECT = 2; /** ... and fitting whole would keep less than this share of the long edge (a shrink of more than 40%) (2026-10-09). */ export declare const TILE_KEEP_BELOW = 0.6; /** A tile's long edge: Anthropic's vision guide sends images up to 1,568 px on the long edge unscaled (read 2026-10-09). */ export declare const TILE_MAX_EDGE = 1568; /** Pixels two neighbouring tiles share, so a line of text cut by one edge is whole in the other (2026-10-09). */ export declare const TILE_OVERLAP = 64; /** No page or tile is shrunk to a shorter long edge; a source already smaller is sent as it is. A Letter scan read 100% from 1,210 px and 91% at 792 px on synthetic letters (measured 2026-10-11). */ export declare const FLOOR_EDGE = 1200; /** Images in one result: the eight video frames hosts already show; Anthropic tightens its image limit above 20 in a request (read 2026-10-09). */ export declare const IMAGES_PER_CALL = 8; /** One result's image bytes are at most this share of the request budget: eight images at the per-image limit make 36 MiB (2026-10-09). */ export declare const RESULT_BYTES_SHARE = 0.25; /** Pages one `read` shows: a rendered page is about 3,000 input tokens on current OpenAI models (read 2026-10-09). */ export declare const PAGES_PER_READ = 4; /** A page renders at `min(PDF_MAX_DPI, floor(POINTS_PER_INCH * maxEdge / long edge in points))`: 150 dpi read as well as 181 and 200 on synthetic scans, at 46% fewer tokens than 181 (measured 2026-10-11). */ export declare const PDF_MAX_DPI = 150; /** The points of a PDF page to an inch. */ export declare const POINTS_PER_INCH = 72; /** Characters of a page's text layer shown beside its render: the cap hosts already apply (read 2026-10-09). */ export declare const PAGE_TEXT_CHARS = 8000; /** Frames one video `read` shows, each found by seek: eight seeks take 1.9 s on a 30 minute file, an fps filter 12.8 s (measured 2026-10-09). */ export declare const VIDEO_FRAMES_PER_READ = 8; /** A window that does not fit by stream copy is re-encoded once, to this long edge and frame rate; never the whole file (measured 2026-10-09). */ export declare const VIDEO_REENCODE_EDGE = 1280; /** The frame rate of that re-encode. */ export declare const VIDEO_REENCODE_FPS = 6; /** Inline video is at most this share of the request budget, in raw bytes after base64's 4/3 growth (2026-10-09). */ export declare const VIDEO_INLINE_SHARE = 0.6; /** Raw inline video bytes when no request cap is known: the budget hosts already apply (read 2026-10-09). */ export declare const DEFAULT_VIDEO_INLINE_BYTES = 12000000; /** Taken off the smallest known request cap for the request's text and framing (2026-10-09). */ export declare const REQUEST_HEADROOM_BYTES: number; /** The request budget when neither the model nor the host names a cap: under the smallest cap in pi-ai 1.0.4's registry, 20 MiB (read 2026-10-09). */ export declare const DEFAULT_REQUEST_BYTES: number; /** A plan for the eyes (`ask`): pages in one eyes request. A look has no page, frame or price cap unless its host * passes one (`PlanCaps`, `priceLook`'s `capUsd`) (2026-10-09). */ export declare const LOOK_PAGES_PER_REQUEST = 10; /** A plan for the eyes: video frames in one eyes request (2026-10-09). */ export declare const LOOK_FRAMES_PER_REQUEST = 20; /** A plan for eyes without video: one frame by seek this many seconds apart over the window, at least the frames of a * `read`; eight frames over an eight second window read a counter that changes every second (measured 2026-10-11). */ export declare const LOOK_FRAME_SPACING_S = 1; /** A look is priced before its first request at this many input tokens a part, the bound measured for a page on current OpenAI models (read 2026-10-09). */ export declare const LOOK_TOKENS_PER_PART = 3000; /** One request to the eyes is cut after this long (2026-10-09). */ export declare const SEE_TIMEOUT_MS = 120000; /** Jev's images (docs.typesafe.ai/images, read 2026-10-16): PNG or JPEG stills, each side 280 to 1,568 px, 16 MiB a * file and 32 MiB of images a request after the API re-encodes them, so a quarter is kept free; out of range is * rejected, never resized; the EXIF orientation is not applied. */ export declare const JEV_MIN_EDGE = 280; /** The longest side of an image Jev takes, in pixels. */ export declare const JEV_MAX_EDGE = 1568; /** The largest image file Jev takes. */ export declare const JEV_IMAGE_BYTES: number; /** The most bytes of images one Jev request carries, a quarter under the API's own cap. */ export declare const JEV_REQUEST_BYTES: number; /** The model `vision.judge` asks unless the host names one: Jev 1.14, the first that answers box questions (read 2026-10-16). */ export declare const JEV_MODEL = "jev-1.14.0"; /** Source bytes read into this process; a larger file needs a provider that works on it in its environment: pdf.js held 455 MB for a 200 page file (measured 2026-10-09). */ export declare const SOURCE_BYTES_IN_PROCESS: number; /** What a program this package starts may leave in a file for this process to read back (its output, its error stream, an image it drew). A program that wrote more is refused before it is read, so a document that makes it expand to hundreds of megabytes cannot fill this process's memory; the same bound as a source (2026-10-19). */ export declare const PROGRAM_OUTPUT_BYTES: number; /** pi-durable's image limits: what an `ImageProcessor` fits to. */ export type ImageLimits = { readonly maxWidth: number; readonly maxHeight: number; readonly maxBytes: number; }; /** The budgets a plan is held to, resolved for one route. */ export type Limits = { /** `native`: the lead takes images inside a tool result. A route that rejects them there is the host's word. */ readonly image: ImageLimits & { readonly jpegQuality: number; readonly native: boolean; }; /** Images in one result, never over the model's own `maxPerMessage`. */ readonly imagesPerCall: number; readonly pagesPerRead: number; /** One request body: the smallest known cap less `REQUEST_HEADROOM_BYTES`, or `DEFAULT_REQUEST_BYTES`. */ readonly requestBytes: number; readonly video: { readonly native: boolean; readonly inlineBytes: number; }; }; /** What a host declares for its route over the model's limits. Each value replaces the model's, except * `requestBytes`, the route's own cap on a request body: the smaller of it and the model's cap wins, since both bound * the same request. */ export type LimitsOverride = { readonly image?: Partial; readonly imagesPerCall?: number; readonly pagesPerRead?: number; readonly requestBytes?: number; readonly video?: Partial; }; /** The limits when the lead's model names none: the common resize profile, images shown natively, no native video. */ export declare const DEFAULT_LIMITS: Limits; /** The limits a pi-ai `Model` declares in `inputLimits`, and whether its `input` takes images, as an override. Read * structurally, so the core imports no pi package; a missing, zero or malformed value is absent, never a limit of zero. */ export declare function limitsFromModel(model: unknown): LimitsOverride; /** The budgets for one route: the defaults, then the model's own limits, then the host's. */ export declare function resolveLimits(model: unknown, host?: LimitsOverride): Limits;