/**
 * 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 { OrgPermissionDefaultPermissionSelect, OrgPermissionDefaultPermissionWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { OrgPermissionDefaultPermissionSelect, OrgPermissionDefaultPermissionWithRelations, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const orgPermissionDefaultPermissionQueryKey: (id: string | number) => readonly ["orgpermissiondefaultpermission", "detail", string | number];
/**
 * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useOrgPermissionDefaultPermissionQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useOrgPermissionDefaultPermissionQuery<S extends OrgPermissionDefaultPermissionSelect, TData = {
    orgPermissionDefaultPermission: InferSelectResult<OrgPermissionDefaultPermissionWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgPermissionDefaultPermissionSelect>;
} & Omit<UseQueryOptions<{
    orgPermissionDefaultPermission: InferSelectResult<OrgPermissionDefaultPermissionWithRelations, 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 fetchOrgPermissionDefaultPermissionQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchOrgPermissionDefaultPermissionQuery<S extends OrgPermissionDefaultPermissionSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgPermissionDefaultPermissionSelect>;
}): Promise<{
    orgPermissionDefaultPermission: InferSelectResult<OrgPermissionDefaultPermissionWithRelations, S> | null;
}>;
/**
 * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask
 *
 * @example
 * ```ts
 * await prefetchOrgPermissionDefaultPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchOrgPermissionDefaultPermissionQuery<S extends OrgPermissionDefaultPermissionSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgPermissionDefaultPermissionSelect>;
}): Promise<void>;
