export type LocalSessionConfig = { token?: string; appId?: string | null; conversationId?: string | null; }; export type LocalAccountConfig = { handle: string; apiKey?: string; baseUrl?: string; apiBaseUrl?: string; chatApiBaseUrl?: string; environment?: string; session?: LocalSessionConfig; }; export type ActiveProfileSelector = { handle: string; baseUrl?: string | null; }; export type LocalOpenPondProfileCheckStatus = { command: "inspect" | "build" | "validate" | "eval" | "run"; status: "passed" | "failed"; checkedAt: string; exitCode?: number | null; sourceHead?: string | null; }; export type LocalOpenPondProfileHostedSourceCheckStatus = { status: string; agentId?: string | null; deployPlanStatus?: string | null; canRun?: boolean | null; canDeploy?: boolean | null; sourceRef?: string | null; sourceCommitSha?: string | null; manifestHash?: string | null; manifestPath?: string | null; setupCommands?: string[]; validationCommands?: string[]; requiredChecks?: string[]; evalNames?: string[]; blockedReasons?: string[]; staleReasons?: string[]; runtimeId?: string | null; sandboxId?: string | null; traceArtifactRefs?: string[]; evalResultArtifactRefs?: string[]; validatorArtifactRefs?: string[]; checkedAt?: string | null; error?: string | null; }; export type LocalOpenPondProfileHostedMaterializationStatus = { status: string; agentId?: string | null; runtimeAgentId?: string | null; projectId?: string | null; sourceRoot?: string | null; sourceRef?: string | null; sourceCommitSha?: string | null; manifestHash?: string | null; manifestPath?: string | null; manifestSyncedAt?: string | null; fileCount?: number | null; totalBytes?: number | null; generatedManifestPath?: string | null; synthesizedOpenPondYaml?: boolean | null; uploadMetadataPath?: string | null; setupCommands?: string[]; validationCommands?: string[]; materializedAt?: string | null; error?: string | null; }; export type LocalOpenPondProfileHostedPublishStatus = { status: string; agentId?: string | null; snapshotId?: string | null; sourceRef?: string | null; sourceCommitSha?: string | null; manifestHash?: string | null; manifestPath?: string | null; buildStatus?: string | null; validationStatus?: string | null; evalStatus?: string | null; publishedAt?: string | null; error?: string | null; }; export type LocalOpenPondProfileHostedRunSummary = { status: string; agentId?: string | null; runId?: string | null; runtimeId?: string | null; sandboxId?: string | null; sourceRef?: string | null; sourceCommitSha?: string | null; manifestHash?: string | null; setupGateStatus?: string | null; setupRequirementRefs?: string[]; artifactRefs?: string[]; traceArtifactRefs?: string[]; evalArtifactRefs?: string[]; startedAt?: string | null; completedAt?: string | null; error?: string | null; }; export type LocalOpenPondProfilePushStatus = { status: "pushed" | "failed"; promotionStatus?: "uploaded" | "hosted_source_materialized" | "hosted_source_materialize_failed" | "hosted_source_check_pending" | "hosted_source_check_failed" | "hosted_source_published" | "hosted_source_publish_failed" | "hosted_run_pending" | "hosted_run_passed" | "hosted_run_failed" | null; hostedRunStatus?: "not_started" | "running" | "passed" | "failed" | null; pushedAt: string; teamId?: string | null; projectId?: string | null; localHead?: string | null; hostedHead?: string | null; sourceRef?: string | null; hostedRunAgentId?: string | null; hostedRunId?: string | null; hostedRunAt?: string | null; hostedSourceMaterialization?: LocalOpenPondProfileHostedMaterializationStatus | null; hostedSourceCheck?: LocalOpenPondProfileHostedSourceCheckStatus | null; hostedPublish?: LocalOpenPondProfileHostedPublishStatus | null; hostedRun?: LocalOpenPondProfileHostedRunSummary | null; error?: string | null; }; export type LocalOpenPondProfileConfig = { repoPath: string; profile: string; mode: "local"; lastCheck?: LocalOpenPondProfileCheckStatus; lastPush?: LocalOpenPondProfilePushStatus; profiles?: LocalOpenPondProfileCatalogEntry[]; }; export type LocalOpenPondProfileCatalogEntry = { source: "local" | "github" | "openpond_git"; repositoryId: string; repoPath: string; profile: string; lastCheck?: LocalOpenPondProfileCheckStatus; lastPush?: LocalOpenPondProfilePushStatus; }; export type LocalConfig = { accounts?: LocalAccountConfig[]; activeProfile?: ActiveProfileSelector; openpondProfile?: LocalOpenPondProfileConfig; baseUrl?: string; apiBaseUrl?: string; chatApiBaseUrl?: string; apiKey?: string; token?: string; appId?: string | null; conversationId?: string | null; lspEnabled?: boolean; executionMode?: "local" | "hosted"; mode?: "general" | "builder"; }; export type ConfiguredProfile = { handle: string; baseUrl: string | null; apiBaseUrl: string | null; chatApiBaseUrl: string | null; environment: string | null; isActive: boolean; hasApiKey: boolean; hasSessionToken: boolean; sessionAppId: string | null; sessionConversationId: string | null; }; export type SetActiveProfileOptions = { baseUrl?: string | null; }; export type SaveProfileApiKeyInput = { handle: string; apiKey: string; baseUrl?: string | null; apiBaseUrl?: string | null; chatApiBaseUrl?: string | null; environment?: string | null; setActive?: boolean; }; export type LoadConfigOptions = { account?: string; baseUrl?: string; }; export declare function getConfigPath(): string; export declare function updateGlobalConfig(update: (current: LocalConfig) => void): Promise; export declare function loadGlobalConfig(): Promise; export declare function loadConfig(options?: LoadConfigOptions): Promise; export declare function listConfiguredProfiles(): Promise; export declare function setActiveProfile(handle: string, options?: SetActiveProfileOptions): Promise; export declare function saveProfileApiKey(input: SaveProfileApiKeyInput): Promise; export declare function saveConfig(next: LocalConfig): Promise; export declare function saveGlobalConfig(next: LocalConfig): Promise;