import { StateAdapter } from '../state-adapter';
export type FileAdapterConfig = {
    adapter: 'default';
    filePath: string;
};
export declare class FileStateAdapter implements StateAdapter {
    private filePath;
    constructor(config: FileAdapterConfig);
    init(): Promise<void>;
    get<T>(traceId: string, key: string): Promise<T | null>;
    set<T>(traceId: string, key: string, value: T): Promise<T>;
    delete<T>(traceId: string, key: string): Promise<T | null>;
    clear(traceId: string): Promise<void>;
    keys(traceId: string): Promise<string[]>;
    traceIds(): Promise<string[]>;
    cleanup(): Promise<void>;
    private _makeKey;
    private _readFile;
    private _writeFile;
}
