import HttpClient from '../../http'; import type { IListParams, IListData, IItemParams, IItemData } from '../adapter'; import type IAdapter from '../adapter'; export default class JsonApiAdapter implements IAdapter { protected http: HttpClient; constructor(http?: HttpClient); getList(endpoint: string, params: IListParams): Promise; getItem(endpoint: string, params: IItemParams): Promise; deleteItem(endpoint: string, id: string): Promise; saveItem(endpoint: string, item: Record, id?: string): Promise; }