/** * @octomil/browser — Unified Octomil facade * * High-level entry point wrapping ResponsesClient for cloud-backed * structured responses. Unlike OctomilClient (which requires a model * for local inference), this facade is model-agnostic and delegates * model selection to each request. */ import { ResponsesClient } from "./responses.js"; import type { Response, ResponseStreamEvent } from "./responses.js"; import type { AuthConfig, EmbeddingResult } from "./types.js"; export interface OctomilFacadeOptions { publishableKey?: string; apiKey?: string; orgId?: string; auth?: AuthConfig; serverUrl?: string; telemetry?: boolean; /** * Explicit planner routing override. * * - `undefined` (default): planner routing is ON when hosted credentials * (publishableKey or apiKey) exist, OFF otherwise. * - `true`: force planner routing ON. * - `false`: force planner routing OFF (direct routing only). * * Privacy invariant: "private" and "local_only" routing policies NEVER * route to cloud regardless of this setting. */ plannerRouting?: boolean; } export declare class OctomilNotInitializedError extends Error { constructor(); } declare class FacadeResponses { private readonly client; constructor(client: ResponsesClient); create(request: { model: string; input: string; } & Record): Promise; stream(request: { model: string; input: string; } & Record): AsyncGenerator; } export declare class FacadeEmbeddings { private readonly serverUrl; private readonly apiKey; constructor(serverUrl: string, apiKey: string); create(options: { model: string; input: string | string[]; signal?: AbortSignal; }): Promise; } export declare class Octomil { private initialized; private readonly responsesClient; private readonly _responses; private readonly _embeddings; private readonly options; /** Whether planner routing is active for this client. */ readonly plannerEnabled: boolean; constructor(options: OctomilFacadeOptions); initialize(): Promise; get responses(): FacadeResponses; get embeddings(): FacadeEmbeddings; } export {}; //# sourceMappingURL=facade.d.ts.map