/** * GraphQL `aggregatedPartCounts` argument builder (inline `args: { ... }` fragment). * `machineRef`, `metricKey`, `windowStartAt`, and `windowEndAt` are required in `args`. * Optional tuning: `bucketWidth`, `bucketResolution`, and `windowWidth` are passed through when set (see MM GraphQL schema). * * @see https://developers.machinemetrics.com/docs/graphql/api */ import type { MMAggregatedPartCountBucket } from "./types/mm-response-interfaces.js"; export declare const MM_DEFAULT_PART_COUNT_METRIC_KEY: "part-count"; export declare function buildAggregatedPartCountsArgsFragment(options: { machineRef: number; metricKey: string; windowStartAt: string; windowEndAt: string; bucketWidth?: string; bucketResolution?: number; windowWidth?: string; }): string; export declare function buildAggregatedPartCountsQuery(options: { machineRef: number; metricKey: string; windowStartAt: string; windowEndAt: string; bucketWidth?: string; bucketResolution?: number; windowWidth?: string; }): string; /** * Parses one `aggregatedPartCounts` bucket from JSON. * Per MM GraphQL, each returned row includes non-null strings for `metricKey`, `bucketStartAt`, `bucketEndAt`, and `bucketWidth` (width may be empty); absence, null, or wrong types throw. */ export declare function parseAggregatedPartCountBucketRow(raw: unknown): MMAggregatedPartCountBucket; //# sourceMappingURL=mm-aggregated-part-counts.d.ts.map