/**
 * 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 { ListSelectionConfig } from '../selection';
import type { AppPermissionDefaultPermissionSelect, AppPermissionDefaultPermissionWithRelations, AppPermissionDefaultPermissionFilter, AppPermissionDefaultPermissionOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { AppPermissionDefaultPermissionSelect, AppPermissionDefaultPermissionWithRelations, AppPermissionDefaultPermissionFilter, AppPermissionDefaultPermissionOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appPermissionDefaultPermissionsQueryKey: (variables?: object) => readonly ["apppermissiondefaultpermission", "list", object];
/**
 * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppPermissionDefaultPermissionsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useAppPermissionDefaultPermissionsQuery<S extends AppPermissionDefaultPermissionSelect, TData = {
    appPermissionDefaultPermissions: ConnectionResult<InferSelectResult<AppPermissionDefaultPermissionWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppPermissionDefaultPermissionFilter, AppPermissionDefaultPermissionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppPermissionDefaultPermissionSelect>;
} & Omit<UseQueryOptions<{
    appPermissionDefaultPermissions: ConnectionResult<InferSelectResult<AppPermissionDefaultPermissionWithRelations, S>>;
}, 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 fetchAppPermissionDefaultPermissionsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchAppPermissionDefaultPermissionsQuery<S extends AppPermissionDefaultPermissionSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppPermissionDefaultPermissionFilter, AppPermissionDefaultPermissionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppPermissionDefaultPermissionSelect>;
}): Promise<{
    appPermissionDefaultPermissions: ConnectionResult<InferSelectResult<AppPermissionDefaultPermissionWithRelations, S>>;
}>;
/**
 * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
 *
 * @example
 * ```ts
 * await prefetchAppPermissionDefaultPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchAppPermissionDefaultPermissionsQuery<S extends AppPermissionDefaultPermissionSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppPermissionDefaultPermissionFilter, AppPermissionDefaultPermissionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppPermissionDefaultPermissionSelect>;
}): Promise<void>;
