/**
 * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { AppPermissionDefaultPermissionSelect, AppPermissionDefaultPermissionWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AppPermissionDefaultPermissionSelect, AppPermissionDefaultPermissionWithRelations, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appPermissionDefaultPermissionQueryKey: (id: string | number) => readonly ["apppermissiondefaultpermission", "detail", string | number];
/**
 * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppPermissionDefaultPermissionQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAppPermissionDefaultPermissionQuery<S extends AppPermissionDefaultPermissionSelect, TData = {
    appPermissionDefaultPermission: InferSelectResult<AppPermissionDefaultPermissionWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppPermissionDefaultPermissionSelect>;
} & Omit<UseQueryOptions<{
    appPermissionDefaultPermission: InferSelectResult<AppPermissionDefaultPermissionWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
 *
 * @example
 * ```ts
 * const data = await fetchAppPermissionDefaultPermissionQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAppPermissionDefaultPermissionQuery<S extends AppPermissionDefaultPermissionSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppPermissionDefaultPermissionSelect>;
}): Promise<{
    appPermissionDefaultPermission: InferSelectResult<AppPermissionDefaultPermissionWithRelations, S> | null;
}>;
/**
 * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
 *
 * @example
 * ```ts
 * await prefetchAppPermissionDefaultPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAppPermissionDefaultPermissionQuery<S extends AppPermissionDefaultPermissionSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppPermissionDefaultPermissionSelect>;
}): Promise<void>;
