import type { HandoffRecord, HandoffIndexEntry } from "../utils/types.js"; import type { IHandoffStore } from "./interfaces.js"; export declare class HandoffStore implements IHandoffStore { private readonly handoffsDir; private readonly indexPath; constructor(twiningDir: string); /** * Create a new handoff record. * Writes individual JSON file, then appends to JSONL index. */ create(input: Omit): Promise; /** * Get a single handoff by ID. * Returns null if file doesn't exist. */ get(id: string): Promise; /** * List handoff index entries with optional filtering. * Reads from JSONL index for fast listing. */ list(filters?: { source_agent?: string; target_agent?: string; scope?: string; since?: string; limit?: number; }): Promise; /** * Acknowledge a handoff. * Updates individual file and rewrites index entry atomically under lock. */ acknowledge(id: string, acknowledgedBy: string): Promise; /** * Compute aggregate result_status and create a lightweight index entry. */ private toIndexEntry; /** * Compute aggregate result_status from results array. * - If no results, "completed" * - If all same status, that status * - If mixed, "mixed" */ private computeResultStatus; } //# sourceMappingURL=handoff-store.d.ts.map