export default function getSegments(path: any): any[];