import { TestOptions } from "./test"; export declare type ItemIterator = (source: TItem) => string; export interface FilterOptions extends TestOptions { iterator: ItemIterator; } export interface SortOptions extends TestOptions { iterator: ItemIterator; } declare type FilterIterator = (item: TItem) => boolean; declare type SortIterator = (leftItem: TItem, rightItem: TItem) => number; /** * This array helper can be used as an `Array.prototype.filter` callback as it * will return true or false when passing it a source string. */ export declare function filter(query: string, options: FilterOptions): FilterIterator; /** * This array helper can be used as an `Array.prototype.sort` callback as it * will return `-1`/`0`/`1` when passing it two source strings. */ export declare function sort(query: string, options: SortOptions): SortIterator; export {};