/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { OptimiseSessions } from "./use-optimise.js"; /** * Has the page read each record again, from here on: what its sessions take * newer saves in from. Every record in one poll (`RecordRuntime.readAgain`): * the page's polls each read all of them, so one mark and one refresh serve * every record, never a poll queued behind another's. * * @param records - The records, by name * @returns Settles once the page has read every one again */ export declare function readRecordsAgain(records: readonly string[]): Promise; /** * What a call refused for a conflict comes to: sent again, or failed — * `refused` the words where a conflict waits to be chosen. */ export type ConflictNext = { readonly again: true; } | { readonly failed: string; readonly refused?: string; }; /** * What a call refused because a record moved under its drafts comes to, once * the page has read the records again and the sessions stand on what it read. * * @param sessions - The builder's sessions * @param records - The records the call passed drafts of, by name * @param resent - How many times in a row the call has gone again for a conflict * @param message - The source's refusal, in its own words * @returns `again` where nothing is to choose and it may go again; else why it failed */ export declare function afterConflict(sessions: Pick, records: readonly string[], resent: number, message: string): ConflictNext; //# sourceMappingURL=conflict.d.ts.map