/**
 * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { UsageSnapshotSelect, UsageSnapshotWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { UsageSnapshotSelect, UsageSnapshotWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const usageSnapshotQueryKey: (id: string | number) => readonly ["usagesnapshot", "detail", string | number];
/**
 * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useUsageSnapshotQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useUsageSnapshotQuery<S extends UsageSnapshotSelect, TData = {
    usageSnapshot: InferSelectResult<UsageSnapshotWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, UsageSnapshotSelect>;
} & Omit<UseQueryOptions<{
    usageSnapshot: InferSelectResult<UsageSnapshotWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
 *
 * @example
 * ```ts
 * const data = await fetchUsageSnapshotQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchUsageSnapshotQuery<S extends UsageSnapshotSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, UsageSnapshotSelect>;
}): Promise<{
    usageSnapshot: InferSelectResult<UsageSnapshotWithRelations, S> | null;
}>;
/**
 * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
 *
 * @example
 * ```ts
 * await prefetchUsageSnapshotQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchUsageSnapshotQuery<S extends UsageSnapshotSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, UsageSnapshotSelect>;
}): Promise<void>;
