import { SourceId } from './SourceId'; import { Guid } from '@dolittle/rudiments'; /** * Defines the repository for working with entity identity identifiers. */ export interface IIdentityRepository { /** * Initialize * @returns {Promise} Async continuation. */ initialize(): Promise; /** * Associate an entity identity with an event source identifier. * @param sourceId Entity identity to associate. * @param id UniqueId to associate with */ associate(sourceId: SourceId, id: Guid): Promise; /** * Get all associations. * @returns {Promise>} All associations. */ all(): Map; } //# sourceMappingURL=IIdentityRepository.d.ts.map