import { rename } from 'node:fs/promises'; import type { ChannelBotConfig, ChannelBotCredentials, ChannelBotWorkspaceEntry } from './types.js'; export declare class ChannelBotCredentialManager { private configDir; private credentialsPath; private legacyPath; private migratedLegacyFile; protected renameFile: typeof rename; constructor(configDir?: string); load(): Promise; private migrateLegacyFileIfNeeded; save(config: ChannelBotConfig): Promise; getCredentials(workspaceId?: string): Promise; setCredentials(entry: ChannelBotWorkspaceEntry): Promise; removeWorkspace(workspaceId: string): Promise; setCurrent(workspaceId: string): Promise; listAll(): Promise>; clearCredentials(): Promise; getDefaultBot(workspaceId?: string): Promise; setDefaultBot(name: string, workspaceId?: string): Promise; } //# sourceMappingURL=credential-manager.d.ts.map