import { VlocityDatapackReference } from '@vlocode/vlocity'; import { DatapackDependencyResolver, DependencyResolutionRequest } from './datapackDependencyResolver'; import { DatapackDeploymentRecord } from './datapackDeploymentRecord'; /** * Decorator that bulkified dependency resolution by queueing up resolutions for requests * for a pre-set time in milliseconds (50ms by default). */ export declare class DeferredDependencyResolver implements DatapackDependencyResolver { private readonly resolver; /** Time to wait until executing the queued lookups */ private readonly lookupWaitTime; private readonly lookupQueue; private lookupQueueTimer?; private lookupProcessing; constructor(resolver: DatapackDependencyResolver, /** Time to wait until executing the queued lookups */ lookupWaitTime?: number); /** * Resolves a dependency for a datapack record. * * @param dependency - The dependency to resolve. * @param datapackRecord - The datapack record. * @returns A promise that resolves to a string or undefined. */ resolveDependency(dependency: VlocityDatapackReference, datapackRecord: DatapackDeploymentRecord): Promise; /** * Resolves the dependencies asynchronously. * * @param dependencies - An array of DependencyResolutionRequest objects representing the dependencies to resolve. * @returns A Promise that resolves to an array of objects containing the resolution and error (if any) for each dependency. */ resolveDependencies(dependencies: DependencyResolutionRequest[]): Promise<{ resolution: string | undefined; error?: unknown; }[]>; private processLookupQueue; private enqueueProcessing; } //# sourceMappingURL=deferredDependencyResolver.d.ts.map