operations.d.ts 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import { NamedBaseOperation, EqualsOperation, Options, Operation, Query, NamedGroupOperation } from "./core";
  2. import { Key } from "./utils";
  3. declare class $Ne extends NamedBaseOperation<any> {
  4. private _test;
  5. init(): void;
  6. reset(): void;
  7. next(item: any): void;
  8. }
  9. declare class $ElemMatch extends NamedBaseOperation<Query<any>> {
  10. private _queryOperation;
  11. init(): void;
  12. reset(): void;
  13. next(item: any): void;
  14. }
  15. declare class $Not extends NamedBaseOperation<Query<any>> {
  16. private _queryOperation;
  17. init(): void;
  18. reset(): void;
  19. next(item: any, key: Key, owner: any): void;
  20. }
  21. export declare class $Size extends NamedBaseOperation<any> {
  22. init(): void;
  23. next(item: any): void;
  24. }
  25. declare class $Or extends NamedBaseOperation<any> {
  26. private _ops;
  27. init(): void;
  28. reset(): void;
  29. next(item: any, key: Key, owner: any): void;
  30. }
  31. declare class $Nor extends $Or {
  32. next(item: any, key: Key, owner: any): void;
  33. }
  34. declare class $In extends NamedBaseOperation<any> {
  35. private _testers;
  36. init(): void;
  37. next(item: any, key: Key, owner: any): void;
  38. }
  39. declare class $Nin extends $In {
  40. next(item: any, key: Key, owner: any): void;
  41. }
  42. declare class $Exists extends NamedBaseOperation<boolean> {
  43. next(item: any, key: Key, owner: any): void;
  44. }
  45. declare class $And extends NamedGroupOperation {
  46. constructor(params: Query<any>[], owneryQuery: Query<any>, options: Options, name: string);
  47. next(item: any, key: Key, owner: any): void;
  48. }
  49. export declare const $eq: (params: any, owneryQuery: any, options: Options) => EqualsOperation<any>;
  50. export declare const $ne: (params: any, owneryQuery: any, options: Options, name: string) => $Ne;
  51. export declare const $or: (params: any[], owneryQuery: any, options: Options, name: string) => $Or;
  52. export declare const $nor: (params: any[], owneryQuery: any, options: Options, name: string) => $Nor;
  53. export declare const $elemMatch: (params: any, owneryQuery: any, options: Options, name: string) => $ElemMatch;
  54. export declare const $nin: (params: any, owneryQuery: any, options: Options, name: string) => $Nin;
  55. export declare const $in: (params: any, owneryQuery: any, options: Options, name: string) => $In;
  56. export declare const $lt: (params: any, owneryQuery: any, options: Options, name: string) => Operation<any> | import("./core").NopeOperation<any>;
  57. export declare const $lte: (params: any, owneryQuery: any, options: Options, name: string) => Operation<any> | import("./core").NopeOperation<any>;
  58. export declare const $gt: (params: any, owneryQuery: any, options: Options, name: string) => Operation<any> | import("./core").NopeOperation<any>;
  59. export declare const $gte: (params: any, owneryQuery: any, options: Options, name: string) => Operation<any> | import("./core").NopeOperation<any>;
  60. export declare const $mod: ([mod, equalsValue]: number[], owneryQuery: any, options: Options) => EqualsOperation<(b: any) => boolean>;
  61. export declare const $exists: (params: boolean, owneryQuery: any, options: Options, name: string) => $Exists;
  62. export declare const $regex: (pattern: string, owneryQuery: any, options: Options) => EqualsOperation<RegExp>;
  63. export declare const $not: (params: any, owneryQuery: any, options: Options, name: string) => $Not;
  64. export declare const $type: (clazz: TimerHandler, owneryQuery: any, options: Options) => EqualsOperation<(b: any) => any>;
  65. export declare const $and: (params: any[], ownerQuery: any, options: Options, name: string) => $And;
  66. export declare const $all: (params: any[], ownerQuery: any, options: Options, name: string) => $And;
  67. export declare const $size: (params: number, ownerQuery: any, options: Options) => $Size;
  68. export declare const $options: () => any;
  69. export declare const $where: (params: TimerHandler, ownerQuery: any, options: Options) => EqualsOperation<(b: any) => any>;
  70. export {};