import { InputPolicy, MachineInputSource, PriorityExpression, StateMachine } from './index'; import { ActivationCond } from './interfaces'; /** @ignore */ export declare type MemberOf = { (this: T, ...args: any[]): any; }; /** @ignore */ export declare type InputMapping = { target: any; key: K; propertyKey: string | symbol; policy: InputPolicy; transform?: { (value: T): T; }; }; /** * Unused for now, can be used by @inhibitWhen to lookup * inhibitor actions in the parent class(es) later on. */ /** @ignore */ export declare function getInheritanceTree(entity: ConstructorOf): Function[]; /** @ignore */ export declare type ConditionBuilder = { (T: any, methodName: string | symbol, descriptor: PropertyDescriptor): ActivationCond | void; }; export declare type WhenDecoratorChainResult = { andWhen(cond: ActivationCond | true): WhenDecoratorWithChain; unless(condition: ActivationCond): WhenDecoratorWithChain; inhibitedBy(inhibitor: keyof M): WhenDecoratorWithChain; priority(p: number | PriorityExpression): WhenDecoratorWithChain; }; export declare type WhenDecoratorWithChain = MethodDecorator & WhenDecoratorChainResult; /** @ignore */ export declare function chainWhen(chainedHistory: ConditionBuilder[]): WhenDecoratorWithChain; /** @ignore */ export declare type ConstructorOf = T extends { new (...args: any[]): infer T; } ? T : never; /** @ignore */ export declare function getAllMethods(object: any): Function[]; export declare type StateOf> = M extends StateMachine ? S : never; export declare type InputOf> = M extends StateMachine ? I : never;