import { ActorRef } from "./actor.js"; import { ActorSystem } from "./actor_system.js"; export type SupervisionStrategy = "Restart" | "Stop"; export interface SupervisionOptions { strategy: SupervisionStrategy; maxRestarts: number; periodMs: number; } /** * A basic supervisor that handles actor crashes. * For now, it's a simple one-for-one strategy. */ export declare class Supervisor { private readonly system; private readonly options; private readonly restartCounts; private readonly log; constructor(system: ActorSystem, options: SupervisionOptions); handleCrash(actorRef: ActorRef, error: any): void; } //# sourceMappingURL=supervisor.d.ts.map