/** * Make `spec`'s paths relative to its API base path, reduce its server URLs * to their origins, and return the base path. A spec without servers, such * as a test fixture, is left unchanged and has no base path. * @param {{servers?: {url: string}[], paths: Record}} spec * @returns {string} The base path, such as `/api/0`, or `""` */ export function splitApiBasePath(spec: { servers?: { url: string; }[]; paths: Record; }): string;