1 | import { Predicate, type PredicateOptions } from './predicate.js';
|
2 | export declare class WeakMapPredicate<KeyType extends object = object> extends Predicate<WeakMap<KeyType, unknown>> {
|
3 | |
4 |
|
5 |
|
6 | constructor(options?: PredicateOptions);
|
7 | /**
|
8 | Test a WeakMap to include all the provided keys. The keys are tested by identity, not structure.
|
9 |
|
10 | @param keys - The keys that should be a key in the WeakMap.
|
11 | */
|
12 | hasKeys(...keys: readonly KeyType[]): this;
|
13 | /**
|
14 | Test a WeakMap to include any of the provided keys. The keys are tested by identity, not structure.
|
15 |
|
16 | @param keys - The keys that could be a key in the WeakMap.
|
17 | */
|
18 | hasAnyKeys(...keys: readonly KeyType[]): this;
|
19 | }
|