import * as cliConfig from '@vercel/cli-config'; import type { AuthConfig as SharedAuthConfig, CredStorage, CredentialsStorageLocation, GlobalConfig as SharedGlobalConfig } from '@vercel/cli-config'; type KeyringEntry = { getPassword(): string | null; setPassword(password: string): void; deleteCredential(): boolean; }; type KeyringEntryConstructor = new (service: string, account: string) => KeyringEntry; type LoadKeyringModule = () => { Entry: KeyringEntryConstructor; }; export type GlobalConfig = Pick; export type Credentials = Omit; type PersistableAuthConfig = SharedAuthConfig; export declare function resolveCredStorage(value: unknown): CredStorage; export declare function readGlobalConfig(dir: string): GlobalConfig; export declare function getCredStorage(dir: string, config?: GlobalConfig): CredStorage; export declare function setLoadKeyringModuleForTesting(nextLoadKeyringModule?: LoadKeyringModule): void; export declare function CredentialsStore(dir: string, config?: GlobalConfig): { configPath: string; get(): Credentials; update(config: Partial): CredentialsStorageLocation | void; delete(): void; }; export declare function readCredentials(dir: string, config?: GlobalConfig): Credentials; export declare function readCliAuthConfig(dir: string, config?: GlobalConfig): Credentials; export declare function writeCredentials(dir: string, credentials: Partial, config?: GlobalConfig): void | cliConfig.CredentialsStorageLocation; export declare function persistCliAuthConfig(dir: string, authConfig: PersistableAuthConfig, config?: GlobalConfig): void | cliConfig.CredentialsStorageLocation; export declare function clearCredentials(dir: string, config?: GlobalConfig): void; export declare function clearAllCredentials(dir: string): void; export declare function clearAllCredentialsStrict(dir: string): void; export {};