import type { SubAgentSnapshot } from "./subagent-manager.js";
export interface PersistedSubAgentRecord extends SubAgentSnapshot {
    agent_name?: string;
    provider?: string;
    model?: string;
    child_session_id?: string;
    child_session_path?: string;
    collected?: boolean;
}
/** Versioned atomic durable state for one project's child-agent workflows. */
export declare class SubAgentStore {
    private readonly rootDir;
    constructor(rootDir: string);
    pathFor(cwd: string, parentSessionId: string): string;
    load(cwd: string, parentSessionId: string): Promise<PersistedSubAgentRecord[]>;
    save(cwd: string, parentSessionId: string, records: readonly PersistedSubAgentRecord[]): Promise<void>;
    /** Child transcripts referenced by every durable parent across every project. */
    listChildSessionPaths(): Promise<string[]>;
}
//# sourceMappingURL=subagent-store.d.ts.map