import { Logger } from 'winston'; import { ExecutionContext } from '@dolittle/sdk.execution'; import { Cancellation } from '@dolittle/sdk.resilience'; import { EventTypesClient } from '@dolittle/contracts/Runtime/Events/EventTypes_grpc_pb'; import { IEventTypes } from '../IEventTypes'; /** * Represents a system that knows how to register Event Types with the Runtime. */ export declare class EventTypes { readonly _client: EventTypesClient; readonly _executionContext: ExecutionContext; readonly _logger: Logger; /** * Initializes an instance of the {@link EventTypes} class. * @param {EventTypesClient} _client - The event types client. * @param {ExecutionContext} _executionContext - The execution context. * @param {Logger} _logger - The logger. */ constructor(_client: EventTypesClient, _executionContext: ExecutionContext, _logger: Logger); /** * Registers all event types from the given {@link IEventTypes}. * @param {IEventTypes} eventTypes - The event types to register. * @param {Cancellation} cancellation - The cancellation. * @returns {Promise} A {@link Promise} that represents the asynchronous operation. */ registerAllFrom(eventTypes: IEventTypes, cancellation: Cancellation): Promise; private createRequest; private sendRequest; } //# sourceMappingURL=EventTypes.d.ts.map