import { type ExtensionHandlerBudget } from "./handler-budget.ts";
import type { SessionMoveExportEvent, SessionMoveImportEvent } from "./types.ts";
/** A move event as the host emits it; each handler receives it with the budget's own `signal`. */
export type SessionMoveEmission = Omit<SessionMoveExportEvent, "signal"> | Omit<SessionMoveImportEvent, "signal">;
/** A `session_move_export` / `session_move_import` handler that threw or was still running at the handler budget. */
export interface SessionMoveFailure {
    readonly extensionPath: string;
    readonly error: string;
    readonly stack?: string;
}
export interface SessionMoveHandlerCall {
    readonly extensionPath: string;
    readonly call: (signal: AbortSignal) => unknown;
}
/**
 * Runs every move handler, in order, each under `budget` (the `session_shutdown` handler budget, warned at `warnMs`
 * and aborted through its signal at `timeoutMs`), and returns every failure. Unlike the ordinary emit, a failure is
 * the caller's decision: a move's state would otherwise be lost. A handler past the cap keeps running detached.
 */
export declare function runSessionMoveHandlers(event: string, calls: readonly SessionMoveHandlerCall[], budget: ExtensionHandlerBudget): Promise<readonly SessionMoveFailure[]>;
//# sourceMappingURL=session-move-emit.d.ts.map