import type { TSchema } from "typebox"; import type { AuthProfile } from "../auth/auth-profile.js"; import type { Backend, ProviderErrorClassification, ProviderErrorMetadata, SpawnConfig, StructuredSource } from "../backend.js"; /** OpenCode auth adaptation: its terminal login follows host TTY and has no gateway flow. */ export declare const opencodeAuthProfile: AuthProfile; export declare class OpenCodeBackend implements Backend { readonly authProfile: AuthProfile; readonly id: "opencode"; constructor(authProfile?: AuthProfile); readonly embedSchemaInPrompt = true; readonly injectStructuredOutputTool = true; classifyProviderError(error: unknown, metadata?: ProviderErrorMetadata): ProviderErrorClassification | undefined; spawnConfig(): SpawnConfig; sessionMeta(): Record | undefined; promptMeta(schema: TSchema | undefined): Record | undefined; nativeStructured(source: StructuredSource): unknown; } export declare const opencodeBackendDefinition: import("./define.js").BuiltinBackendDefinition<"opencode">; //# sourceMappingURL=opencode.d.ts.map