import { type ChangesetState } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/channels-changeset/state"; import type { ChangesetAction } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/action-origin.generated"; /** * Pure reducer for changeset state. Handles all {@link ChangesetAction} * variants. * * Per the spec, every changeset action is server-only; the reducer * preserves a stable file order by appending new files via * {@link ActionType.ChangesetFileSet} when the id is unknown, and * replacing in place when it matches an existing entry. */ export declare function changesetReducer(state: ChangesetState, action: ChangesetAction, log?: (msg: string) => void): ChangesetState;