import { type Client } from '../core.js'; import { type Result, type RequestOptions } from '../lib/types.js'; import type { ListNotificationChannelsRequest, ListNotificationChannelsResponse, CreateNotificationChannelRequest, CreateNotificationChannelResponse, GetNotificationChannelRequest, GetNotificationChannelResponse, UpdateNotificationChannelRequest, UpdateNotificationChannelResponse, DeleteNotificationChannelRequest, DeleteNotificationChannelResponse, ListNotificationRulesRequest, ListNotificationRulesResponse, CreateNotificationRuleRequest, CreateNotificationRuleResponse, GetNotificationRuleRequest, GetNotificationRuleResponse, UpdateNotificationRuleRequest, UpdateNotificationRuleResponse, DeleteNotificationRuleRequest, DeleteNotificationRuleResponse, TestNotificationRuleRequest, TestNotificationRuleResponse, ListNotificationEventsRequest, ListNotificationEventsResponse, GetNotificationEventRequest, GetNotificationEventResponse, ResendNotificationEventRequest, ResendNotificationEventResponse } from '../models/operations/notifications.js'; /** * List notification channels * * List all notification channels. * * GET /openmeter/notification/channels */ export declare function listNotificationChannels(client: Client, req?: ListNotificationChannelsRequest, options?: RequestOptions): Promise>; /** * Create notification channel * * Create a notification channel. * * POST /openmeter/notification/channels */ export declare function createNotificationChannel(client: Client, req: CreateNotificationChannelRequest, options?: RequestOptions): Promise>; /** * Get notification channel * * Get a notification channel by id. * * GET /openmeter/notification/channels/{notificationChannelId} */ export declare function getNotificationChannel(client: Client, req: GetNotificationChannelRequest, options?: RequestOptions): Promise>; /** * Update notification channel * * Update a notification channel by id. * * PUT /openmeter/notification/channels/{notificationChannelId} */ export declare function updateNotificationChannel(client: Client, req: UpdateNotificationChannelRequest, options?: RequestOptions): Promise>; /** * Delete notification channel * * Delete a notification channel by id. * * DELETE /openmeter/notification/channels/{notificationChannelId} */ export declare function deleteNotificationChannel(client: Client, req: DeleteNotificationChannelRequest, options?: RequestOptions): Promise>; /** * List notification rules * * List all notification rules. * * GET /openmeter/notification/rules */ export declare function listNotificationRules(client: Client, req?: ListNotificationRulesRequest, options?: RequestOptions): Promise>; /** * Create notification rule * * Create a notification rule. * * POST /openmeter/notification/rules */ export declare function createNotificationRule(client: Client, req: CreateNotificationRuleRequest, options?: RequestOptions): Promise>; /** * Get notification rule * * Get a notification rule by id. * * GET /openmeter/notification/rules/{notificationRuleId} */ export declare function getNotificationRule(client: Client, req: GetNotificationRuleRequest, options?: RequestOptions): Promise>; /** * Update notification rule * * Update a notification rule by id. * * PUT /openmeter/notification/rules/{notificationRuleId} */ export declare function updateNotificationRule(client: Client, req: UpdateNotificationRuleRequest, options?: RequestOptions): Promise>; /** * Delete notification rule * * Delete a notification rule by id. * * DELETE /openmeter/notification/rules/{notificationRuleId} */ export declare function deleteNotificationRule(client: Client, req: DeleteNotificationRuleRequest, options?: RequestOptions): Promise>; /** * Test notification rule * * Test a notification rule by generating an event with sample data and delivering * it to the rule's channels. The test event is persisted and listed like any other * event. * * POST /openmeter/notification/rules/{notificationRuleId}/test */ export declare function testNotificationRule(client: Client, req: TestNotificationRuleRequest, options?: RequestOptions): Promise>; /** * List notification events * * List all notification events. * * GET /openmeter/notification/events */ export declare function listNotificationEvents(client: Client, req?: ListNotificationEventsRequest, options?: RequestOptions): Promise>; /** * Get notification event * * Get a notification event by id. * * GET /openmeter/notification/events/{notificationEventId} */ export declare function getNotificationEvent(client: Client, req: GetNotificationEventRequest, options?: RequestOptions): Promise>; /** * Resend notification event * * Resend a notification event to the channels of the rule that generated it. * * Delivery is asynchronous: the request marks the selected channels for redelivery * and returns immediately. Channels whose delivery is still pending or already * being resent are left untouched. * * POST /openmeter/notification/events/{notificationEventId}/resend */ export declare function resendNotificationEvent(client: Client, req: ResendNotificationEventRequest, options?: RequestOptions): Promise>;