import { type JsonObject } from '../depot/shape.js'; /** depot.core.v1.ProjectUsage, as returned by both ListProjectUsage rows and GetProjectUsage. */ export interface ProjectUsage { projectId: string | undefined; buildCount: number | undefined; buildDurationSeconds: number | undefined; layerCacheSizeGb: number | undefined; } /** * GetProjectUsage nests the record under `usage` (per depot/proto, and observed live 2026-09-06); * ListProjectUsage rows are the bare record. Accept both. */ export declare function parseProjectUsage(source: JsonObject): ProjectUsage; export interface UsageWindowInput { readonly days: number; readonly startAt?: string | undefined; readonly endAt?: string | undefined; } /** * The window every usage tool accepts: an explicit startAt/endAt pair (a date-only endAt covers * that whole day) or a "days" look-back from now. Giving only one boundary is refused rather * than guessed at. */ export declare function resolveUsageWindow(input: UsageWindowInput, now?: number): { startAt: string; endAt: string; }; //# sourceMappingURL=usage.d.ts.map