import Core from "../interfaces/core"; import { List, ListOption } from "../types"; import { PaymentIntent, PaymentIntentParams, PaymentIntentResponse } from "../types/payments"; import BaseResource from "./base"; export default class PaymentIntentsResource extends BaseResource implements Core { constructor(apiKey: string, maxRetries: number, timeout: number); /** Creates a payment intent */ create(params: PaymentIntentParams): Promise; /** Retrieves a payment intent by its id. */ retrieve(id: string): Promise; /** Cancels the payment intent. */ cancel(id: string): Promise; /** Returns a list of payment intents. */ list(options?: ListOption): Promise>; }