/**
 * Mobile and native app configuration linked to a site, including store links and identifiers
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { AppSelect, AppWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AppSelect, AppWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appQueryKey: (id: string | number) => readonly ["app", "detail", string | number];
/**
 * Mobile and native app configuration linked to a site, including store links and identifiers
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAppQuery<S extends AppSelect, TData = {
    app: InferSelectResult<AppWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppSelect>;
} & Omit<UseQueryOptions<{
    app: InferSelectResult<AppWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Mobile and native app configuration linked to a site, including store links and identifiers
 *
 * @example
 * ```ts
 * const data = await fetchAppQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAppQuery<S extends AppSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppSelect>;
}): Promise<{
    app: InferSelectResult<AppWithRelations, S> | null;
}>;
/**
 * Mobile and native app configuration linked to a site, including store links and identifiers
 *
 * @example
 * ```ts
 * await prefetchAppQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAppQuery<S extends AppSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppSelect>;
}): Promise<void>;
