/** * Request payload used when asking the Auth Service to initialise a payer wallet. * `apiKey` mirrors the header consumed by the Express routes. */ export interface RegisterPayerParams { /** Base URL of the auth service instance (no trailing slash needed). */ authServiceBaseUrl: string; /** API key that the auth service expects in the `x-api-key` header. */ apiKey: string; } /** * Successful response payload returned by the auth service when a payer is * registered. The `payerSecretKey` must be persisted securely by the caller; it is * required for subsequent delegation calls. */ export interface RegisterPayerResult { success: boolean; payerWalletAddress: string; payerSecretKey: string; } export declare const registerPayerWithAuthService: (params: RegisterPayerParams) => Promise; /** * Request payload used when delegating payments for a set of users via the auth * service. The order of `userAddresses` is preserved and forwarded directly to the * PaymentManager's batch delegation call. */ export interface DelegateUsersParams { /** Base URL of the auth service instance (no trailing slash needed). */ authServiceBaseUrl: string; /** API key that the auth service expects in the `x-api-key` header. */ apiKey: string; /** Payer secret issued during `/register-payer`. */ payerSecretKey: string; /** Array of EVM addresses to delegate payments to. */ userAddresses: string[]; } /** * The auth service returns a transaction hash and optional message once the * delegation transaction has been submitted to the Payment Delegation contract. */ export interface DelegateUsersResult { success: boolean; txHash: string; message?: string; } export declare const delegateUsersWithAuthService: (params: DelegateUsersParams) => Promise;