import { Context } from 'koishi'; interface Payment { id: string; plugin: string; platform: string; userId: string; amount: number; currency: string; status: string; createdAt: Date; } declare module 'koishi' { interface Tables { plugin_payment_audit: Payment; } } /** Journal before executing. An ambiguous failure is never automatically retried. */ export declare function createPayments(ctx: Context, plugin: string): { pay(platform: string, userId: string, amount: number, currency: string, execute: () => Promise): Promise; pending(platform: string, userId: string): Promise; }; export {};