import type { FilesystemDB } from '../../filesystem-db.js';
import type { StorageAgentType, StorageCreateAgentInput, StorageUpdateAgentInput, StorageListAgentsInput, StorageListAgentsOutput } from '../../types.js';
import type { AgentVersion, CreateVersionInput, ListVersionsInput, ListVersionsOutput } from './base.js';
import { AgentsStorage } from './base.js';
export declare class FilesystemAgentsStorage extends AgentsStorage {
    private helpers;
    constructor({ db }: {
        db: FilesystemDB;
    });
    init(): Promise<void>;
    dangerouslyClearAll(): Promise<void>;
    getById(id: string): Promise<StorageAgentType | null>;
    create(input: {
        agent: StorageCreateAgentInput;
    }): Promise<StorageAgentType>;
    update(input: StorageUpdateAgentInput): Promise<StorageAgentType>;
    delete(id: string): Promise<void>;
    list(args?: StorageListAgentsInput): Promise<StorageListAgentsOutput>;
    createVersion(input: CreateVersionInput): Promise<AgentVersion>;
    getVersion(id: string): Promise<AgentVersion | null>;
    getVersionByNumber(agentId: string, versionNumber: number): Promise<AgentVersion | null>;
    getLatestVersion(agentId: string): Promise<AgentVersion | null>;
    listVersions(input: ListVersionsInput): Promise<ListVersionsOutput>;
    deleteVersion(id: string): Promise<void>;
    deleteVersionsByParentId(entityId: string): Promise<void>;
    countVersions(agentId: string): Promise<number>;
}
//# sourceMappingURL=filesystem.d.ts.map