/**
 * Records of ownership transfers and grants between members
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appOwnerGrantQueryKey: (id: string | number) => readonly ["appownergrant", "detail", string | number];
/**
 * Records of ownership transfers and grants between members
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppOwnerGrantQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAppOwnerGrantQuery<S extends AppOwnerGrantSelect, TData = {
    appOwnerGrant: InferSelectResult<AppOwnerGrantWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppOwnerGrantSelect>;
} & Omit<UseQueryOptions<{
    appOwnerGrant: InferSelectResult<AppOwnerGrantWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Records of ownership transfers and grants between members
 *
 * @example
 * ```ts
 * const data = await fetchAppOwnerGrantQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAppOwnerGrantQuery<S extends AppOwnerGrantSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppOwnerGrantSelect>;
}): Promise<{
    appOwnerGrant: InferSelectResult<AppOwnerGrantWithRelations, S> | null;
}>;
/**
 * Records of ownership transfers and grants between members
 *
 * @example
 * ```ts
 * await prefetchAppOwnerGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAppOwnerGrantQuery<S extends AppOwnerGrantSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppOwnerGrantSelect>;
}): Promise<void>;
