/**
 * Single item query hook for ConnectedAccountsModule
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { ConnectedAccountsModuleSelect, ConnectedAccountsModuleWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ConnectedAccountsModuleSelect, ConnectedAccountsModuleWithRelations, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const connectedAccountsModuleQueryKey: (id: string | number) => readonly ["connectedaccountsmodule", "detail", string | number];
/**
 * Query hook for fetching a single ConnectedAccountsModule
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useConnectedAccountsModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useConnectedAccountsModuleQuery<S extends ConnectedAccountsModuleSelect, TData = {
    connectedAccountsModule: InferSelectResult<ConnectedAccountsModuleWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ConnectedAccountsModuleSelect>;
} & Omit<UseQueryOptions<{
    connectedAccountsModule: InferSelectResult<ConnectedAccountsModuleWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single ConnectedAccountsModule without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchConnectedAccountsModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchConnectedAccountsModuleQuery<S extends ConnectedAccountsModuleSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ConnectedAccountsModuleSelect>;
}): Promise<{
    connectedAccountsModule: InferSelectResult<ConnectedAccountsModuleWithRelations, S> | null;
}>;
/**
 * Prefetch a single ConnectedAccountsModule for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchConnectedAccountsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchConnectedAccountsModuleQuery<S extends ConnectedAccountsModuleSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ConnectedAccountsModuleSelect>;
}): Promise<void>;
