import Context from './Context'; export declare type JsonRule = { name: string; title: string; conditional: boolean; operations: string[]; types: string[]; executable: boolean; }; export default class Rule { private readonly name; private readonly title; private readonly handler; private readonly operations; private readonly types; private readonly condition?; constructor(name: any, title: any, operations: string[], types: string[], handler: Function, condition?: ((ctx: Context, execCtx: Context) => boolean) | undefined); toJson(): JsonRule; getName(): string; getTitle(): string; getHandler(): Function; getOperations(): { [k: string]: boolean; }; getTypes(): { [k: string]: boolean; }; getCondition(): ((ctx: Context, execCtx: Context) => boolean) | undefined; hasCondition(): boolean; hasHandler(): boolean; isValid(ctx: Context, execCtx: Context): boolean; execute(ctx: Context, execCtx: Context): Promise; } //# sourceMappingURL=Rule.d.ts.map