import type { GlobalOptions } from "../args/parser"; export type ResolvedConfig = { profile: string; apiUrl: string; apiUrlSource: "flag" | "env" | "profile" | "default"; token?: string; tokenSource?: "flag" | "env" | "profile"; projectId?: string; projectIdSource?: "flag" | "env" | "profile"; profileProjectId?: string; timeoutMs: number; noColor: boolean; }; export type LoadConfigOptions = { configRoot?: string; env?: Record; flags?: Pick; }; export declare function loadConfig(options?: LoadConfigOptions): Promise; export declare function logoutProfile(options: { configRoot?: string; env?: Record; profile: string; }): Promise<{ ok: boolean; profile: string; removed: boolean; }>; export declare function hasProfileCredential(options: { configRoot?: string; env?: Record; profile: string; }): Promise; export declare function saveProfileConfig(options: { configRoot?: string; env?: Record; profile: string; apiUrl?: string; projectId?: string; }): Promise<{ ok: boolean; profile: string; }>; export declare function saveProfileLogin(options: { configRoot?: string; env?: Record; profile: string; token: string; apiUrl?: string; projectId?: string; }): Promise<{ ok: boolean; profile: string; }>; export declare function loginProfile(options: { configRoot?: string; env?: Record; profile: string; token: string; }): Promise<{ ok: boolean; profile: string; }>; export declare function parseDurationMs(value: string): number;