import type { DataRecordCommentMutation, DataRecordCommentReceipt } from 'openxiangda-contracts/browser'; export type RecordCommentState = { busy: boolean; pending?: DataRecordCommentMutation; unknown?: boolean; retryAllowed?: boolean; error?: unknown; receipt?: DataRecordCommentReceipt; }; /** Owns only one UI submission. The persisted comment is the sole commit/receipt owner. */ export declare function createRecordCommentSession(submit: (input: DataRecordCommentMutation) => Promise, recover: (key: string) => Promise, changed: (state: RecordCommentState) => void, newKey?: () => string): { send(body: string): Promise; recover(): Promise; retry(): Promise; close(): void; }; //# sourceMappingURL=record-comment-session.d.ts.map