import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js"; import { PaginationConfig } from "../../types/utility.js"; import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js"; import { WebhookDestinationInsert, WebhookDestinationSelect, WebhookDestinationUpdate } from "../../types/entities.js"; //#region src/data-access/manage/webhookDestinations.d.ts declare const getWebhookDestinationById: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; webhookDestinationId: string; }) => Promise; declare const listWebhookDestinationsPaginated: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; pagination?: PaginationConfig; agentId?: string; }) => Promise<{ data: { createdAt: string; updatedAt: string; enabled: boolean; url: string | null; slackChannelId: string | null; eventTypes: string[]; headers: Record | null; name: string; description: string | null; projectId: string; tenantId: string; id: string; }[]; pagination: { page: number; limit: number; total: number; pages: number; }; }>; type WebhookDestinationWithScoping = WebhookDestinationSelect & { agentIds: string[]; evaluatorIds: string[]; }; /** @deprecated Use {@link WebhookDestinationWithScoping} instead. */ type WebhookDestinationWithAgents = WebhookDestinationWithScoping; declare const listEnabledWebhookDestinations: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; agentId: string; }) => Promise; declare const createWebhookDestination: (db: AgentsManageDatabaseClient) => (params: WebhookDestinationInsert) => Promise; declare const updateWebhookDestination: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; webhookDestinationId: string; data: WebhookDestinationUpdate; }) => Promise; declare const deleteWebhookDestination: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; webhookDestinationId: string; }) => Promise; declare const getWebhookDestinationAgentIds: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; webhookDestinationId: string; }) => Promise; declare const setWebhookDestinationAgentIds: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; webhookDestinationId: string; agentIds: string[]; }) => Promise; declare const getWebhookDestinationEvaluatorIds: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; webhookDestinationId: string; }) => Promise; declare const setWebhookDestinationEvaluatorIds: (db: AgentsManageDatabaseClient) => (params: { scopes: ProjectScopeConfig; webhookDestinationId: string; evaluatorIds: string[]; }) => Promise; //#endregion export { WebhookDestinationWithAgents, WebhookDestinationWithScoping, createWebhookDestination, deleteWebhookDestination, getWebhookDestinationAgentIds, getWebhookDestinationById, getWebhookDestinationEvaluatorIds, listEnabledWebhookDestinations, listWebhookDestinationsPaginated, setWebhookDestinationAgentIds, setWebhookDestinationEvaluatorIds, updateWebhookDestination };