export type Item = { id: string; [field_name: string]: unknown; } & Fields; export type CollectionResponse = { items: Item[]; attachments: { [id: string]: any; }; }; export type ItemResponse = { items: [Item]; attachments: { [id: string]: any; }; }; export type ItemCreatedResponse = Item; export type RestAPIError = { response: { data: any; }; }; export default class MockRestApi { base_url: string; constructor(base_url: string); get(url: string, options?: Parameters[1], query?: Record): Promise; delete(url: string, options?: Parameters[1]): Promise; patch(url: string, data: any, options?: Parameters[1]): Promise; post(url: string, data: any, options?: Parameters[1]): Promise; login({ username, password, }: { username: string; password: string; }): Promise<{ headers: Record; }>; static getWithFullUrl(url: string, options?: Parameters[1]): Promise; }