export declare function setApiBase(path: string): void;
/**
 * Current API base path. Exposed so non-`fetch` consumers (in
 * particular `EventSource` for SSE channels) can resolve URLs against
 * the same prefix configured via `setApiBase()`. Keep this read-only
 * — mutation must always flow through `setApiBase()` so we never have
 * two callers with diverging views of the base.
 */
export declare function getApiBase(): string;
export declare function ensureCsrfToken(): Promise<void>;
export declare function cmsApi<T = unknown>(endpoint: string, options?: RequestInit): Promise<{
    data?: T;
    error?: string;
    status: number;
}>;
//# sourceMappingURL=api.d.ts.map