export interface TgConfig {
    apiId?: number;
    apiHash?: string;
    sessionString?: string;
    defaultFormat?: 'plain' | 'json' | 'markdown';
    opVault?: string;
}
export declare function loadConfig(warn?: (message: string) => void): TgConfig;
export declare function saveConfig(config: Partial<TgConfig>): void;
export declare function getConfigPath(): string;
export declare function isConfigured(): boolean;
export declare function setCredentials(apiId: number, apiHash: string): void;
export declare function getCredentials(): {
    apiId: number;
    apiHash: string;
};
export declare function setSessionString(session: string): void;
export declare function getSessionString(): string | undefined;
export declare function clearSessionString(): void;
//# sourceMappingURL=config.d.ts.map