import { Constructor } from '@dolittle/types'; import { Cancellation } from '@dolittle/sdk.resilience'; import { IProjectionStore } from './IProjectionStore'; import { Key } from '../Key'; import { CurrentState } from './CurrentState'; import { ScopedProjectionId } from './ScopedProjectionId'; import { IProjectionOf } from './IProjectionOf'; import { ProjectionId } from '../_exports'; import { ScopeId } from '@dolittle/sdk.events'; /** * Represents an implementation of {@link IProjectionOf}. * @template TReadModel The type of the projection read model. */ export declare class ProjectionOf extends IProjectionOf { private _readModelType; private readonly _projectionStore; /** @inheritdoc */ readonly identifier: ProjectionId; /** @inheritdoc */ readonly scope: ScopeId; /** * Initialises a new instance of the {@link ProjectionOf} class. * @param {Constructor} _readModelType - The type of the read model. * @param {IProjectionStore} _projectionStore - The projection store to get the projection from. * @param {ScopedProjectionId} identifier - The scoped projection identifier. */ constructor(_readModelType: Constructor, _projectionStore: IProjectionStore, identifier: ScopedProjectionId); /** @inheritdoc */ get(key: Key, cancellation?: Cancellation): Promise; /** @inheritdoc */ getState(key: Key, cancellation?: Cancellation): Promise>; /** @inheritdoc */ getAll(cancellation?: Cancellation): Promise; } //# sourceMappingURL=ProjectionOf.d.ts.map