import { HtmlTagDescriptor } from 'vite';
export type DependencyInjectionMode = "cdn" | "lazyNpm";
export type DependencyInjectionResult = HtmlTagDescriptor | {
cssHref: string;
id?: string;
} | {
optimizableImports: string[];
javascriptCode: string[];
};
/**
* Convert a path like C:/Users/test into /C:/Users/test
*
* Leaves posix paths unchanged
*
* Mirrors what Vite does:
* https://github.com/vitejs/vite/blob/564c8f45f5429bd149b441d7dca4f44347dedfb1/packages/vite/src/node/server/warmup.ts#L66
*/
export declare const absolutePathToUrl: (absolutePath: string) => string;
/**
* The `baseUrl` should be set to `context.viteConfig.base`
* Vite always normalized `base` to end with `/`, and, if in serve mode, to not
* include domain name
*/
export declare const toFsUrl: (baseUrl: string, absolutePath: string) => string;