import type { Dispatch } from '@reduxjs/toolkit'; import type { TClusterInfo } from '../../../types/api/cluster'; import type { TTabletStateInfo } from '../../../types/api/tablet'; import type { RootState } from '../../defaultStore'; import type { ClusterGroupsStats, ClusterState } from './types'; export declare const INITIAL_DEFAULT_CLUSTER_TAB: "databases"; export declare function updateDefaultClusterTab(tab: string): (dispatch: Dispatch) => void; declare const _default: import("redux").Reducer; export default _default; export declare const clusterApi: import("@reduxjs/toolkit/query").Api, { getClusterInfo: import("@reduxjs/toolkit/query").QueryDefinition, "All" | "Conversations" | "Events" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "OperationList" | "DatabaseData" | "ClusterData", { clusterData: TClusterInfo; groupsStats?: ClusterGroupsStats; }, "api", typeof import("../api")._NEVER>; getClusterBaseInfo: import("@reduxjs/toolkit/query").QueryDefinition, "All" | "Conversations" | "Events" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "OperationList" | "DatabaseData" | "ClusterData", import("../../../types/api/meta").MetaBaseClusterInfo | undefined, "api", any>; }, "api", "All" | "Conversations" | "Events" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "OperationList" | "DatabaseData" | "ClusterData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>; export declare function useClusterBaseInfo(): { monitoring: string | import("../../../types/api/meta").MetaClusterMonitoringData | undefined; name: string | undefined; title: string | undefined; traceView: import("../../../types/api/meta").MetaClusterTraceView | undefined; cores: import("../../../types/api/meta").MetaClusterCoresUrl | undefined; logging: import("../../../types/api/meta").MetaClusterLogsUrls | undefined; settings: import("../../../types/api/meta").MetaClusterSettings | undefined; links: import("../../../types/api/meta").MetaClusterLinks | undefined; isError: boolean; isResolved: boolean; owner?: string; location?: string; image?: string; domain?: string; mvp_token?: string; status?: string; scale?: number; environment?: string; control_plane?: string; description?: string; balancer?: string; service?: string; galaxy?: string; use_embedded_ui?: boolean; trace_view?: string | import("../../../types/api/meta").MetaClusterTraceView; trace_check?: string | import("../../../types/api/meta").MetaClusterTraceCheck; }; export declare function useClusterWithProxy(): boolean; /** * Reports whether the cluster base info (and therefore the `use_meta_proxy` * setting) is known. While the request is in flight `useClusterWithProxy()` * optimistically returns `true`, so any decision that switches backends * (e.g. meta vs viewer for topic data) must be deferred until this resolves. * When the query is skipped (single-cluster mode / non-viewer user) settings * are not applicable and considered resolved — defaults apply. */ export declare function useClusterProxySettingResolved(): boolean; type ClusterBaseInfo = ReturnType; export type ClusterInfo = Omit; export declare const selectClusterTitle: ((state: { api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "Conversations" | "Events" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "OperationList" | "DatabaseData" | "ClusterData", "api">; singleClusterMode: boolean; cluster: ClusterState; tenant: import("../tenant/types").TenantState; schema: { loading: boolean; data: {}; currentSchemaPath: undefined; showPreview: boolean; }; partitions: { selectedConsumer?: string; }; query: import("../query/types").QueryState; heatmap: import("../../../types/store/heatmap").IHeatmapState; settings: import("../settings/types").SettingsState; executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters; shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters; authentication: import("../authentication/types").AuthenticationState; header: import("../header/types").HeaderState; queryActions: import("../queryActions/types").QueryActionsState; fullscreen: boolean; clusters: import("../clusters/types").ClustersFilters; }, clusterName?: string | undefined) => string) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; } & { resultFunc: (resultFuncArgs_0: string | undefined, resultFuncArgs_1: { clusterData: TClusterInfo; groupsStats?: ClusterGroupsStats; } | undefined) => string; memoizedResultFunc: ((resultFuncArgs_0: string | undefined, resultFuncArgs_1: { clusterData: TClusterInfo; groupsStats?: ClusterGroupsStats; } | undefined) => string) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; }; lastResult: () => string; dependencies: [(_state: RootState, clusterName?: string) => string | undefined, (state: RootState, clusterName?: string) => { clusterData: TClusterInfo; groupsStats?: ClusterGroupsStats; } | undefined]; recomputations: () => number; resetRecomputations: () => void; dependencyRecomputations: () => number; resetDependencyRecomputations: () => void; } & { argsMemoize: typeof import("reselect").weakMapMemoize; memoize: typeof import("reselect").weakMapMemoize; }; export declare const selectClusterTabletsWithFqdn: ((state: { api: import("@reduxjs/toolkit/query").CombinedState<{}, "All" | "Conversations" | "Events" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "OperationList" | "DatabaseData" | "ClusterData", "api">; singleClusterMode: boolean; cluster: ClusterState; tenant: import("../tenant/types").TenantState; schema: { loading: boolean; data: {}; currentSchemaPath: undefined; showPreview: boolean; }; partitions: { selectedConsumer?: string; }; query: import("../query/types").QueryState; heatmap: import("../../../types/store/heatmap").IHeatmapState; settings: import("../settings/types").SettingsState; executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters; shardsWorkload: import("../shardsWorkload/types").ShardsWorkloadFilters; authentication: import("../authentication/types").AuthenticationState; header: import("../header/types").HeaderState; queryActions: import("../queryActions/types").QueryActionsState; fullscreen: boolean; clusters: import("../clusters/types").ClustersFilters; }, clusterName?: string | undefined) => (TTabletStateInfo & { fqdn?: string; })[]) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; } & { resultFunc: (resultFuncArgs_0: { clusterData: TClusterInfo; groupsStats?: ClusterGroupsStats; } | undefined, resultFuncArgs_1: import("../../../types/store/nodesList").NodesMap | undefined) => (TTabletStateInfo & { fqdn?: string; })[]; memoizedResultFunc: ((resultFuncArgs_0: { clusterData: TClusterInfo; groupsStats?: ClusterGroupsStats; } | undefined, resultFuncArgs_1: import("../../../types/store/nodesList").NodesMap | undefined) => (TTabletStateInfo & { fqdn?: string; })[]) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; }; lastResult: () => (TTabletStateInfo & { fqdn?: string; })[]; dependencies: [(state: RootState, clusterName?: string) => { clusterData: TClusterInfo; groupsStats?: ClusterGroupsStats; } | undefined, (state: RootState) => import("../../../types/store/nodesList").NodesMap | undefined]; recomputations: () => number; resetRecomputations: () => void; dependencyRecomputations: () => number; resetDependencyRecomputations: () => void; } & { argsMemoize: typeof import("reselect").weakMapMemoize; memoize: typeof import("reselect").weakMapMemoize; };