import type { FeedbackOutboxRecord, FeedbackOutboxStatus } from './feedback-types.mts'; export declare function outboxDirectory(directory: string, create: boolean): string; export declare function filename(record: FeedbackOutboxRecord): string; export declare function readRecord(path: string): { record: FeedbackOutboxRecord; bytes: number; }; export declare function records(directory: string): Array<{ record: FeedbackOutboxRecord; bytes: number; path: string; }>; export declare function syncDirectory(directory: string): void; export declare function feedbackOutboxStatus(directory: string): FeedbackOutboxStatus; export declare function listFeedbackOutbox(directory: string): FeedbackOutboxRecord[]; /** Reads the retained records without creating the outbox directory. */ export declare function readFeedbackOutbox(directory: string): FeedbackOutboxRecord[]; /** * Retains the record unless the same event is already retained, in which case that record stays: * the event is the session identity (any `version`), `sourceEventId`, and content, and the earlier * `timestamp` wins. The * returned record is the one to deliver. */ export declare function persistFeedbackOutbox(directory: string, record: FeedbackOutboxRecord): FeedbackOutboxRecord; export declare function removeFeedbackOutbox(directory: string, record: FeedbackOutboxRecord): { pendingCount: number; cleanupDiagnostic?: 'outbox-cleanup-failed'; };