import { WarmHubClient } from './index.js'; export { AboutOptions, AboutResult, CountOptions, CountResult, CurrentUserInfo, DEFAULT_API_URL, ErrorKind, FilterOptions, FilterResult, HeadResult, HistoryResult, Operation, OperationSubmitResult, PingResult, RefsOptions, RefsResult, RepoListPageOptions, RepoListPageResult, RepoWithStatsInfo, ResolveWrefResult, SDK_VERSION, SearchOptions, SearchResult, ThingDetail, WarmHubClientOptions, WarmHubError, toWarmHubError } from './index.js'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { ReactNode } from 'react'; import 'zod'; /** @internal */ interface WarmHubProviderProps { apiUrl: string; children: ReactNode; auth: { isAuthenticated: boolean; isLoading: boolean; getAccessToken: () => Promise; }; /** * Self-identification forwarded to the `X-WarmHub-Client` header. First-party * apps set `name` (e.g. `warmhub-web`) so backend observability can tell them * apart from raw SDK consumers; an omitted `version` falls through to the SDK * version. See `WarmHubClientOptions.client`. */ client?: { name?: string; version?: string; }; /** * Opt the app's client into response auto-decoration; see * `WarmHubClientOptions.decorateResponses`. */ decorateResponses?: boolean; } interface WarmHubAuthState { isAuthenticated: boolean; isLoading: boolean; } /** @internal */ declare function WarmHubProvider({ apiUrl, children, auth, client: clientIdentity, decorateResponses, }: WarmHubProviderProps): react_jsx_runtime.JSX.Element; /** @internal */ declare function useWarmHubClient(): WarmHubClient; /** @internal */ declare function useWarmHubAuth(): WarmHubAuthState; export { WarmHubClient, WarmHubProvider, type WarmHubProviderProps, useWarmHubAuth, useWarmHubClient };