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 set to 0, the stream will have infinite retention.
 */
export type Age = {
    /**
     * Age in seconds for automatic trimming of records older than this threshold.
     *
     * @remarks
     * If set to 0, the stream will have infinite retention.
     */
    age: number;
};
/**
 * Retention policy for the stream.
 *
 * @remarks
 * If unspecified, the default is to retain records for 7 days.
 */
export type RetentionPolicy = Age;
/** @internal */
export declare const Age$inboundSchema: z.ZodType<Age, z.ZodTypeDef, unknown>;
/** @internal */
export type Age$Outbound = {
    age: number;
};
/** @internal */
export declare const Age$outboundSchema: z.ZodType<Age$Outbound, z.ZodTypeDef, Age>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Age$ {
    /** @deprecated use `Age$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Age, z.ZodTypeDef, unknown>;
    /** @deprecated use `Age$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Age$Outbound, z.ZodTypeDef, Age>;
    /** @deprecated use `Age$Outbound` instead. */
    type Outbound = Age$Outbound;
}
export declare function ageToJSON(age: Age): string;
export declare function ageFromJSON(jsonString: string): SafeParseResult<Age, SDKValidationError>;
/** @internal */
export declare const RetentionPolicy$inboundSchema: z.ZodType<RetentionPolicy, z.ZodTypeDef, unknown>;
/** @internal */
export type RetentionPolicy$Outbound = Age$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<Age, z.ZodTypeDef, unknown>;
    /** @deprecated use `RetentionPolicy$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Age$Outbound, z.ZodTypeDef, Age>;
    /** @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