/** * @pwngh/economy-lab * * Copyright (c) Preston Neal * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ import type { CanonicalPayoutEvent } from '@pwngh/economy-edge'; import type { CallOptions, Saga, Store } from '../ports.js'; import type { PayoutFailedEvent, PayoutSettledEvent } from '../webhooks.js'; export type SagaLookup = (providerRef: string, options?: CallOptions) => Promise; export declare function sagaByProviderRef(store: Store): SagaLookup; export declare function payoutEventIdOf(event: CanonicalPayoutEvent): string | null; export declare function edgePayoutWebhookEvent(event: CanonicalPayoutEvent, input: { eventId: string; }, lookup: SagaLookup): Promise;