import type { BotRegistryEntry, BotsRegistry, GlobalCredentialsStore, JSONObject } from './interfaces'; export declare class CredentialsHandler { homeDir: string; pathToCredentials: string; constructor(args: { homeDir: string; filename: string; }); initialize(): void; createDirIfNotExists(): void; loadJSON(): JSONObject | undefined; dumpJSON(obj: JSONObject | JSONObject[]): void; } export declare class GlobalCredentialsHandler extends CredentialsHandler { /** * @param baseDir - Optional directory for credentials (e.g. monorepo_root/.botonic). * When provided, credentials are stored at baseDir/env-credentials.json. * When omitted, uses ~/.botonic (user home). */ constructor(baseDir?: string); initialize(): void; load(): GlobalCredentialsStore | undefined; dump(obj: GlobalCredentialsStore): void; } export declare class BotsRegistryHandler extends CredentialsHandler { constructor(); load(): BotsRegistry; dump(registry: BotsRegistry): void; upsert(env: string, entry: BotRegistryEntry): void; findLatestForEnv(env: string): BotRegistryEntry | undefined; }