import { Constructor } from '@cratis/fundamentals'; import { IClientArtifactsProvider } from '../artifacts/index.js'; import { ChronicleConnection } from '../connection/index.js'; import { EventTypeId } from './EventTypeId.js'; import { IEventTypes } from './IEventTypes.js'; /** * Implements {@link IEventTypes}, managing discovery and registration of event types * with the Chronicle Kernel. */ export declare class EventTypes implements IEventTypes { private readonly _eventStore; private readonly _connection; private readonly _clientArtifacts; private readonly _typesByGeneration; private readonly _latestTypes; private readonly _eventTypeMigrators; /** * Creates a new {@link EventTypes} instance. * @param _eventStore - The name of the event store these types belong to. * @param _connection - The connection used to communicate with the Kernel. * @param _clientArtifacts - Provider for discovered client artifact types. */ constructor(_eventStore: string, _connection: ChronicleConnection, _clientArtifacts: IClientArtifactsProvider); /** @inheritdoc */ get all(): Constructor[]; /** @inheritdoc */ discover(): Promise; /** @inheritdoc */ register(): Promise; /** @inheritdoc */ hasFor(id: EventTypeId): boolean; /** @inheritdoc */ getTypeFor(id: EventTypeId): Constructor; } //# sourceMappingURL=EventTypes.d.ts.map