import { Type } from "typebox"; /** * Crestodian chat lets clients (macOS app onboarding, future UIs) hold the * setup/repair conversation over the gateway. It is configless-safe: the * engine answers deterministically before any model is configured. Omitting * `message` returns the welcome/greeting for a fresh session without input. */ export declare const CrestodianChatParamsSchema: Type.TObject<{ sessionId: Type.TString; message: Type.TOptional; /** "onboarding" seeds the first-run setup proposal in the greeting. */ welcomeVariant: Type.TOptional]>>; /** Drop any in-flight approval/wizard state and start the session over. */ reset: Type.TOptional; }>; /** One Crestodian reply; `action` tells clients about conversation handoffs. */ export declare const CrestodianChatResultSchema: Type.TObject<{ sessionId: Type.TString; reply: Type.TString; /** The next reply is a hosted-wizard secret and clients must mask its input/echo. */ sensitive: Type.TOptional; action: Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"open-agent">, Type.TLiteral<"exit">]>; }>; /** * Structured first-run inference setup for GUI clients: detect reusable AI * access (CLI logins, env keys, existing config), then activate one choice. * Activation live-tests the candidate and persists it only on success, so a * client can walk the ladder candidate-by-candidate without ever leaving a * broken default model behind. */ export declare const CrestodianSetupDetectParamsSchema: Type.TObject<{}>; export declare const CrestodianSetupDetectResultSchema: Type.TObject<{ candidates: Type.TArray, Type.TLiteral<"openai-api-key">, Type.TLiteral<"anthropic-api-key">, Type.TLiteral<"claude-cli">, Type.TLiteral<"codex-cli">, Type.TLiteral<"gemini-cli">]>; label: Type.TString; detail: Type.TString; modelRef: Type.TString; recommended: Type.TBoolean; /** true: verified; false: definitively logged out; absent: unknown. */ credentials: Type.TOptional; }>>; /** Text-inference key/token methods exposed by the Gateway provider registry. */ manualProviders: Type.TArray; }>>; workspace: Type.TString; configuredModel: Type.TOptional; setupComplete: Type.TBoolean; }>; export declare const CrestodianSetupActivateParamsSchema: Type.TObject<{ kind: Type.TUnion<[Type.TLiteral<"existing-model">, Type.TLiteral<"openai-api-key">, Type.TLiteral<"anthropic-api-key">, Type.TLiteral<"claude-cli">, Type.TLiteral<"codex-cli">, Type.TLiteral<"gemini-cli">, Type.TLiteral<"api-key">]>; /** Manual step only: opaque provider-auth choice returned by detection. */ authChoice: Type.TOptional; /** Manual step only: the pasted API key or token; masked by clients, never echoed. */ apiKey: Type.TOptional; workspace: Type.TOptional; }>; export declare const CrestodianSetupActivateResultSchema: Type.TObject<{ ok: Type.TBoolean; /** Present on success: the model ref that answered the live test. */ modelRef: Type.TOptional; latencyMs: Type.TOptional; /** Human-readable setup summary lines (workspace, model, gateway). */ lines: Type.TOptional>; /** Present on failure: coarse bucket for client copy + docs links. */ status: Type.TOptional, Type.TLiteral<"auth">, Type.TLiteral<"rate_limit">, Type.TLiteral<"billing">, Type.TLiteral<"timeout">, Type.TLiteral<"format">, Type.TLiteral<"unavailable">, Type.TLiteral<"unknown">]>>; error: Type.TOptional; }>;