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