/** * dsh-realtimeavatar config: the credential reference for the API key, the * write posture, the session cap and timeouts. * * The API key itself is NEVER part of the config — only the NAME of the * credential reference (an environment-variable-style name). The value is * resolved per call from the harness credential store or the launch * environment (see {@link ../credentials}). * * @module dsh-realtimeavatar/config */ /** Public API base (production). Every REST path below is relative to this. */ export declare const API_BASE = "https://realtimeavatar.ai/api"; /** Public site base for docs / llms.txt / openapi.json. */ export declare const SITE_BASE = "https://realtimeavatar.ai"; /** Plugin version as sent in the User-Agent header (kept in sync with package.json by a test). */ export declare const PLUGIN_VERSION = "0.1.1"; export declare const USER_AGENT: string; /** Default credential reference (the public env var name documented by realtimeavatar.ai). */ export declare const DEFAULT_API_KEY_ENV = "REALTIME_AVATAR_API_KEY"; /** Raw plugin config (as authored in cordis.patch.yml). */ export interface RtaConfig { apiKeyEnv?: string; readOnly?: boolean; writeApproval?: boolean; maxSessionSeconds?: number; requestTimeoutMs?: number; docsTimeoutMs?: number; docsMaxChars?: number; } /** Fully resolved, validated config. */ export interface ResolvedRtaConfig { apiKeyEnv: string; readOnly: boolean; writeApproval: boolean; maxSessionSeconds: number; requestTimeoutMs: number; docsTimeoutMs: number; docsMaxChars: number; } /** * Parse and validate config. Writes are enabled by default but approval-gated * (credit-spending tools always ask); `readOnly:true` disables every write tool. */ export declare function resolveConfig(config: RtaConfig | undefined | null): ResolvedRtaConfig;