import { DataTag, QueryClient } from '@tanstack/react-query'; import { APIError } from 'better-auth'; import { OrganizationAuthServer } from '../../../lib/auth-server'; export type ListOrganizationMembersData = Awaited>; export type ListOrganizationMembersParams = Parameters[0]; /** * Query options factory for members of an organization. * * @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 `listOrganizationMembersOptions` for SSR hydration. * @param params - Parameters forwarded to `auth.api.listMembers`. */ export declare function listOrganizationMembersOptions(auth: TAuth, userId: string, params: ListOrganizationMembersParams): (import('@tanstack/query-core').OmitKeyof>, APIError, Awaited>, readonly ["auth", "user", string | undefined, "organization", "members", "list", { limit?: string | number | undefined; offset?: string | number | undefined; sortBy?: string | undefined; sortDirection?: "asc" | "desc" | undefined; filterField?: string | undefined; filterValue?: string | number | boolean | string[] | number[] | undefined; filterOperator?: "in" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; organizationId?: string | undefined; organizationSlug?: string | undefined; } | null]>, "queryFn"> & { queryFn?: import('@tanstack/query-core').QueryFunction>, readonly ["auth", "user", string | undefined, "organization", "members", "list", { limit?: string | number | undefined; offset?: string | number | undefined; sortBy?: string | undefined; sortDirection?: "asc" | "desc" | undefined; filterField?: string | undefined; filterValue?: string | number | boolean | string[] | number[] | undefined; filterOperator?: "in" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; organizationId?: string | undefined; organizationSlug?: string | undefined; } | null], never> | undefined; } & { queryKey: readonly ["auth", "user", string | undefined, "organization", "members", "list", { limit?: string | number | undefined; offset?: string | number | undefined; sortBy?: string | undefined; sortDirection?: "asc" | "desc" | undefined; filterField?: string | undefined; filterValue?: string | number | boolean | string[] | number[] | undefined; filterOperator?: "in" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined; organizationId?: string | undefined; organizationSlug?: string | undefined; } | null] & { [dataTagSymbol]: Awaited>; [dataTagErrorSymbol]: APIError; }; }) & { queryKey: DataTag>, APIError>; }; export declare const ensureListOrganizationMembers: (queryClient: QueryClient, auth: TAuth, userId: string, params: ListOrganizationMembersParams) => Promise>>; export declare const prefetchListOrganizationMembers: (queryClient: QueryClient, auth: TAuth, userId: string, params: ListOrganizationMembersParams) => Promise; export declare const fetchListOrganizationMembers: (queryClient: QueryClient, auth: TAuth, userId: string, params: ListOrganizationMembersParams) => Promise>>;