/**
 * App-scoped PGP-encrypted internal secrets store. No namespace_module dependency and no K8s synchronization. Used by identity_providers_module for OAuth2 client_secret storage.
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { InternalSecretsModuleSelect, InternalSecretsModuleWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { InternalSecretsModuleSelect, InternalSecretsModuleWithRelations, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const internalSecretsModuleQueryKey: (id: string | number) => readonly ["internalsecretsmodule", "detail", string | number];
/**
 * App-scoped PGP-encrypted internal secrets store. No namespace_module dependency and no K8s synchronization. Used by identity_providers_module for OAuth2 client_secret storage.
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useInternalSecretsModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useInternalSecretsModuleQuery<S extends InternalSecretsModuleSelect, TData = {
    internalSecretsModule: InferSelectResult<InternalSecretsModuleWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, InternalSecretsModuleSelect>;
} & Omit<UseQueryOptions<{
    internalSecretsModule: InferSelectResult<InternalSecretsModuleWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * App-scoped PGP-encrypted internal secrets store. No namespace_module dependency and no K8s synchronization. Used by identity_providers_module for OAuth2 client_secret storage.
 *
 * @example
 * ```ts
 * const data = await fetchInternalSecretsModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchInternalSecretsModuleQuery<S extends InternalSecretsModuleSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, InternalSecretsModuleSelect>;
}): Promise<{
    internalSecretsModule: InferSelectResult<InternalSecretsModuleWithRelations, S> | null;
}>;
/**
 * App-scoped PGP-encrypted internal secrets store. No namespace_module dependency and no K8s synchronization. Used by identity_providers_module for OAuth2 client_secret storage.
 *
 * @example
 * ```ts
 * await prefetchInternalSecretsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchInternalSecretsModuleQuery<S extends InternalSecretsModuleSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, InternalSecretsModuleSelect>;
}): Promise<void>;
