import { type ResolvedConfig } from "../config/resolution.js"; import type { OnboardingState } from "../types.js"; type LoggerLike = { info?: (msg: string, meta?: Record) => void; warn?: (msg: string, meta?: Record) => void; debug?: (msg: string, meta?: Record) => void; }; type RuntimeConfigState = Pick; export declare function applyRuntimeApiKey(input: { config: RuntimeConfigState; apiKey: string; source: "manual" | "browser_pairing"; workspaceName?: string | null; keyPrefix?: string | null; userId?: string | null; currentWorkspaceName: string | null; updateOnboardingState: (updates: Partial) => unknown; setCredentials: (credentials: { apiKey: string; userId: string; baseUrl: string; }) => void; logger?: LoggerLike; }): void; export declare function isAuthRequiredError(result: { status: number; error: string; }): boolean; export declare function buildManualKeyConnectUrl(baseApiUrl: string): string; export declare function fetchOrgxJson(input: { baseApiUrl: string; method: "GET" | "POST"; path: string; body?: unknown; options?: { timeoutMs?: number; }; toErrorMessage: (err: unknown) => string; }): Promise<{ ok: true; data: T; } | { ok: false; status: number; error: string; }>; export {};