import { type WebhookDefinition } from '@cratis/chronicle.contracts'; import { IClientArtifactsProvider } from '../artifacts/index.js'; import { ChronicleConnection } from '../connection/index.js'; import { IEventTypes } from '../events/IEventTypes.js'; import { IWebhookDefinitionBuilder } from './IWebhookDefinitionBuilder.js'; import { IWebhooks } from './IWebhooks.js'; import { WebhookId } from './WebhookId.js'; import { WebhookTargetUrl } from './WebhookTargetUrl.js'; /** * Implements {@link IWebhooks}. */ export declare class Webhooks implements IWebhooks { private readonly _eventStore; private readonly _connection; private readonly _eventTypes; private readonly _clientArtifacts; private readonly _discovered; /** * Creates a new {@link Webhooks} instance. * @param _eventStore - Event store name. * @param _connection - Chronicle connection. * @param _eventTypes - Event types manager. * @param _clientArtifacts - Client artifacts provider. */ constructor(_eventStore: string, _connection: ChronicleConnection, _eventTypes: IEventTypes, _clientArtifacts: IClientArtifactsProvider); /** @inheritdoc */ discover(): Promise; /** @inheritdoc */ registerDiscovered(): Promise; /** @inheritdoc */ register(webhookId: WebhookId | string, targetUrl: WebhookTargetUrl | string, configure: (builder: IWebhookDefinitionBuilder) => void): Promise; /** @inheritdoc */ getWebhooks(): Promise; /** @inheritdoc */ remove(webhookId: WebhookId | string): Promise; private buildDefinition; } //# sourceMappingURL=Webhooks.d.ts.map