import { AdkError } from '@botpress/analytics';
import type { Agent0Config } from '../types.js';
import { type Agent0PathOptions } from './paths.js';
export type Agent0ConfigErrorCode = 'AGENT0_CONFIG_READ_FAILED' | 'AGENT0_CONFIG_INVALID';
/**
 * The Agent(0) config file is user-owned (hand-editable, on-disk), so both
 * read and parse failures are expected user/environment conditions.
 */
export declare class Agent0ConfigError extends AdkError<Agent0ConfigErrorCode> {
    constructor(message: string, cause?: unknown, code?: Agent0ConfigErrorCode);
}
export interface Agent0ConfigStoreOptions extends Agent0PathOptions {
    configPath?: string;
    now?: () => Date;
}
export declare class Agent0ConfigStore {
    readonly configPath: string;
    private readonly now;
    private writeLock;
    constructor(options?: Agent0ConfigStoreOptions);
    read(): Promise<Agent0Config>;
    write(config: Agent0Config): Promise<void>;
    reset(): Promise<Agent0Config>;
    update(updater: (config: Agent0Config) => Agent0Config | void): Promise<Agent0Config>;
}
//# sourceMappingURL=store.d.ts.map