/** * Stored credentials for a Skills API instance. * * `apiKey` is the only credential. The identity fields are display metadata * echoed back from the instance's `whoami`, so they are optional: an instance * that does not return them leaves them unset. They are never invented locally * — a placeholder written here is indistinguishable from a value the server * actually returned once it is read back out of `auth.json`. */ export interface AuthConfig { apiKey: string; email?: string; orgId?: string; orgSlug?: string; userId?: string; } export declare function getAuthConfig(): AuthConfig | null; export declare function saveAuthConfig(config: AuthConfig): void; export declare function clearAuthConfig(): void; export declare function getApiKey(): string | null; export declare function normalizeSkillsApiOrigin(apiUrl: string): string; /** * Origin every credential-bearing request is sent to. * * Throws `MissingApiUrlError` when the install has not been pointed at an * instance. There is no fallback endpoint: an unconfigured CLI must not decide * on the user's behalf where their email address, login code, or API key goes. */ export declare function getApiUrl(action?: string): string;