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