import type { Eyes, Usage } from "../core/host.js"; import { type LimitsOverride } from "../core/limits.js"; /** A catalog entry, as far as a look reads it. */ type CatalogModel = { readonly id: string; readonly input?: readonly string[]; readonly reasoning?: boolean; readonly cost?: { readonly input: number; readonly output: number; }; }; type Block = { readonly type: "text"; readonly text: string; } | { readonly type: "image"; readonly data: string; readonly mimeType: string; }; /** The answer of one request, as far as a look reads it. */ type Answer = { readonly content: readonly { readonly type: string; readonly text?: string; }[]; readonly model: string; readonly responseModel?: string; readonly usage: Usage; readonly stopReason: string; readonly errorMessage?: string; }; /** The part of pi-ai's `Models` a look uses. */ export type ModelsDoor = { getModel(provider: string, id: string): CatalogModel | undefined; completeSimple(model: CatalogModel, context: { messages: { role: "user"; content: Block[]; timestamp: number; }[]; }, options?: { signal?: AbortSignal; reasoning?: string; }): Promise; }; /** What `modelsEyes` takes: the thinking level, the timeout, limits over the model's own, and what the route accepts beyond the catalog's `input`. */ export type ModelsEyesOptions = { /** pi's thinking level for the look; `off` and absent are `low`. */ readonly thinking?: string; /** Default `SEE_TIMEOUT_MS`. */ readonly timeoutMs?: number; /** Over the model's own `inputLimits`. */ readonly limits?: LimitsOverride; /** What the route takes beyond the catalog's `input`: a route that takes video, or a PDF. */ readonly accepts?: Partial; }; /** `api.models` when the pi-durable that built `api` has it (1.1 or later), else undefined. */ export declare function modelsOf(api: unknown): ModelsDoor | undefined; /** Eyes on `eyesModel` through `models`, or undefined when the catalog has no such model or it takes no images. */ export declare function modelsEyes(models: ModelsDoor, eyesModel: { readonly provider: string; readonly modelId: string; }, options?: ModelsEyesOptions): Eyes | undefined; export {};