import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { Accumulation, Accumulation$Outbound } from "./accumulation.js";
import { Gauge, Gauge$Outbound } from "./gauge.js";
import { Label, Label$Outbound } from "./label.js";
import { Scalar, Scalar$Outbound } from "./scalar.js";
/**
 * Set of string labels.
 */
export type Four = {
    label: Label;
};
/**
 * Named series of `(timestamp, value)` points each representing an instantaneous value.
 */
export type Three = {
    gauge: Gauge;
};
/**
 * Named series of `(timestamp, value)` points representing an accumulation over a specified
 *
 * @remarks
 * bucket.
 */
export type Two = {
    accumulation: Accumulation;
};
/**
 * Single named value.
 */
export type Metric1 = {
    scalar: Scalar;
};
export type Metric = Metric1 | Two | Three | Four;
/** @internal */
export declare const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown>;
/** @internal */
export type Four$Outbound = {
    label: Label$Outbound;
};
/** @internal */
export declare const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Four$ {
    /** @deprecated use `Four$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown>;
    /** @deprecated use `Four$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four>;
    /** @deprecated use `Four$Outbound` instead. */
    type Outbound = Four$Outbound;
}
export declare function fourToJSON(four: Four): string;
export declare function fourFromJSON(jsonString: string): SafeParseResult<Four, SDKValidationError>;
/** @internal */
export declare const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown>;
/** @internal */
export type Three$Outbound = {
    gauge: Gauge$Outbound;
};
/** @internal */
export declare const Three$outboundSchema: z.ZodType<Three$Outbound, z.ZodTypeDef, Three>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Three$ {
    /** @deprecated use `Three$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown>;
    /** @deprecated use `Three$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Three$Outbound, z.ZodTypeDef, Three>;
    /** @deprecated use `Three$Outbound` instead. */
    type Outbound = Three$Outbound;
}
export declare function threeToJSON(three: Three): string;
export declare function threeFromJSON(jsonString: string): SafeParseResult<Three, SDKValidationError>;
/** @internal */
export declare const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown>;
/** @internal */
export type Two$Outbound = {
    accumulation: Accumulation$Outbound;
};
/** @internal */
export declare const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Two$ {
    /** @deprecated use `Two$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown>;
    /** @deprecated use `Two$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two>;
    /** @deprecated use `Two$Outbound` instead. */
    type Outbound = Two$Outbound;
}
export declare function twoToJSON(two: Two): string;
export declare function twoFromJSON(jsonString: string): SafeParseResult<Two, SDKValidationError>;
/** @internal */
export declare const Metric1$inboundSchema: z.ZodType<Metric1, z.ZodTypeDef, unknown>;
/** @internal */
export type Metric1$Outbound = {
    scalar: Scalar$Outbound;
};
/** @internal */
export declare const Metric1$outboundSchema: z.ZodType<Metric1$Outbound, z.ZodTypeDef, Metric1>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Metric1$ {
    /** @deprecated use `Metric1$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Metric1, z.ZodTypeDef, unknown>;
    /** @deprecated use `Metric1$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Metric1$Outbound, z.ZodTypeDef, Metric1>;
    /** @deprecated use `Metric1$Outbound` instead. */
    type Outbound = Metric1$Outbound;
}
export declare function metric1ToJSON(metric1: Metric1): string;
export declare function metric1FromJSON(jsonString: string): SafeParseResult<Metric1, SDKValidationError>;
/** @internal */
export declare const Metric$inboundSchema: z.ZodType<Metric, z.ZodTypeDef, unknown>;
/** @internal */
export type Metric$Outbound = Metric1$Outbound | Two$Outbound | Three$Outbound | Four$Outbound;
/** @internal */
export declare const Metric$outboundSchema: z.ZodType<Metric$Outbound, z.ZodTypeDef, Metric>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Metric$ {
    /** @deprecated use `Metric$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Metric, z.ZodTypeDef, unknown>;
    /** @deprecated use `Metric$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Metric$Outbound, z.ZodTypeDef, Metric>;
    /** @deprecated use `Metric$Outbound` instead. */
    type Outbound = Metric$Outbound;
}
export declare function metricToJSON(metric: Metric): string;
export declare function metricFromJSON(jsonString: string): SafeParseResult<Metric, SDKValidationError>;
//# sourceMappingURL=metric.d.ts.map