import type { IStringifyOptions } from "qs"; import type { IApiConnector } from "./types"; export type Deserializer = (response: Response) => Promise; export declare const ContentTypes: { json: string; }; export declare function appendAcceptHeader(params: RequestInit | undefined, acceptContentType: string): RequestInit; export declare function appendUrl(base: string, ...segments: any[]): string; export declare class RestRequestBuilder { protected apiConnector: IApiConnector; private baseUrl; protected params?: RequestInit | undefined; static DefaultQueryStringOptions: IStringifyOptions; protected urlValue: string; queryStringOptions?: IStringifyOptions; objectContentType: string; objectDeserializer: Deserializer; get url(): string; constructor(apiConnector: IApiConnector, baseUrl: string, params?: RequestInit | undefined); reset(): void; path(path: string): this; all(path: string): this; one(path: string, id?: any): this; get(queryParams?: any): Promise; getRaw(queryParams?: any): Promise; post(content: any): Promise; postOnly(content: any): Promise; postData(data?: BodyInit): Promise; put(content: any): Promise; putOnly(content: any): Promise; putData(data?: BodyInit): Promise; patch(content: any): Promise; patchOnly(content: any): Promise; patchData(data?: BodyInit): Promise; delete(content?: any): Promise; withBaseUrl(url: string): this; getQueryString(query: any, queryStringOptions?: IStringifyOptions): string; appendQuery(url: string, query?: any, queryStringOptions?: IStringifyOptions): string; }