import type { MinimalBrowserWindow, MinimalWebContentsView } from './electron-types.js'; import type { ViewSubstrate } from './deck-app.js'; /** * `DeckViewHandle.moveTo` failure cleanup. `inner.moveTo` does the atomic * native Compositor migration + Scope adopt/rollback; when it rejects, the * Compositor's own rollback only reverts state it TRACKED (`order`) — a * native `addChildView` that throws MID-APPLY can leave the WCV attached to * the dest window's `contentView` with no tracked record to remove it. This * balances that leak with an explicit dest detach, then undoes the dest * substrate registration made before the move attempt. * * Each step is independently guarded (its own try/catch) so a cleanup * failure in one step never masks the other step or the ORIGINAL move * error — `originalErr` is always rethrown, never shadowed. */ export declare function cleanupDestOnMoveToFailure(destWin: MinimalBrowserWindow, destSub: ViewSubstrate, wcv: MinimalWebContentsView, viewId: string, originalErr: unknown): never; //# sourceMappingURL=deck-app-view-move.d.ts.map