export type FetchHeaders = {
    [key: string]: unknown;
};
export type FetchQueryParams = Record<string, unknown>;
export declare class HttpError extends Error {
    readonly status: number;
    constructor(status: number, message: string);
}
export declare function isHttpError(error: unknown): error is HttpError;
export declare function fetchWithTimeout<T = unknown>(url: string, params?: FetchQueryParams, headers?: FetchHeaders, timeout?: number, responseType?: "json" | "text"): Promise<T>;
export declare function postWithTimeout<T = unknown>(url: string, body: unknown, params?: FetchQueryParams, headers?: FetchHeaders, timeout?: number, responseType?: "json" | "text"): Promise<T>;
