/** * Import specifier query/hash suffix splitting. * * @module transforms/shared/specifier-suffix */ /** A specifier split into its path and its trailing `?query` / `#hash`. */ export interface SplitSpecifier { readonly path: string; readonly suffix: string; } /** * Split an import specifier into the path and everything from the first `?` or * `#` onward, whichever comes first. * * The cut is at whichever delimiter appears first, not at `?` by preference: * `@/a#b?c` is a hash whose fragment happens to contain a `?`, so the suffix is * `#b?c` and the path is `@/a`. Splitting on `?` there would leave `#b` stuck * on the path and no file would resolve. * * This is the single definition of that rule. It previously existed as three * separate copies across the alias, nested-import and HTTP-cache resolvers, * which agreed only by coincidence. */ export declare function splitSpecifierSuffix(specifier: string): SplitSpecifier; //# sourceMappingURL=specifier-suffix.d.ts.map