/**
 * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control
 * @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 { OrgPermissionSelect, OrgPermissionWithRelations, OrgPermissionFilter, OrgPermissionOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { OrgPermissionSelect, OrgPermissionWithRelations, OrgPermissionFilter, OrgPermissionOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const orgPermissionsQueryKey: (variables?: object) => readonly ["orgpermission", "list", object];
/**
 * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useOrgPermissionsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useOrgPermissionsQuery<S extends OrgPermissionSelect, TData = {
    orgPermissions: ConnectionResult<InferSelectResult<OrgPermissionWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgPermissionFilter, OrgPermissionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgPermissionSelect>;
} & Omit<UseQueryOptions<{
    orgPermissions: ConnectionResult<InferSelectResult<OrgPermissionWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control
 *
 * @example
 * ```ts
 * const data = await fetchOrgPermissionsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchOrgPermissionsQuery<S extends OrgPermissionSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgPermissionFilter, OrgPermissionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgPermissionSelect>;
}): Promise<{
    orgPermissions: ConnectionResult<InferSelectResult<OrgPermissionWithRelations, S>>;
}>;
/**
 * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control
 *
 * @example
 * ```ts
 * await prefetchOrgPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchOrgPermissionsQuery<S extends OrgPermissionSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgPermissionFilter, OrgPermissionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgPermissionSelect>;
}): Promise<void>;
