/** Web-standard-runtime build of the dev credential ladder, selected by the * package's `worker`/`workerd`/`edge-light`/`browser` import conditions * (see `#dev-creds/model` in package.json). * * The real ladder is Node by design: it resolves the host's own @ai-sdk * provider install via createRequire from the project root, reads `vendo * login` sessions off disk, and anchors on process.cwd(). None of that * exists inside a Worker bundle — Mohamed's field report had the ladder * dying on runtime require.resolve under Wrangler even with VENDO_API_KEY * set. On these runtimes the model seam is explicit by contract: the host * wiring constructs the provider (init generates it; the Cloud gateway is * the stock Anthropic provider pointed at the console). The ladder's edge * build therefore resolves to honest guidance instead of half-working * magic. Keep this module free of node builtins and CLI imports; the * portability gate bundles it. */ import type { LanguageModel } from "ai"; import type { ConfigurableSlotModels, VendoModelOptions, VendoModelSlot } from "./model.js"; export type { VendoModelOptions, VendoModelSlot }; /** Same seam as the Node build; announces its unavailability once on first * use through the server log, like the Node ladder's unavailable rung. */ export declare function vendoModel(name?: string, _options?: VendoModelOptions): LanguageModel; /** Export parity with the Node build (the server entry imports it from * "#dev-creds/model"). The edge ladder never resolves, so there is nothing * to bind — a deliberate no-op. */ export declare function bindVendoModelSlots(_model: unknown, _models: ConfigurableSlotModels | undefined): void;