logic.d.ts 947 B

123456789101112131415161718192021222324
  1. import { InternalSymbol } from '../helper/symbol';
  2. export declare const AND = "and";
  3. export declare const OR = "or";
  4. export declare const NOT = "not";
  5. export declare const NOR = "nor";
  6. export declare enum LOGIC_COMMANDS_LITERAL {
  7. AND = "and",
  8. OR = "or",
  9. NOT = "not",
  10. NOR = "nor"
  11. }
  12. export declare class LogicCommand {
  13. fieldName: string | InternalSymbol;
  14. operator: LOGIC_COMMANDS_LITERAL | string;
  15. operands: any[];
  16. _internalType: InternalSymbol;
  17. constructor(operator: LOGIC_COMMANDS_LITERAL | string, operands: any, fieldName?: string | InternalSymbol);
  18. _setFieldName(fieldName: string): LogicCommand;
  19. and(...__expressions__: LogicCommand[]): LogicCommand;
  20. or(...__expressions__: LogicCommand[]): LogicCommand;
  21. }
  22. export declare function isLogicCommand(object: any): object is LogicCommand;
  23. export declare function isKnownLogicCommand(object: any): object is LogicCommand;
  24. export default LogicCommand;