/** * Convert a spec file's relative path to its base route slug, applying the same * l10n transform the route builder uses (`@l10n/de/foo.yaml` -> `/de/foo`). * * Index files map to their directory URL (`foo/index.yaml` -> `/foo`). The * index decision reuses `parseBaseName` — the exact primitive the core route * slugifier uses (`isIndexFile` in server/plugins/lifecycle.ts) — so it can't * drift from the core / openapi-docs. Without it, an API mounted at * `output: foo/index.yaml` would land at `/foo/index` and break links/sidebar * entries that reference it by its `index.yaml` output path. * * NOTE: this transform does NOT apply the content-slugs normalizations * (versioned `@x.y` folders, custom slugs) — route building derives slugs * through `createSlugify` instead. It is used by the loader-time mock-server * URL (`options.ts`) and by `rebaseAutoMockServerUrl` (`index.ts`), which * reconstructs the same value to detect the auto-generated URL and rebase it * onto the normalized route slug. */ export declare function relativePathToBaseSlug(relativePath: string): string; //# sourceMappingURL=relative-path-to-base-slug.d.ts.map