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