export type CliCredentials = { apiUrl: string; token: string; expiresAt: string; username: string; refreshToken?: string; }; export declare function resolveConfigDir(env?: NodeJS.ProcessEnv, home?: string): string; export declare const CONFIG_DIR: string; type HelixEnvName = 'staging' | 'production'; export declare function resolveEnvironment(scope: string, override?: { apiUrl?: string; webUrl?: string; }): { scope: string; env: HelixEnvName; apiUrl: string; webUrl: string; }; /** The website that belongs to an API origin, when it is one of ours (visual QA renders on the site that serves the * API the item lives on, not on this build's default site). */ export declare function webUrlForApi(apiUrl: string): string | null; export declare const HELIX_SCOPE: string; export declare const HELIX_ENV: HelixEnvName; export declare const DEFAULT_API_URL: string; export declare const DEFAULT_WEB_URL: string; export declare function apiUrlMatchesEnv(credsApiUrl: string, defaultApiUrl: string): boolean; export declare function credsEnvMismatchWarning(credsApiUrl: string, env?: { defaultApiUrl: string; envName: string; scope: string; }): string | null; export declare function saveCredentials(creds: CliCredentials): void; export declare function loadCredentials(): CliCredentials | null; export declare function readStoredCredentials(): CliCredentials | null; export declare function clearCredentials(): void; export declare function jwtExpiresAtIso(token: string): string; export declare function jwtSubject(token: string): string | null; export {};