import { B as BlindpayApiResponse } from '../../index.d-Gvol1faW.js';
import { I as InternalApiClient } from '../../api-client-Bklw4zQi.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" | "tos.accept" | "limitIncrease.new" | "limitIncrease.update" | "virtualAccount.new" | "virtualAccount.complete" | "transfer.new" | "transfer.update" | "transfer.complete" | "wallet.new" | "wallet.inbound";
type CreateWebhookEndpointInput = {
    url: string;
    events: WebhookEvents[];
};
type CreateWebhookEndpointResponse = {
    id: string;
};
type DeleteWebhookEndpointInput = 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 = string;
type GetWebhookEndpointSecretResponse = {
    key: string;
};
type GetPortalAccessUrlResponse = {
    url: string;
};
declare function createWebhookEndpointsResource(instanceId: string, client: InternalApiClient): {
    list(): Promise<BlindpayApiResponse<ListWebhookEndpointsResponse>>;
    create({ ...data }: CreateWebhookEndpointInput): Promise<BlindpayApiResponse<CreateWebhookEndpointResponse>>;
    delete(id: DeleteWebhookEndpointInput): Promise<BlindpayApiResponse<void>>;
    getSecret(id: GetWebhookEndpointSecretInput): Promise<BlindpayApiResponse<GetWebhookEndpointSecretResponse>>;
    getPortalAccessUrl(): Promise<BlindpayApiResponse<GetPortalAccessUrlResponse>>;
};

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