import type { Constructor } from '@cratis/fundamentals'; import type { IClientArtifactsProvider } from '../../artifacts/index.js'; import type { ChronicleConnection } from '../../connection/index.js'; import type { GraphRegistration } from './GraphRegistration.js'; import type { IGraphs } from './IGraphs.js'; import type { GraphViewDefinition } from './views/GraphViewDefinition.js'; /** * Implements {@link IGraphs}, discovering the graphs an application declares, with the decorators and with the fluent * builder, and registering them with the Chronicle Kernel. */ export declare class Graphs implements IGraphs { private readonly _eventStore; private readonly _connection; private readonly _clientArtifacts; private readonly _graphSinkTypeId; private readonly _failures; private readonly _logger; private _registrations; private _viewDefinitions; /** * Creates a new {@link Graphs} instance. * @param _eventStore - The event store name. * @param _connection - Chronicle connection. * @param _clientArtifacts - Provider for discovered client artifact types. * @param _graphSinkTypeId - The identifier of the sink type that stores graphs. */ constructor(_eventStore: string, _connection: ChronicleConnection, _clientArtifacts: IClientArtifactsProvider, _graphSinkTypeId: string); /** @inheritdoc */ get registrations(): readonly GraphRegistration[]; /** @inheritdoc */ get viewDefinitions(): readonly GraphViewDefinition[]; /** @inheritdoc */ get failures(): ReadonlyMap; /** @inheritdoc */ discover(): Promise; /** @inheritdoc */ register(): Promise; private modelBoundGraphs; private fluentGraphs; private discoverViews; private tryRead; private fail; } //# sourceMappingURL=Graphs.d.ts.map