import * as z from "zod"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { UsageResult, UsageResult$Outbound } from "./usageresult.js"; export type UsageBucket = { /** * RFC3339 timestamp for bucket start */ startingAt: string; /** * RFC3339 timestamp for bucket end */ endingAt: string; /** * Array of usage results within this time bucket */ results: Array; }; /** @internal */ export declare const UsageBucket$inboundSchema: z.ZodType; /** @internal */ export type UsageBucket$Outbound = { starting_at: string; ending_at: string; results: Array; }; /** @internal */ export declare const UsageBucket$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace UsageBucket$ { /** @deprecated use `UsageBucket$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `UsageBucket$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `UsageBucket$Outbound` instead. */ type Outbound = UsageBucket$Outbound; } export declare function usageBucketToJSON(usageBucket: UsageBucket): string; export declare function usageBucketFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=usagebucket.d.ts.map