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