UNPKG

actor-kit

Version:

Actor Kit is a library for running state machines in Cloudflare Workers, leveraging XState for robust state management. It provides a framework for managing the logic, lifecycle, persistence, synchronization, and access control of actors in a distributed

17 lines (16 loc) 764 B
import { t as ActorKitClient, u as AnyActorKitStateMachine, v as CallerSnapshotFrom } from "./types-C31KX9CW.mjs"; //#region src/createActorKitClient.d.ts type ActorKitClientProps<TMachine extends AnyActorKitStateMachine> = { host: string; actorType: string; actorId: string; checksum: string; accessToken: string; initialSnapshot: CallerSnapshotFrom<TMachine>; onStateChange?: (newState: CallerSnapshotFrom<TMachine>) => void; onError?: (error: Error) => void; }; declare function createActorKitClient<TMachine extends AnyActorKitStateMachine>(props: ActorKitClientProps<TMachine>): ActorKitClient<TMachine>; //#endregion export { createActorKitClient as n, ActorKitClientProps as t }; //# sourceMappingURL=createActorKitClient-d0mY6Uo3.d.mts.map