export default function traverse(o: any, func: Function, ancestor?: any): any;