/**
 * Simplified view of active members in an entity, used for listing who belongs to an org or group
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { ListSelectionConfig } from '../selection';
import type { OrgMemberSelect, OrgMemberWithRelations, OrgMemberFilter, OrgMemberOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { OrgMemberSelect, OrgMemberWithRelations, OrgMemberFilter, OrgMemberOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const orgMembersQueryKey: (variables?: object) => readonly ["orgmember", "list", object];
/**
 * Simplified view of active members in an entity, used for listing who belongs to an org or group
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useOrgMembersQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useOrgMembersQuery<S extends OrgMemberSelect, TData = {
    orgMembers: ConnectionResult<InferSelectResult<OrgMemberWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgMemberFilter, OrgMemberOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgMemberSelect>;
} & Omit<UseQueryOptions<{
    orgMembers: ConnectionResult<InferSelectResult<OrgMemberWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Simplified view of active members in an entity, used for listing who belongs to an org or group
 *
 * @example
 * ```ts
 * const data = await fetchOrgMembersQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchOrgMembersQuery<S extends OrgMemberSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgMemberFilter, OrgMemberOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgMemberSelect>;
}): Promise<{
    orgMembers: ConnectionResult<InferSelectResult<OrgMemberWithRelations, S>>;
}>;
/**
 * Simplified view of active members in an entity, used for listing who belongs to an org or group
 *
 * @example
 * ```ts
 * await prefetchOrgMembersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchOrgMembersQuery<S extends OrgMemberSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgMemberFilter, OrgMemberOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgMemberSelect>;
}): Promise<void>;
