/** * null is not a valid filter prop * Use negative filter "!" combined with wildcard filter "*" to define a filter for the absence of a value * ex: an order list call with { xp: { hasPaid: '!*' } } would return a list of orders where xp.hasPaid is null or undefined * https://ordercloud.io/features/advanced-querying#filtering */ declare type FilterProp = string | string[] | boolean | undefined; declare type Primitive = string | boolean | number; /** * Used on list calls to filter a list of items * https://ordercloud.io/features/advanced-querying#filtering */ export declare type Filters = T extends object ? { -readonly [prop in keyof T]?: Filters; } : T extends Primitive ? FilterProp : any; export {};