export declare function flatten(list: A[][]): A[]; export declare const chain: (fn: (value: A, index: number) => B[], list: A[]) => B[];