export declare function compact(list: T[]): T[]; export declare function flatten(list: any): T[];