import { BundlerDiscoverBundleRule, BundlerResolvedDiscovery, BundlerVirtualEntryLoader } from "../../types.d.ts"; declare const DEFAULT_DISCOVERY_BUNDLE_MAX_SIZE: number; declare const DEFAULT_IGNORE_DIRS: string[]; declare const DEFAULT_AGGREGATE_MATCHED_EXPORT_NAME = "default"; declare const DEFAULT_AGGREGATE_ROOT_EXPORT_NAME = "default"; declare const DEFAULT_AGGREGATE_MAP_EXPORT = "modules"; declare const DEFAULT_AGGREGATE_RESOLVER_EXPORT = "getModule"; declare const DEFAULT_AGGREGATE_ROOT_BINDING_EXPORT = "rootModule"; declare const DEFAULT_AGGREGATE_KEY_FROM_PATH = "relative-path"; declare const DEFAULT_AGGREGATE_EXPORT_DEFAULT = true; declare const VIRTUAL_ENTRY_PREFIX = "package-virtual:"; declare const MODULE_RESOLVE_EXTENSIONS: string[]; type NormalizedAggregateModuleMap = { allowEmpty: boolean; collapseIndex: boolean; exports: { default: boolean; map: string; resolver: string; root?: string; }; kind: "module-map"; keyFromPath: "relative-path"; matchedModuleExportName: string; requireMatchedModuleExport: boolean; rootModule?: string; rootModuleExportName: string; }; type NormalizedEntryRule = { exclude: string[]; include: string[]; key: string; strategy: "entry"; }; type NormalizedBundleRule = { exclude: string[]; include: string[]; key: string; maxBundleSize: number; strategy: "bundle"; }; type NormalizedIgnoreRule = { exclude: string[]; include: string[]; key: string; strategy: "ignore"; }; type NormalizedAggregateRule = { aggregate: NormalizedAggregateModuleMap; exclude: string[]; include: string[]; key: string; strategy: "aggregate"; }; type NormalizedDiscoverRule = NormalizedEntryRule | NormalizedBundleRule | NormalizedIgnoreRule | NormalizedAggregateRule; type NormalizedDiscoverOptions = { dir: string; dirAbs: string; ignoreDirs: Set; rules: NormalizedDiscoverRule[]; }; type DiscoveredFile = { absPath: string; discoverRel: string; rootRel: string; }; type ResolvedDiscovery = BundlerResolvedDiscovery & { signature: string; }; type NormalizedManifestOptions = { enabled: boolean; file?: string; }; type ResolvedAggregateRootModule = { absPath: string; rootRel: string; }; declare function toPosixPath(value: string): string; declare function normalizePathValue(value: string): string; declare function globToRegExp(pattern: string): RegExp; declare function matchesAnyPattern(value: string, patterns: string[]): boolean; declare function parseBundleMaxSize(value: BundlerDiscoverBundleRule["maxBundleSize"]): number; declare function normalizeStringList(values: readonly string[] | undefined): string[]; declare function isValidIdentifier(value: string): boolean; declare function escapeRegExp(value: string): string; declare function createStableId(value: string): string; declare function toRootImportSpecifier(rootDir: string, absPath: string): string; declare function buildEntryKey(args: { rootRel: string; ruleKey: string; }): string; declare function buildBundleEntryKey(ruleKey: string, part: number): string; declare function buildAggregateEntryKey(ruleKey: string): string; declare function resolveBundleLoader(filePath: string): BundlerVirtualEntryLoader | undefined; declare function resolveAggregateModuleLoader(filePath: string): BundlerVirtualEntryLoader | undefined; declare function resolveModuleCandidate(basePath: string): string | undefined; declare function toPosixDirname(value: string): string; declare function commonPathPrefix(values: string[]): string; declare function staticPatternBase(pattern: string): string; export { buildAggregateEntryKey, buildBundleEntryKey, buildEntryKey, commonPathPrefix, createStableId, DEFAULT_AGGREGATE_EXPORT_DEFAULT, DEFAULT_AGGREGATE_KEY_FROM_PATH, DEFAULT_AGGREGATE_MAP_EXPORT, DEFAULT_AGGREGATE_MATCHED_EXPORT_NAME, DEFAULT_AGGREGATE_RESOLVER_EXPORT, DEFAULT_AGGREGATE_ROOT_BINDING_EXPORT, DEFAULT_AGGREGATE_ROOT_EXPORT_NAME, DEFAULT_DISCOVERY_BUNDLE_MAX_SIZE, DEFAULT_IGNORE_DIRS, escapeRegExp, MODULE_RESOLVE_EXTENSIONS, normalizePathValue, normalizeStringList, parseBundleMaxSize, resolveAggregateModuleLoader, resolveBundleLoader, resolveModuleCandidate, staticPatternBase, toPosixDirname, toPosixPath, toRootImportSpecifier, VIRTUAL_ENTRY_PREFIX, globToRegExp, isValidIdentifier, matchesAnyPattern, }; export type { DiscoveredFile, NormalizedAggregateModuleMap, NormalizedBundleRule, NormalizedAggregateRule, NormalizedDiscoverOptions, NormalizedDiscoverRule, NormalizedManifestOptions, ResolvedAggregateRootModule, ResolvedDiscovery, }; //# sourceMappingURL=shared.d.ts.map