import { Api, type ApiOptions, type AuthState } from "../../Api";
import { type ReactNode } from "react";
import type { AdminBkndWindowContext } from "../../modules/server/AdminController";
export type BkndClientContext = {
    baseUrl: string;
    api: Api;
    authState?: Partial<AuthState>;
};
export type ClientProviderProps = {
    children?: ReactNode;
    baseUrl?: string;
    api?: Api;
} & ApiOptions;
export declare const ClientProvider: ({ children, host, baseUrl: _baseUrl, api: _api, ...props }: ClientProviderProps) => import("react/jsx-runtime").JSX.Element;
export declare const useApi: (host?: ApiOptions["host"]) => Api;
export declare const useClientContext: () => BkndClientContext;
/**
 * @deprecated use useApi().baseUrl instead
 */
export declare const useBaseUrl: () => string;
export declare function useBkndWindowContext(): AdminBkndWindowContext;
