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