MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //home/cafsindia/snap.cafsinfotech.in/node_modules/xstate/es/patterns.d.ts
import { AtomicStateNodeConfig, StatesConfig, Event, EventObject, StateSchema } from './types';
export declare function toggle<TEventType extends string = string>(onState: string, offState: string, eventType: TEventType): Record<string, AtomicStateNodeConfig<any, {
    type: TEventType;
}>>;
interface SequencePatternOptions<TEvent extends EventObject> {
    nextEvent: Event<TEvent> | undefined;
    prevEvent: Event<TEvent> | undefined;
}
export declare function sequence<TStateSchema extends StateSchema, TEvent extends EventObject>(items: Array<keyof TStateSchema['states']>, options?: Partial<SequencePatternOptions<TEvent>>): {
    initial: keyof TStateSchema['states'];
    states: StatesConfig<any, TStateSchema, TEvent>;
};
export {};
//# sourceMappingURL=patterns.d.ts.map