import type { QueryKey, UseQueryOptions, UseQueryResult } from "@tanstack/react-query"; import type { HealthStatus } from "./api.schemas"; import { customFetch } from "../custom-fetch"; import type { ErrorType } from "../custom-fetch"; type AwaitedInput = PromiseLike | T; type Awaited = O extends AwaitedInput ? T : never; type SecondParameter unknown> = Parameters[1]; /** * Returns server health status * @summary Health check */ export declare const getHealthCheckUrl: () => string; export declare const healthCheck: (options?: RequestInit) => Promise; export declare const getHealthCheckQueryKey: () => readonly ["/api/healthz"]; export declare const getHealthCheckQueryOptions: >, TError = ErrorType>(options?: { query?: UseQueryOptions>, TError, TData>; request?: SecondParameter; }) => UseQueryOptions>, TError, TData> & { queryKey: QueryKey; }; export type HealthCheckQueryResult = NonNullable>>; export type HealthCheckQueryError = ErrorType; /** * @summary Health check */ export declare function useHealthCheck>, TError = ErrorType>(options?: { query?: UseQueryOptions>, TError, TData>; request?: SecondParameter; }): UseQueryResult & { queryKey: QueryKey; }; export {}; //# sourceMappingURL=api.d.ts.map