import type { components } from '../generated/api.js';
import { WorkspaceScopedResource } from './base.js';
import type { ListParams } from '../core/utils.js';
export declare class WebhookDestinationsResource extends WorkspaceScopedResource {
    list(params?: ListParams): Promise<{
        continuation_token?: number | null | undefined;
        has_more: boolean;
        items: {
            accepted_event_types: string[];
            created_at?: string | null | undefined;
            created_by: string | null;
            description: string | null;
            field_mapping: {
                [x: string]: unknown;
            } | null;
            id: string;
            is_active: boolean;
            name: string;
            retry_attempts: number;
            trigger_id: string;
            updated_at?: string | null | undefined;
            url: string;
            workspace_id: string;
        }[];
        total?: number | null | undefined;
    } & import("../index.js").ResponseMetadata>;
    listAutoPaging(params?: ListParams): AsyncGenerator<{
        accepted_event_types: string[];
        created_at?: string | null | undefined;
        created_by: string | null;
        description: string | null;
        field_mapping: {
            [x: string]: unknown;
        } | null;
        id: string;
        is_active: boolean;
        name: string;
        retry_attempts: number;
        trigger_id: string;
        updated_at?: string | null | undefined;
        url: string;
        workspace_id: string;
    }, any, any>;
    create(body: components['schemas']['CreateWebhookDestinationRequest']): Promise<{
        accepted_event_types: string[];
        created_at?: string | null | undefined;
        created_by: string | null;
        description: string | null;
        field_mapping: {
            [x: string]: unknown;
        } | null;
        id: string;
        is_active: boolean;
        name: string;
        retry_attempts: number;
        secret: string;
        trigger_id: string;
        updated_at?: string | null | undefined;
        url: string;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    get(destinationId: string): Promise<{
        accepted_event_types: string[];
        created_at?: string | null | undefined;
        created_by: string | null;
        description: string | null;
        field_mapping: {
            [x: string]: unknown;
        } | null;
        id: string;
        is_active: boolean;
        name: string;
        retry_attempts: number;
        trigger_id: string;
        updated_at?: string | null | undefined;
        url: string;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    update(destinationId: string, body: components['schemas']['UpdateWebhookDestinationRequest']): Promise<{
        accepted_event_types: string[];
        created_at?: string | null | undefined;
        created_by: string | null;
        description: string | null;
        field_mapping: {
            [x: string]: unknown;
        } | null;
        id: string;
        is_active: boolean;
        name: string;
        retry_attempts: number;
        trigger_id: string;
        updated_at?: string | null | undefined;
        url: string;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    delete(destinationId: string): Promise<void>;
    listDeliveries(destinationId: string, params?: ListParams): Promise<{
        continuation_token?: number | null | undefined;
        has_more: boolean;
        items: {
            created_at?: string | null | undefined;
            data: {
                [x: string]: unknown;
            };
            effective_at: string | null;
            event_id: string;
            event_type: string;
        }[];
        total?: number | null | undefined;
    } & import("../index.js").ResponseMetadata>;
    listDeliveriesAutoPaging(destinationId: string, params?: ListParams): AsyncGenerator<{
        created_at?: string | null | undefined;
        data: {
            [x: string]: unknown;
        };
        effective_at: string | null;
        event_id: string;
        event_type: string;
    }, any, any>;
    rotateSecret(destinationId: string): Promise<{
        rotation_expires_at: string;
        secret: string;
    } & import("../index.js").ResponseMetadata>;
}
//# sourceMappingURL=webhook-destinations.d.ts.map