/**
 * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status
 * @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 { AppMembershipSelect, AppMembershipWithRelations, AppMembershipFilter, AppMembershipOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { AppMembershipSelect, AppMembershipWithRelations, AppMembershipFilter, AppMembershipOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appMembershipsQueryKey: (variables?: object) => readonly ["appmembership", "list", object];
/**
 * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppMembershipsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useAppMembershipsQuery<S extends AppMembershipSelect, TData = {
    appMemberships: ConnectionResult<InferSelectResult<AppMembershipWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppMembershipFilter, AppMembershipOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppMembershipSelect>;
} & Omit<UseQueryOptions<{
    appMemberships: ConnectionResult<InferSelectResult<AppMembershipWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status
 *
 * @example
 * ```ts
 * const data = await fetchAppMembershipsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchAppMembershipsQuery<S extends AppMembershipSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppMembershipFilter, AppMembershipOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppMembershipSelect>;
}): Promise<{
    appMemberships: ConnectionResult<InferSelectResult<AppMembershipWithRelations, S>>;
}>;
/**
 * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status
 *
 * @example
 * ```ts
 * await prefetchAppMembershipsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchAppMembershipsQuery<S extends AppMembershipSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppMembershipFilter, AppMembershipOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppMembershipSelect>;
}): Promise<void>;
