import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { SequencedRecord, SequencedRecord$Outbound } from "./sequencedrecord.js";
import { StreamPosition, StreamPosition$Outbound } from "./streamposition.js";
export type ReadBatch = {
    /**
     * Records that are durably sequenced on the stream, retrieved based on the requested criteria.
     *
     * @remarks
     * This can only be empty in response to a regular (non-SSE) read, if the request cannot be satisfied without violating an explicit limit.
     */
    records: Array<SequencedRecord>;
    tail?: StreamPosition | null | undefined;
};
/** @internal */
export declare const ReadBatch$inboundSchema: z.ZodType<ReadBatch, z.ZodTypeDef, unknown>;
/** @internal */
export type ReadBatch$Outbound = {
    records: Array<SequencedRecord$Outbound>;
    tail?: StreamPosition$Outbound | null | undefined;
};
/** @internal */
export declare const ReadBatch$outboundSchema: z.ZodType<ReadBatch$Outbound, z.ZodTypeDef, ReadBatch>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace ReadBatch$ {
    /** @deprecated use `ReadBatch$inboundSchema` instead. */
    const inboundSchema: z.ZodType<ReadBatch, z.ZodTypeDef, unknown>;
    /** @deprecated use `ReadBatch$outboundSchema` instead. */
    const outboundSchema: z.ZodType<ReadBatch$Outbound, z.ZodTypeDef, ReadBatch>;
    /** @deprecated use `ReadBatch$Outbound` instead. */
    type Outbound = ReadBatch$Outbound;
}
export declare function readBatchToJSON(readBatch: ReadBatch): string;
export declare function readBatchFromJSON(jsonString: string): SafeParseResult<ReadBatch, SDKValidationError>;
//# sourceMappingURL=readbatch.d.ts.map