export default function flatFields(fields: any[], fieldName?: string, removeParent?: boolean, needFlat?: (children: any) => boolean): any[];