export declare class APIRequestError extends Error {
    status: number;
    responseText: string | undefined;
    constructor({ message, status, responseText, }: {
        message: string;
        status: number;
        responseText: string | undefined;
    });
}
export interface MakeRequestConfig {
    baseUrl: string;
    getAuthData: () => string | null;
    getBotId: () => string | null;
    getInitData: () => string;
    waitUntilReady?: () => Promise<unknown>;
}
export declare function createMakeRequest(config: MakeRequestConfig): <T>(path: string, method: "POST" | "GET" | "PUT" | "DELETE", body?: unknown) => Promise<T>;
