import { CID } from './cid'; import { DXN } from './dxn'; import { RegistryRecord } from './registry-client'; /** * Filters to apply to lists of data from DXNS. */ export interface Filter { /** * Filter by record type. Will only return data records. */ type?: CID; /** * Filter by specific string appearing in record's text fields. */ text?: string; } /** * Filtering logic in list methods of the API. */ export declare const Filtering: { /** * Returns true if the item matches the filter specification. False otherwise. * * @param name undergoes filter conditions examination. * @param filter specifies the filter conditions. */ matchResource: (name: DXN, filter?: Filter) => boolean; /** * Returns true if the item matches the filter specification. False otherwise. * * @param filter specifies the filter conditions. * @param record undergoes filter conditions examination. */ matchRecord: (record: RegistryRecord, filter?: Filter) => boolean; }; //# sourceMappingURL=filtering.d.ts.map