import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
/**
 * Age in seconds for automatic trimming of records older than this threshold.
 *
 * @remarks
 * If this is set to 0, the stream will have infinite retention.
 */
export type One = {
    /**
     * Age in seconds for automatic trimming of records older than this threshold.
     *
     * @remarks
     * If this is set to 0, the stream will have infinite retention.
     */
    age: number;
};
export type RetentionPolicy = One;
/** @internal */
export declare const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown>;
/** @internal */
export type One$Outbound = {
    age: number;
};
/** @internal */
export declare const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace One$ {
    /** @deprecated use `One$inboundSchema` instead. */
    const inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown>;
    /** @deprecated use `One$outboundSchema` instead. */
    const outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One>;
    /** @deprecated use `One$Outbound` instead. */
    type Outbound = One$Outbound;
}
export declare function oneToJSON(one: One): string;
export declare function oneFromJSON(jsonString: string): SafeParseResult<One, SDKValidationError>;
/** @internal */
export declare const RetentionPolicy$inboundSchema: z.ZodType<RetentionPolicy, z.ZodTypeDef, unknown>;
/** @internal */
export type RetentionPolicy$Outbound = One$Outbound;
/** @internal */
export declare const RetentionPolicy$outboundSchema: z.ZodType<RetentionPolicy$Outbound, z.ZodTypeDef, RetentionPolicy>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace RetentionPolicy$ {
    /** @deprecated use `RetentionPolicy$inboundSchema` instead. */
    const inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown>;
    /** @deprecated use `RetentionPolicy$outboundSchema` instead. */
    const outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One>;
    /** @deprecated use `RetentionPolicy$Outbound` instead. */
    type Outbound = RetentionPolicy$Outbound;
}
export declare function retentionPolicyToJSON(retentionPolicy: RetentionPolicy): string;
export declare function retentionPolicyFromJSON(jsonString: string): SafeParseResult<RetentionPolicy, SDKValidationError>;
//# sourceMappingURL=retentionpolicy.d.ts.map