export default function flattenTree(node: any, options: any, unique?: boolean, list?: any[], depth?: number, index?: number): any;