import { BundleManifestEntries, BundleManifestJson, BundleStates, BundleId, Bundle, BundleState, BundleStateName, SemVer, BundleContext, BundleHeaders, I18N, ServiceReference, BundleDependency } from './api/index.js'; import { InternalBundle, InternalBundleController, InternalBundleContext } from './api/internal.js'; import 'apprt-core/Types'; declare class Manifest { #private; /** * Simple Manifest class for validating important bundle properties. * @constructs */ constructor(state: BundleManifestEntries | BundleManifestJson, dynamicState?: Partial, isClone?: boolean); clone(): Manifest; private _validate; get entries(): BundleManifestEntries; get(name: string): ExpectedType | undefined; set(name: string, v: unknown): void; private _set; } declare const _controller_ref: unique symbol; declare const _context_ref: unique symbol; declare const _localizedHeaders: unique symbol; declare const _i18n: unique symbol; declare const _subst: unique symbol; declare const _toStringNames: unique symbol; declare const _transformedState: unique symbol; declare const _bundle: unique symbol; interface InternalHeaders extends BundleHeaders { [_bundle]: BundleImpl; [_transformedState]: Record; } declare class BundleImpl implements InternalBundle { static states: BundleStates; private [_controller_ref]; private [_context_ref]; private [_localizedHeaders]; private [_i18n]; private [_subst]; private [_toStringNames]; private _id; private _state; private _manifest; private _symbolicName; private _version; private _namespace; private _location; private _context; protected _controller: InternalBundleController; [key: symbol]: unknown; constructor(opts: { id: BundleId; controller: InternalBundleController; context: InternalBundleContext; manifest: Manifest; location: string; }); equals(that: Bundle): boolean; getState(): BundleState; getStateTitle(): BundleStateName; setState(state: BundleState): void; /** * @returns {number} */ getId(): BundleId; /** @deprecated use getId */ getBundleId(): BundleId; getSymbolicName(): string; getVersion(): SemVer; getLocation(): string; getNamespace(): string; getBundleContext(): BundleContext; getHeaders(locale?: string): InternalHeaders; setHeader(name: string, value: unknown): this; createSubstitutionFunction(locale?: string): (v: string | undefined) => string | undefined; _isI18nValue(name: string, value: any): boolean; getI18N(): I18N; getI18n(): I18N; loadI18n(): Promise; getResourceURL(name: string, otherNamespace?: string): string; getRegisteredServices(): ServiceReference[]; getServicesInUse(): ServiceReference[]; start(): Promise; stop(): Promise; uninstall(): Promise; toString(): string; getRequiredBundles(): Bundle[]; getRequiredBundleEntries(): { policy: BundleDependency["policy"]; bundle: Bundle; }[]; getAllRequiredBundles(skip?: (bundle: Bundle) => boolean): Bundle[]; _cleanup(this: any): void; } export { BundleImpl as default };