import type { AuthoringApiClient, RemoteItem } from "../api/client.js"; import type { SitesApiClient } from "../api/sites-client.js"; import type { PlannedAction } from "./plan.js"; import type { ExecutionEvent } from "./execute-types.js"; export interface DispatchMutationOptions { client: AuthoringApiClient; sitesClient: SitesApiClient | undefined; action: PlannedAction; capturedItemIds: Map; pathItemIdCache: Map | undefined; pathSnapshotCache: Map | undefined; idSnapshotCache: Map | undefined; /** Records CreateItem refKeys whose apply adopted an existing item — * see `ExecutionResult.adoptedItemRefKeys`. */ adoptedItemRefKeys: Set | undefined; allowPrune: boolean; emit?: (event: ExecutionEvent) => void; } export declare const dispatchMutation: ({ client, sitesClient, action, capturedItemIds, pathItemIdCache, pathSnapshotCache, idSnapshotCache, adoptedItemRefKeys, allowPrune, emit, }: DispatchMutationOptions) => Promise;