/**
 * 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 { OrgMembershipSelect, OrgMembershipWithRelations, OrgMembershipFilter, OrgMembershipOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { OrgMembershipSelect, OrgMembershipWithRelations, OrgMembershipFilter, OrgMembershipOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const orgMembershipsQueryKey: (variables?: object) => readonly ["orgmembership", "list", object];
/**
 * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useOrgMembershipsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useOrgMembershipsQuery<S extends OrgMembershipSelect, TData = {
    orgMemberships: ConnectionResult<InferSelectResult<OrgMembershipWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgMembershipFilter, OrgMembershipOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgMembershipSelect>;
} & Omit<UseQueryOptions<{
    orgMemberships: ConnectionResult<InferSelectResult<OrgMembershipWithRelations, 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 fetchOrgMembershipsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchOrgMembershipsQuery<S extends OrgMembershipSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgMembershipFilter, OrgMembershipOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgMembershipSelect>;
}): Promise<{
    orgMemberships: ConnectionResult<InferSelectResult<OrgMembershipWithRelations, S>>;
}>;
/**
 * Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status
 *
 * @example
 * ```ts
 * await prefetchOrgMembershipsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchOrgMembershipsQuery<S extends OrgMembershipSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgMembershipFilter, OrgMembershipOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgMembershipSelect>;
}): Promise<void>;
