import { ActorContext, ActorRef, Behavior, EventObject } from './types'; /** * Returns an actor behavior from a reducer and its initial state. * * @param transition The pure reducer that returns the next state given the current state and event. * @param initialState The initial state of the reducer. * @returns An actor behavior */ export declare function fromReducer(transition: (state: TState, event: TEvent, actorContext: ActorContext) => TState, initialState: TState): Behavior; declare type PromiseEvents = { type: 'fulfill'; data: T; } | { type: 'reject'; error: unknown; }; declare type PromiseState = { status: 'pending'; data: undefined; error: undefined; } | { status: 'fulfilled'; data: T; error: undefined; } | { status: 'rejected'; data: undefined; error: any; }; export declare function fromPromise(promiseFn: () => Promise): Behavior, PromiseState>; interface SpawnBehaviorOptions { id?: string; parent?: ActorRef; } export declare function spawnBehavior(behavior: Behavior, options?: SpawnBehaviorOptions): ActorRef; export {}; //# sourceMappingURL=behaviors.d.ts.map