/**
 * List query hook for DefaultPrivilege
 * @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 { DefaultPrivilegeSelect, DefaultPrivilegeWithRelations, DefaultPrivilegeFilter, DefaultPrivilegeOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { DefaultPrivilegeSelect, DefaultPrivilegeWithRelations, DefaultPrivilegeFilter, DefaultPrivilegeOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const defaultPrivilegesQueryKey: (variables?: object) => readonly ["defaultprivilege", "list", object];
/**
 * Query hook for fetching DefaultPrivilege list
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useDefaultPrivilegesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useDefaultPrivilegesQuery<S extends DefaultPrivilegeSelect, TData = {
    defaultPrivileges: ConnectionResult<InferSelectResult<DefaultPrivilegeWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, DefaultPrivilegeFilter, DefaultPrivilegeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DefaultPrivilegeSelect>;
} & Omit<UseQueryOptions<{
    defaultPrivileges: ConnectionResult<InferSelectResult<DefaultPrivilegeWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch DefaultPrivilege list without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchDefaultPrivilegesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchDefaultPrivilegesQuery<S extends DefaultPrivilegeSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, DefaultPrivilegeFilter, DefaultPrivilegeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DefaultPrivilegeSelect>;
}): Promise<{
    defaultPrivileges: ConnectionResult<InferSelectResult<DefaultPrivilegeWithRelations, S>>;
}>;
/**
 * Prefetch DefaultPrivilege list for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchDefaultPrivilegesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchDefaultPrivilegesQuery<S extends DefaultPrivilegeSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, DefaultPrivilegeFilter, DefaultPrivilegeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, DefaultPrivilegeSelect>;
}): Promise<void>;
