import type { ShareAllExternalsOptions, ShareExternalsOptions, SkipList, FederationConfig } from "@softarc/native-federation/domain"; export declare function shareAll(config: ShareAllExternalsOptions, opts?: { skipList?: SkipList; projectPath?: string; overrides?: ShareExternalsOptions; }): import("@softarc/native-federation").ResolvedSharedExternalsConfig; export declare function share(configuredShareObjects: ShareExternalsOptions, projectPath?: string, skipList?: SkipList): import("@softarc/native-federation").ResolvedSharedExternalsConfig; /** * Angular-flavored {@link coreFromPackageJson}: builds a shared-externals config * from `package.json` and pre-seeds the Angular skip list, so the returned * fluent builder (`.skip()`, `.override()`, `.patch()`, `.get()`) starts from * {@link NG_SKIP_LIST} instead of core's `DEFAULT_SKIP_LIST`. */ export declare function fromPackageJson(baseCfg: ShareAllExternalsOptions, projectPath?: string): any; export declare function withNativeFederation(cfg: FederationConfig): import("@softarc/native-federation/internal").NormalizedFederationConfig; export interface PackageShareScopeOptions { level?: "major" | "minor" | "patch"; /** Package whose version drives the scope. Defaults to `@angular/core`. */ dependency?: string; /** Directory to start resolving `package.json` from. Defaults to `cwd()`. */ projectPath?: string; prefix?: string; } /** * Builds a version-pinned share scope (e.g. `"ng21.1"`) from a dependency's * declared version, so internals are only shared between remotes on the same * version line. * * ```ts * withNativeFederation({ * shareScope: autoShareScope({ level: 'patch' }), // e.g. "ng21.1.4" * shared: { '@angular/core': { shareScope: autoShareScope() } }, // "ng21.1" * }); * ``` * * @throws when the version can't be resolved or lacks the requested `level`. */ export declare function autoShareScope(opts?: PackageShareScopeOptions): string; //# sourceMappingURL=share-utils.d.ts.map