import { type OnModuleDestroy, type OnModuleInit } from '@nestjs/common'; import { type KernelState } from '@xemahq/contracts/kernel-state'; import { type ResolveOptions, type ResolvedService, type ServiceDescriptor, type ServiceLease, type ServiceRegistry, type ServiceRegistryHealth, type ServiceRegistrySnapshot, type WatchAllOptions } from '@xemahq/contracts/service-registry'; import { PeerContractEnforcer, RESOLVE_PEER, type PeerAdmission } from './peer-contract-enforcer'; export interface HydrateRetryOptions { readonly hydrateMaxAttempts?: number; readonly hydrateInitialDelayMs?: number; readonly hydrateMaxDelayMs?: number; readonly peerContract?: PeerContractEnforcer; } type WatchCallback = (services: ResolvedService[]) => void; type WatchAllCallback = (snapshot: ServiceRegistrySnapshot) => void; export declare class KernelStateServiceRegistry implements ServiceRegistry, OnModuleInit, OnModuleDestroy { private readonly kernelState; private readonly retryOptions; private readonly logger; private readonly leasesById; private readonly cache; private readonly watchersByName; private readonly allWatchers; private hydrated; private synchronizationHealth; private detachWatch; constructor(kernelState: KernelState, retryOptions?: HydrateRetryOptions); onModuleInit(): Promise; onModuleDestroy(): void; private synchronizeWithRetry; private startSynchronizedWatch; register(descriptor: ServiceDescriptor): Promise; renew(leaseId: string): Promise; resolve(name: string, opts?: ResolveOptions): Promise; [RESOLVE_PEER](admission: PeerAdmission, opts?: ResolveOptions): Promise; list(): Promise; health(): ServiceRegistryHealth; watchAll(options: WatchAllOptions, cb: WatchAllCallback): () => void; watch(name: string, cb: WatchCallback): () => void; deregister(name: string, instanceId: string): Promise; private applyChanges; private replaceSnapshot; private applyWatchStatus; private applyOne; private notifyWatchers; private notifyAllWatchers; private assertHydrated; private snapshotFor; private snapshotAll; private toResolved; } export {}; //# sourceMappingURL=service-registry-impl.d.ts.map