import type { SuperGrokAccount, SuperGrokAccountsResponse } from "@opengeni/sdk"; import { type ClientOverride } from "../provider.js"; import { type SharedQueryKey } from "./shared-query.js"; /** Shared-cache key for a workspace's SuperGrok accounts (internal; see `useSharedQuery`). */ export declare const superGrokAccountsQueryKey: (workspaceId: string) => SharedQueryKey; export type SuperGrokAccountsClientLike = { listSuperGrokAccounts: (workspaceId: string) => Promise; activateSuperGrokAccount?: (workspaceId: string, accountId: string) => Promise<{ activated: boolean; accountId: string; }>; }; export type UseSuperGrokAccountsOptions = ClientOverride & { enabled?: boolean | undefined; pollIntervalMs?: number | undefined; supergrokClient?: SuperGrokAccountsClientLike | undefined; }; export type UseSuperGrokAccountsResult = { accounts: SuperGrokAccount[]; activeAccountId: string | null; settings: SuperGrokAccountsResponse["settings"]; loading: boolean; refresh: () => Promise; activate: (accountId: string) => Promise; activating: boolean; mutationError: Error | null; }; /** * Workspace-visible xAI accounts. Workspace scope is the connection default. * Reads share the client-scoped cache, so a remount renders retained rows at once. */ export declare function useSuperGrokAccounts(options?: UseSuperGrokAccountsOptions): UseSuperGrokAccountsResult;