import type { Fetch } from '../api'; import { ApiError } from './ApiError'; import type { ApiResponse, HeadersMap, Method } from './types'; export declare function createFakeErrorPayload({ status, statusText, }: { status?: number; statusText?: string; }): { status: string; code: number | undefined; message: string; errors: { ':global': { code: number | undefined; message: string | undefined; }[]; }; }; export declare function createRequest

(fetchImpl: Fetch, url: string, options: { headers?: HeadersMap; method: Method; payload?: object; query?: object; }, onError?: (error: ApiError) => void): Promise>;