import type { Effort } from "@oh-my-pi/pi-catalog/effort"; import { type FactoryDroidWire } from "@oh-my-pi/pi-catalog/wire/factory-droid"; import type { OAuthRequestIdentity } from "../auth/types.js"; import type { Api, Model, ServiceTier, StreamFunction, StreamOptions, ToolChoice } from "../types.js"; export interface FactoryDroidOptions extends StreamOptions { /** Per-call workers only: send no refusal fallbacks or fallback-credit beta, and fail a response served by another model. */ disableServerSideFallback?: boolean; reasoning?: Effort; disableReasoning?: boolean; toolChoice?: ToolChoice; serviceTier?: ServiceTier; /** OMP-native "omit thinking summaries" (anthropic adaptive display). */ hideThinkingSummary?: boolean; /** OMP-native response verbosity (responses wire `text.verbosity`). */ textVerbosity?: "low" | "medium" | "high"; } /** Wires that carry Factory's `generate_image` models. */ export type FactoryDroidImageWire = Extract; /** Endpoint, identity headers and system identity for one Factory image request. */ export interface FactoryDroidImageRoute { /** `openai-responses` rides the Images API beside Responses; `google-generate` the native Gemini route. */ wire: FactoryDroidImageWire; baseUrl: string; headers: Record; /** Droid identity the proxy requires: the Images `instructions` field or the Gemini system instruction. */ identity: string; } /** * Bind an image request to the same client identity chat sends: the CLI's * Images and Gemini image calls reuse its chat request headers for the * model's upstream, and the proxy runs the same Droid identity check. */ export declare function factoryDroidImageRoute(model: Model<"factory-droid-agent">, token: string, sessionId: string | undefined, /** Account identity of the credential serving this attempt; host, org and upstream follow it. */ identity: OAuthRequestIdentity | undefined): FactoryDroidImageRoute; /** Whether a catalog model runs on the Factory Droid transport. */ export declare function isFactoryDroidModel(model: Model): model is Model<"factory-droid-agent">; export declare const streamFactoryDroid: StreamFunction<"factory-droid-agent">;