import { Dict } from '@mike-north/types'; import * as ts from 'typescript'; /** * Invoke a callback for each key-value pair in a dictionary * @param dict dictionary to iterate over * @param callback mapping function to apply to each key-value pair * @public */ export declare function forEachDict(dict: ts.UnderscoreEscapedMap | Dict, cb: (t: T, key: ts.__String | string) => void): void; /** * Map over a dictionary * @param dict dictionary to iterate over * @param callback mapping function to apply to each key-value pair * @public */ export declare function mapDict(dict: ts.UnderscoreEscapedMap | Dict, callback: (t: T, key: ts.__String | string) => S | undefined): Dict; /** * Filter a dictionary * @param dict dictionary to iterate over * @param callback mapping function to apply to each key-value pair * @public */ export declare function filterDict(dict: ts.UnderscoreEscapedMap | Dict, filterFn: (t: T, key: ts.__String | string) => boolean): Dict; /** * Reduce a dictionary * @param dict dictionary to iterate over * @param callback mapping function to apply to each key-value pair * @public */ export declare function reduceDict(dict: ts.UnderscoreEscapedMap | Dict, callback: (reduced: R, t: T, key: ts.__String | string) => R, initial: R): R; //# sourceMappingURL=dict.d.ts.map