import { AxiosInstance } from 'axios'; import List from '../data/list/List'; export default class Resource { protected readonly httpClient: AxiosInstance; protected readonly network: { post: (url: string, data: any) => Promise; get: (url: string, query?: Record) => Promise; list: (url: string, resourceName: string, query?: Record) => Promise, 'nextPage' | 'previousPage'>>; patch: (url: string, data: any) => Promise; delete: (url: string, context?: any) => Promise; }; constructor(httpClient: AxiosInstance); /** * Injects `nextPage`, `nextPageCursor`, `previousPage`, and `previousPageCursor` into the passed list. */ protected injectPaginationHelpers

(input: Omit, 'nextPage' | 'nextPageCursor' | 'previousPage' | 'previousPageCursor'>, list: (parameters: P) => Promise>, selfParameters: P): List; /** * Injects prototypes ‒ where necessary ‒ into the response received from the Mollie server. */ protected injectPrototypes(input: R): T; }