export declare function addAll(into: Set, from: Iterable): void; export declare function extract(from: Map, key: A): B | undefined; export declare function flatMap(xs: Iterable, fn: (x: A) => Iterable): IterableIterator; export declare function enumerate(xs: Iterable): IterableIterator<[number, A]>; export declare function expectProp(obj: A, key: B): NonNullable; export declare function flatten(xs: Iterable): IterableIterator; export declare function filterEmpty(xs: Array): string[]; export declare function mapValues(xs: Record, fn: (x: A) => B): Record; export declare function mkdict(xs: Array): Record; export declare function noEmptyObject(xs: Record): Record | undefined; export declare function noUndefined(xs: Record): Record>; export declare function maybeSuffix(x: string | undefined, suffix: string): string | undefined; /** * Partition a collection by dividing it into two collections, one that matches the predicate and one that don't */ export declare function partition(xs: T[], pred: (x: T) => boolean): [T[], T[]]; export declare function isDefined(x: A): x is NonNullable;