import type { Api, Model } from "@earendil-works/pi-ai"; import type { Eyes } from "../core/host.js"; import { type LimitsOverride } from "../core/limits.js"; /** What the host gives `piAiEyes` beyond the model: how the key is read, the thinking level, a view of the payload, a timeout and limits. */ export type PiAiEyesOptions = { /** The key for each request, read when the request is made. */ readonly apiKey?: () => string | undefined; /** pi's thinking level for the look. Every look thinks: "off", an unknown level or none asks for "minimal". */ readonly reasoning?: string; /** The host's view of each request's payload before it is sent; a value it returns replaces the payload. */ readonly onPayload?: (payload: unknown) => unknown; /** Default `SEE_TIMEOUT_MS`. */ readonly timeoutMs?: number; /** Over the model's own `inputLimits`; `video.native` says the model takes video. */ readonly limits?: LimitsOverride; }; /** Eyes on a pi-ai `model` the host built. One `completeSimple` request a look, at the thinking level in `options` and never * off, cut at the timeout, with its usage and its price on the answer (null when the model has no rates). The key comes from * `options.apiKey`, read at each request, and that key is taken out of any error's words; without `apiKey` pi-ai reads the * provider's own variable, and what pi-ai puts in an error is left as it is. */ export declare function piAiEyes(model: Model, options?: PiAiEyesOptions): Eyes;