import type { ReadinessSignal } from '@ariestools/actor-model/readiness'; /** * The readiness contract is owned by `@ariestools/actor-model` — the canonical * home for actor contracts — and re-exported here so cli-kit consumers keep a * single import site. Type-only: nothing is emitted at runtime. * * Deliberately the `/readiness` subpath, not the package root: the root's * declarations reference `@ariestools/sdk` and `@opentelemetry/api`, and * resolving them would force every cli-kit consumer to install both just to * typecheck. The subpath is import-free. */ export type { ReadinessSignal, ReadyState } from '@ariestools/actor-model/readiness'; /** Result convention used by managed actor lifecycle operations. */ export type ManagedActorLifecycleResult = boolean | void; /** * Structural lifecycle contract coordinated by {@link ActorSupervisor}. * Returning `false` from `start` or `stop` reports a lifecycle failure. * `shutdown` is the optional, status-independent rollback path used when an * actor cannot complete normal lifecycle cleanup. */ export interface ManagedActor extends ReadinessSignal { readonly name: string; shutdown?(): Promise | void; start(): ManagedActorLifecycleResult | Promise; stop(): ManagedActorLifecycleResult | Promise; } //# sourceMappingURL=ManagedActor.d.ts.map