//#region src/plugins/plugin-cache-sdk.d.ts
type WorkspacePackageAliasEntry = {
  packageName: string;
  packageDir: string;
  subpath: string;
  srcFile: string;
  distFile: string;
};
type PluginRuntimeModuleResolution = {
  modulePath?: string;
  packageRoot: string | null;
  candidates: string[];
  resolvedPath: string | null;
  error?: string;
};
//#endregion
//#region src/plugins/sdk-alias.d.ts
type PluginSdkResolutionPreference = "auto" | "dist" | "src";
type LoaderModuleResolveParams = {
  modulePath?: string;
  argv1?: string;
  cwd?: string;
  moduleUrl?: string;
  devSourceRoot?: string | null;
  pluginSdkResolution?: PluginSdkResolutionPreference;
};
declare function resolveLoaderPackageRoot(params: LoaderModuleResolveParams & {
  modulePath: string;
}): string | null;
declare function listWorkspacePackageExportAliasEntries(params: {
  packageRoot: string;
  packageName: string;
  packageDir: string;
}): WorkspacePackageAliasEntry[];
/** Captures host and private authority now; only complete artifact preparation is deferred. */
declare function preparePluginLoaderAliases(params: LoaderModuleResolveParams & {
  modulePath: string;
}): {
  cacheKey: string;
  getAliasMap: () => {
    [x: string]: string;
  };
  resolveAlias: (specifier: string) => string | undefined;
};
declare function isPluginSdkAliasSpecifier(specifier: string): boolean;
declare function buildPluginLoaderAliasMap(modulePath: string, argv1?: string | undefined, moduleUrl?: string, pluginSdkResolution?: PluginSdkResolutionPreference, devSourceRoot?: string | null): Record<string, string>;
declare function resolvePluginRuntimeModulePathWithDiagnostics(params?: LoaderModuleResolveParams): PluginRuntimeModuleResolution;
declare function buildPluginLoaderJitiOptions(aliasMap: Record<string, string>, params?: LoaderModuleResolveParams): {
  alias?: Record<string, string> | undefined;
  interopDefault: boolean;
  fsCache: string | false;
  tryNative: boolean;
  nativeModules: string[];
  extensions: string[];
};
declare function resolvePluginLoaderTryNative(modulePath: string, options?: {
  preferBuiltDist?: boolean;
}): boolean;
declare function createPluginLoaderModuleCacheKey(params: {
  tryNative: boolean;
  aliasMap: Record<string, string>;
}): string;
//#endregion
export { isPluginSdkAliasSpecifier as a, resolveLoaderPackageRoot as c, PluginRuntimeModuleResolution as d, createPluginLoaderModuleCacheKey as i, resolvePluginLoaderTryNative as l, buildPluginLoaderAliasMap as n, listWorkspacePackageExportAliasEntries as o, buildPluginLoaderJitiOptions as r, preparePluginLoaderAliases as s, PluginSdkResolutionPreference as t, resolvePluginRuntimeModulePathWithDiagnostics as u };