import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { MetricUnit } from "./metricunit.js";
import { TimeseriesInterval } from "./timeseriesinterval.js";
export type Values = number | number;
export type Accumulation = {
    bucketLength: TimeseriesInterval;
    /**
     * Timeseries name.
     */
    name: string;
    unit: MetricUnit;
    /**
     * Timeseries values.
     *
     * @remarks
     * Each element is a tuple of a timestamp in Unix epoch seconds and a data point.
     * The data point represents the accumulated value for a bucket of time starting at the provided timestamp, lasting for the duration of the `bucket_length` parameter.
     */
    values: Array<Array<number | number>>;
};
/** @internal */
export declare const Values$inboundSchema: z.ZodType<Values, z.ZodTypeDef, unknown>;
/** @internal */
export type Values$Outbound = number | number;
/** @internal */
export declare const Values$outboundSchema: z.ZodType<Values$Outbound, z.ZodTypeDef, Values>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Values$ {
    /** @deprecated use `Values$inboundSchema` instead. */
    const inboundSchema: z.ZodType<number, z.ZodTypeDef, unknown>;
    /** @deprecated use `Values$outboundSchema` instead. */
    const outboundSchema: z.ZodType<number, z.ZodTypeDef, number>;
    /** @deprecated use `Values$Outbound` instead. */
    type Outbound = Values$Outbound;
}
export declare function valuesToJSON(values: Values): string;
export declare function valuesFromJSON(jsonString: string): SafeParseResult<Values, SDKValidationError>;
/** @internal */
export declare const Accumulation$inboundSchema: z.ZodType<Accumulation, z.ZodTypeDef, unknown>;
/** @internal */
export type Accumulation$Outbound = {
    bucket_length: string;
    name: string;
    unit: string;
    values: Array<Array<number | number>>;
};
/** @internal */
export declare const Accumulation$outboundSchema: z.ZodType<Accumulation$Outbound, z.ZodTypeDef, Accumulation>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Accumulation$ {
    /** @deprecated use `Accumulation$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Accumulation, z.ZodTypeDef, unknown>;
    /** @deprecated use `Accumulation$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Accumulation$Outbound, z.ZodTypeDef, Accumulation>;
    /** @deprecated use `Accumulation$Outbound` instead. */
    type Outbound = Accumulation$Outbound;
}
export declare function accumulationToJSON(accumulation: Accumulation): string;
export declare function accumulationFromJSON(jsonString: string): SafeParseResult<Accumulation, SDKValidationError>;
//# sourceMappingURL=accumulation.d.ts.map