import { ActionArgs, ActionFunction, AnyActorRef, AnyEventObject, Cast, DoNotInfer, EventFrom, EventObject, InferEvent, MachineContext, ParameterizedObject, SendExpr, SendToActionOptions } from "../types.js"; export interface SendToAction { (args: ActionArgs, params: TParams): void; _out_TDelay?: TDelay; } /** * Sends an event to an actor. * * @param actor The `ActorRef` to send the event to. * @param event The event to send, or an expression that evaluates to the event * to send * @param options Send action options * * - `id` - The unique send event identifier (used with `cancel()`). * - `delay` - The number of milliseconds to delay the sending of the event. */ export declare function sendTo(to: TTargetActor | string | ((args: ActionArgs, params: TParams) => TTargetActor | string), eventOrExpr: EventFrom | SendExpr, EventObject>>, TEvent>, options?: SendToActionOptions, TUsedDelay>): ActionFunction; /** * Sends an event to this machine's parent. * * @param event The event to send to the parent machine. * @param options Options to pass into the send event. */ export declare function sendParent(event: TSentEvent | SendExpr, options?: SendToActionOptions): ActionFunction; type Target = string | AnyActorRef | ((args: ActionArgs, params: TParams) => string | AnyActorRef); /** * Forwards (sends) an event to the `target` actor. * * @param target The target actor to forward the event to. * @param options Options to pass into the send action creator. */ export declare function forwardTo(target: Target, options?: SendToActionOptions): ActionFunction; export {};