import type { $API, APIParameters, Endpoint, RequestBody } from '@axium/core/api';
import type { RequestMethod } from '@axium/core/requests';
export declare let token: string | null;
export declare function setToken(value: string | null): void;
export declare let prefix: string;
export declare function setPrefix(value: string): void;
export declare function fetchAPI<const M extends RequestMethod, const E extends Endpoint>(method: M, endpoint: E, data?: RequestBody<M, E>, ...params: APIParameters<E>): Promise<M extends keyof $API[E] ? ($API[E][M] extends [unknown, infer R] ? R : $API[E][M]) : unknown>;
