import { ResponseResolver, DefaultBodyType, PathParams } from 'msw'; import { ModelDictionary, ModelAPI, ModelDefinition } from '../glossary'; import { QuerySelectorWhere } from '../query/queryTypes'; import { OperationError } from '../errors/OperationError'; declare enum HTTPErrorType { BadRequest = 0 } declare class HTTPError extends OperationError { constructor(type: HTTPErrorType, message?: string); } export declare function createUrlBuilder(baseUrl?: string): (path: string) => string; export declare function getResponseStatusByErrorType(error: OperationError | HTTPError): number; export declare function withErrors(resolver: ResponseResolver): (info: import("msw/lib/core/RequestHandler-bb5cbb8f").l, DefaultBodyType>) => Promise; export declare function parseQueryParams(modelName: ModelName, definition: ModelDefinition, searchParams: URLSearchParams): { cursor: string | null; skip: number | null; take: number | null; filters: QuerySelectorWhere; }; export declare function generateRestHandlers(modelName: ModelName, modelDefinition: ModelDefinition, model: ModelAPI, baseUrl?: string): import("msw/lib/core/handlers/HttpHandler").HttpHandler[]; export {};