/** * The result of parsing a paths array. */ export type ParsedPathAndMethod = { /** * Array of path segments that make up the path. * * @example ['api', 'hello', 'index', 'get'] -> ['api', 'hello', 'index'] */ paths: string[]; /** * The (absolute) path represented as a single string. * * @example ['api', 'hello', 'index', 'get'] ->'/api/hello/index' */ path: string; /** * The method from the original paths array, if found. * * @example ['api', 'hello', 'index', 'get'] -> 'get' */ method?: string; }; /** * Given an array of path segments, where the last segment is possibly a method, * parse it into proper labels. * * @example * * const originalPaths = ['api', 'hello', 'index', 'get'] * * const path = '/api/hello/index' * * const method = 'get' */ export declare function parsePathsAndMethod(paths: string[] | readonly string[]): ParsedPathAndMethod; //# sourceMappingURL=path.d.ts.map