import { TransactionStartOptions } from "./interfaces/TransactionStart"; import { StartResult } from "./interfaces/StartResult"; import { TransactionResult } from "./interfaces/TransactionResult"; import { InvoiceData } from "./interfaces/InvoiceData"; export declare class PaynlError extends Error { } /** * * Contains the configurations for transactions. */ export declare class Paynl { private apiToken; private serviceId; private hostname; private verbose; constructor(config: { apiToken: string; serviceId: string; verbose?: boolean; }); /** * Generate the url of the API to call */ private getUrl; /** * Checks if the result is an error (there are many ways the api can return an error) */ private isError; private objectToQueryString; /** * Do a post request on the API. */ private post; startTransaction(options: TransactionStartOptions): Promise; getTransaction(transactionId: string): Promise; getTransactionDetails(transactionId: string): Promise; addInvoice(invoiceData: InvoiceData): Promise<{ referenceId: string; }>; /** * Request all the available payment methods and settings of the current merchant / service */ getService(): Promise; }