import { StashedMessage } from "./actor.js"; import { LibeamError } from "./errors.js"; export declare class ActorNotMigratableError extends LibeamError { constructor(actorId: string); } export declare class ActorHasChildrenError extends LibeamError { constructor(actorId: string, childCount: number); } export declare class MigrationFailedError extends LibeamError { constructor(actorName: string, reason: string); } export declare class NameReservationError extends LibeamError { constructor(actorName: string, reason: string); } export declare class MigrationInProgressError extends LibeamError { constructor(actorName: string, targetNodeId: string); } export declare class StateSerializationTimeoutError extends LibeamError { constructor(actorName: string, timeoutMs: number); } export interface MigratePrepareRequest { type: "migrate:prepare"; actorName: string; actorClassName: string; sourceNodeId: string; } export interface MigratePrepareResponse { ready: boolean; error?: string; reservationId?: string; } export interface MigrateExecuteRequest { type: "migrate:execute"; reservationId: string; actorName: string; actorClassName: string; sourceNodeId: string; state: unknown; initArgs: unknown[]; pendingMessages: StashedMessage[]; } export interface MigrateExecuteResponse { success: boolean; newActorId?: string; error?: string; } export interface MigrateRollbackRequest { type: "migrate:rollback"; reservationId: string; actorName: string; } export interface MigrateRollbackResponse { success: boolean; } export interface MigrationResult { success: boolean; newActorId?: string; newNodeId?: string; error?: string; } //# sourceMappingURL=migration.d.ts.map