import { DataTag, QueryClient } from '@tanstack/react-query'; import { APIError } from 'better-auth'; import { OrganizationAuthServer } from '../../../lib/auth-server'; export type FullOrganizationData = Awaited>; export type FullOrganizationParams = Parameters[0]; /** * Query options factory for full organization details (members, invitations, etc.). * * @param auth - The Better Auth server instance. * @param userId - The signed-in user's ID. Used for cache partitioning so * the key matches the client-side `fullOrganizationOptions` for SSR hydration. * @param params - Parameters forwarded to `auth.api.getFullOrganization`. */ export declare function fullOrganizationOptions(auth: TAuth, userId: string, params: FullOrganizationParams): (import('@tanstack/query-core').OmitKeyof>, APIError, Awaited>, readonly ["auth", "user", string | undefined, "organization", "fullDetails", { organizationId?: string | undefined; organizationSlug?: string | undefined; membersLimit?: string | number | undefined; } | null]>, "queryFn"> & { queryFn?: import('@tanstack/query-core').QueryFunction>, readonly ["auth", "user", string | undefined, "organization", "fullDetails", { organizationId?: string | undefined; organizationSlug?: string | undefined; membersLimit?: string | number | undefined; } | null], never> | undefined; } & { queryKey: readonly ["auth", "user", string | undefined, "organization", "fullDetails", { organizationId?: string | undefined; organizationSlug?: string | undefined; membersLimit?: string | number | undefined; } | null] & { [dataTagSymbol]: Awaited>; [dataTagErrorSymbol]: APIError; }; }) & { queryKey: DataTag>, APIError>; }; export declare const ensureFullOrganization: (queryClient: QueryClient, auth: TAuth, userId: string, params: FullOrganizationParams) => Promise>>; export declare const prefetchFullOrganization: (queryClient: QueryClient, auth: TAuth, userId: string, params: FullOrganizationParams) => Promise; export declare const fetchFullOrganization: (queryClient: QueryClient, auth: TAuth, userId: string, params: FullOrganizationParams) => Promise>>;