import { interleave } from './Collection'; import { FilterFunction } from './Filters'; type Item = { [key: string]: unknown; }; type MapperFunction = (value: T | string | unknown) => T; type Mapper = { [K in keyof T]: MapperFunction; }; type Params = Parameters; type Table = { (...args: Params): Array; }; type TableOf = { (...args: Params): Array; }; /** * Create a new template literal function parsing tables with a custom set of filters * * @export * @param {...Array} filters * @returns {(...args: Params) => Array} */ export declare function create(...filters: Array): (...args: Params) => Array; /** * Table template literal parser, exludes any divider ro, preserves rows * consisting of only undefined values * * * @template T * @param {TemplateStringsArray} strings * @param {...Array} values * @returns {Array} */ export declare const empty: Table; /** * Table template literal parser, exludes both any divider row and * rows that contain only undefined values * * @template T * @param {TemplateStringsArray} strings * @param {...Array} values * @returns {Array} */ export declare const table: Table & { empty: Table; }; /** * Create a new table template literaral parser, mapping specified keys * * @export * @template T * @param {Mapper} mapper * @return {Table} */ export declare function mapper(mapper: Partial>): TableOf; export {};