import type { MessageDeltaPayload } from "./protocol/events.js"; import type { Message } from "./protocol/messages.js"; /** The result of applying one offset-addressed text delta to a message snapshot. */ export type MessageDeltaApplication = { append: string; kind: "applied"; message: Message; } | { append: ""; kind: "replayed"; message: Message; } | { kind: "reconcile"; }; /** * Applies one message delta without duplicating replayed text. * * A gap, conflicting overlap, missing message, or non-textual target cannot be * repaired locally and returns `reconcile` so the caller can replace the * message from authoritative history or a later full `message.updated` event. */ export declare function applyMessageDelta(message: Message | undefined, delta: MessageDeltaPayload): MessageDeltaApplication; //# sourceMappingURL=applyMessageDelta.d.ts.map