/**
 * 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 { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const membershipTypeQueryKey: (id: string | number) => readonly ["membershiptype", "detail", string | number];
/**
 * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member)
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useMembershipTypeQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useMembershipTypeQuery<S extends MembershipTypeSelect, TData = {
    membershipType: InferSelectResult<MembershipTypeWithRelations, S> | null;
}>(params: {
    id: number;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, MembershipTypeSelect>;
} & Omit<UseQueryOptions<{
    membershipType: InferSelectResult<MembershipTypeWithRelations, S> | null;
}, 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 fetchMembershipTypeQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchMembershipTypeQuery<S extends MembershipTypeSelect>(params: {
    id: number;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, MembershipTypeSelect>;
}): Promise<{
    membershipType: InferSelectResult<MembershipTypeWithRelations, S> | null;
}>;
/**
 * Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member)
 *
 * @example
 * ```ts
 * await prefetchMembershipTypeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchMembershipTypeQuery<S extends MembershipTypeSelect>(queryClient: QueryClient, params: {
    id: number;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, MembershipTypeSelect>;
}): Promise<void>;
