import { Endpoints, Stage } from "./endpoints.const";
export interface RequestPayload {
    url: string;
    base?: "notifications" | "accounts";
    stage?: Stage;
    endpoints?: Endpoints;
    method?: "get" | "post" | "put" | "delete" | "patch";
    headers?: {
        [key: string]: string;
    };
    type?: "json" | "text" | "form" | "none";
    responseType?: "json" | "text" | "none";
    camundaAuth?: {
        token: string;
        refreshTokenMethod?: () => Promise<string>;
    };
    body?: string | FormData | {
        [key: string]: unknown;
    };
    enableLogs?: boolean;
}
export type RequestResponse<R = undefined> = {
    success: boolean;
    result?: R;
    status?: number;
    error?: string;
};
export declare const request: <R = undefined>(payload: RequestPayload) => Promise<RequestResponse<R>>;
