import type { MarchineArgs, NextFunction, NextFunctionAsync } from './Machine.types'; import type { Config, ConfigDef, ConfigTypes, NoExtraKeysConfigDef, Options, TransformConfigDef } from './types'; /** * @class Class representing a machine function * * Implements syntax of {@link XState https://xstate.js.org/docs/guides/states.html#state-nodes} */ declare class Machine = ConfigTypes> { #private; readonly __types: T; /** * @deprecated * Use internally to get the config * */ get __config(): C; /** * @deprecated * Use internally to get the config * v8 ignore next 3 */ get __options(): Options; get errors(): string[]; get hasErrors(): boolean; get safe(): this; get async(): boolean; constructor(config: C, types: T); /** * Use internally to get the props */ get props(): Omit, 'context'>; get clone(): this; /** * Returns the next state * * Warning: This function is not pure, only use a inline context */ readonly next: NextFunction; /** * Returns the next state * * Warning: This function is not pure, only use a inline context */ readonly nextAsync: NextFunctionAsync; provideOptions: (options: Options) => this; } export { type Machine }; export type AnyMachine = { __config: any; __types: { context: any; events: any; data: any; promises?: any; }; async: boolean; }; export type CreateLogic_F = = NoExtraKeysConfigDef, const C extends Config & TransformConfigDef = Config & TransformConfigDef, const T extends ConfigTypes & { context: object; } = ConfigTypes & { context: object; }>(config: C & { __tsSchema?: NoExtraKeysConfigDef; }, types: T) => Machine; export declare const createLogic: CreateLogic_F; //# sourceMappingURL=Machine.d.ts.map