export type ExactFilter = { property?: string; eq: string; reject?: true; }; export type InFilter = { property?: string; in: string[]; reject?: true; }; export type GlobFilter = { property?: string; glob: string; reject?: true; }; export type RegexFilter = { property?: string; regex: string | RegExp; reject?: true; }; export type PropertyFilter = ExactFilter | InFilter | GlobFilter | RegexFilter; /** * A too-clever for its own good filtering function. */ export declare function filterByProperty(input: object, filter: PropertyFilter): boolean; /** * Returns a propertyFilter function; this can be used with Array.filter() * to quickly find objects that match a filter function. */ export declare function byProperty(filter: PropertyFilter): (input: object) => boolean; //# sourceMappingURL=filter-by-property.d.ts.map