export default function flattenArray<T = unknown>(list: unknown[], result?: T[]): T[];
