/**
 * 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 { ListSelectionConfig } from '../selection';
import type { UsageSnapshotSelect, UsageSnapshotWithRelations, UsageSnapshotFilter, UsageSnapshotOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { UsageSnapshotSelect, UsageSnapshotWithRelations, UsageSnapshotFilter, UsageSnapshotOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const usageSnapshotsQueryKey: (variables?: object) => readonly ["usagesnapshot", "list", object];
/**
 * 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 } = useUsageSnapshotsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useUsageSnapshotsQuery<S extends UsageSnapshotSelect, TData = {
    usageSnapshots: ConnectionResult<InferSelectResult<UsageSnapshotWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, UsageSnapshotFilter, UsageSnapshotOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, UsageSnapshotSelect>;
} & Omit<UseQueryOptions<{
    usageSnapshots: ConnectionResult<InferSelectResult<UsageSnapshotWithRelations, S>>;
}, 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 fetchUsageSnapshotsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchUsageSnapshotsQuery<S extends UsageSnapshotSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, UsageSnapshotFilter, UsageSnapshotOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, UsageSnapshotSelect>;
}): Promise<{
    usageSnapshots: ConnectionResult<InferSelectResult<UsageSnapshotWithRelations, S>>;
}>;
/**
 * 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 prefetchUsageSnapshotsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchUsageSnapshotsQuery<S extends UsageSnapshotSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, UsageSnapshotFilter, UsageSnapshotOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, UsageSnapshotSelect>;
}): Promise<void>;
