import type { FileSystemContext } from "../context/FileSystemContext.js"; import type { Message } from "../types.js"; /** * Keeps the model's view of the user's global and the project's instructions current. * * The first record leads the conversation so the instructions arrive before anything the user * asked for, and stays byte-identical while the file is unchanged so the cached prefix survives. * Later edits are recorded as superseding records ahead of the turn the user is waiting on, so * the request stays the last thing the model reads; nothing already recorded is rewritten. */ export declare function reconcileAgentsMdMessages(options: { fs: FileSystemContext; /** The user's global AGENTS.md, read fresh for this turn. */ globalInstructions?: string; idFactory: () => string; messages: readonly Message[]; }): Promise;