1 | import { ActionArgs, ActionFunction, DoNotInfer, EventObject, ExecutableActionObject, MachineContext, ParameterizedObject, RaiseActionOptions, SendExpr } from "../types.js";
|
2 | export interface RaiseAction<TContext extends MachineContext, TExpressionEvent extends EventObject, TParams extends ParameterizedObject['params'] | undefined, TEvent extends EventObject, TDelay extends string> {
|
3 | (args: ActionArgs<TContext, TExpressionEvent, TEvent>, params: TParams): void;
|
4 | _out_TEvent?: TEvent;
|
5 | _out_TDelay?: TDelay;
|
6 | }
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare function raise<TContext extends MachineContext, TExpressionEvent extends EventObject, TEvent extends EventObject, TParams extends ParameterizedObject['params'] | undefined, TDelay extends string = never, TUsedDelay extends TDelay = never>(eventOrExpr: DoNotInfer<TEvent> | SendExpr<TContext, TExpressionEvent, TParams, DoNotInfer<TEvent>, TEvent>, options?: RaiseActionOptions<TContext, TExpressionEvent, TParams, DoNotInfer<TEvent>, TUsedDelay>): ActionFunction<TContext, TExpressionEvent, TEvent, TParams, never, never, never, TDelay, never>;
|
14 | export interface ExecutableRaiseAction extends ExecutableActionObject {
|
15 | type: 'xstate.raise';
|
16 | params: {
|
17 | event: EventObject;
|
18 | id: string | undefined;
|
19 | delay: number | undefined;
|
20 | };
|
21 | }
|