/**
 * 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 { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appPermissionQueryKey: (id: string | number) => readonly ["apppermission", "detail", string | number];
/**
 * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppPermissionQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAppPermissionQuery<S extends AppPermissionSelect, TData = {
    appPermission: InferSelectResult<AppPermissionWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppPermissionSelect>;
} & Omit<UseQueryOptions<{
    appPermission: InferSelectResult<AppPermissionWithRelations, S> | null;
}, 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 fetchAppPermissionQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAppPermissionQuery<S extends AppPermissionSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppPermissionSelect>;
}): Promise<{
    appPermission: InferSelectResult<AppPermissionWithRelations, S> | null;
}>;
/**
 * Defines available permissions as named bits within a bitmask, used by the RBAC system for access control
 *
 * @example
 * ```ts
 * await prefetchAppPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAppPermissionQuery<S extends AppPermissionSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppPermissionSelect>;
}): Promise<void>;
