type Mapper = (x: T, i: number) => T; export declare const flat: (arr: T, mapper?: Mapper | undefined, depth?: number) => T; export {};