/**
 * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member)
 * @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 { MembershipTypeSelect, MembershipTypeWithRelations, MembershipTypeFilter, MembershipTypeOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { MembershipTypeSelect, MembershipTypeWithRelations, MembershipTypeFilter, MembershipTypeOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const membershipTypesQueryKey: (variables?: object) => readonly ["membershiptype", "list", object];
/**
 * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member)
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useMembershipTypesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useMembershipTypesQuery<S extends MembershipTypeSelect, TData = {
    membershipTypes: ConnectionResult<InferSelectResult<MembershipTypeWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, MembershipTypeFilter, MembershipTypeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, MembershipTypeSelect>;
} & Omit<UseQueryOptions<{
    membershipTypes: ConnectionResult<InferSelectResult<MembershipTypeWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member)
 *
 * @example
 * ```ts
 * const data = await fetchMembershipTypesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchMembershipTypesQuery<S extends MembershipTypeSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, MembershipTypeFilter, MembershipTypeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, MembershipTypeSelect>;
}): Promise<{
    membershipTypes: ConnectionResult<InferSelectResult<MembershipTypeWithRelations, S>>;
}>;
/**
 * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member)
 *
 * @example
 * ```ts
 * await prefetchMembershipTypesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchMembershipTypesQuery<S extends MembershipTypeSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, MembershipTypeFilter, MembershipTypeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, MembershipTypeSelect>;
}): Promise<void>;
