import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-Cw2mNJeR.js';

type WebhookEvents = "receiver.new" | "receiver.update" | "bankAccount.new" | "payout.new" | "payout.update" | "payout.complete" | "payout.partnerFee" | "blockchainWallet.new" | "payin.new" | "payin.update" | "payin.complete" | "payin.partnerFee";
type CreateWebhookEndpointInput = {
    instanceId: string;
    url: string;
    events: WebhookEvents[];
};
type CreateWebhookEndpointResponse = {
    id: string;
};
type ListWebhookEndpointsInput = {
    instanceId: string;
};
type DeleteWebhookEndpointInput = {
    instanceId: string;
    id: string;
};
type ListWebhookEndpointsResponse = Array<{
    id: string;
    url: string;
    events: WebhookEvents[];
    last_event_at: string;
    instance_id: string;
    created_at: string;
    updated_at: string;
}>;
type GetWebhookEndpointSecretInput = {
    instanceId: string;
    id: string;
};
type GetWebhookEndpointSecretResponse = {
    key: string;
};
type GetPortalAccessUrlInput = {
    instanceId: string;
};
type GetPortalAccessUrlResponse = {
    url: string;
};
declare function createWebhookEndpointsResource(client: InternalApiClient): {
    list({ instanceId, }: ListWebhookEndpointsInput): Promise<BlindpayApiResponse<ListWebhookEndpointsResponse>>;
    create({ instanceId, ...data }: CreateWebhookEndpointInput): Promise<BlindpayApiResponse<CreateWebhookEndpointResponse>>;
    delete({ instanceId, id }: DeleteWebhookEndpointInput): Promise<BlindpayApiResponse<void>>;
    getSecret({ instanceId, id, }: GetWebhookEndpointSecretInput): Promise<BlindpayApiResponse<GetWebhookEndpointSecretResponse>>;
    getPortalAccessUrl({ instanceId, }: GetPortalAccessUrlInput): Promise<BlindpayApiResponse<GetPortalAccessUrlResponse>>;
};

export { type CreateWebhookEndpointInput, type CreateWebhookEndpointResponse, type DeleteWebhookEndpointInput, type GetPortalAccessUrlInput, type GetPortalAccessUrlResponse, type GetWebhookEndpointSecretInput, type GetWebhookEndpointSecretResponse, type ListWebhookEndpointsInput, type ListWebhookEndpointsResponse, type WebhookEvents, createWebhookEndpointsResource };
