import { type SyncMessage, type SyncState } from './types.js'; import { type Action, type Graph } from 'graph/index.js'; /** * Generates a new sync message for a peer based on our current graph and our sync state with them. * * @returns A tuple `[state, message]` containing our updated sync state with this peer, and the * message to send them. If the message returned is `undefined`, we are already synced up, they know * we're synced up, and we don't have any further information to send. */ export declare const generateMessage: (graph: Graph, prevState: SyncState) => [SyncState, SyncMessage | undefined]; //# sourceMappingURL=generateMessage.d.ts.map