import type { APIParameters, Endpoint, RequestBody, Result } from '@axium/core/api';
import { $API } 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, origin: string;
export declare function setPrefix(value: string): void;
/**
 * Only for use on non-browser clients, e.g. Node.js
 */
export declare function useUserAgent(ua: string | null): void;
export declare function fetchAPI<const E extends Endpoint, const M extends keyof $API[E] & RequestMethod>(method: M, endpoint: E, data?: RequestBody<M, E>, ...params: APIParameters<E>): Promise<Result<M, E>>;
