import * as z from "zod";
import { EventStream } from "../../lib/event-streams.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import * as components from "../components/index.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export declare const ReadServerList: readonly ["https://{basin}.b.aws.s2.dev/v1"];
export type ReadRequest = {
    /**
     * Stream name.
     */
    stream: string;
    /**
     * Defines the interpretation of record data (header name, header value, and body) with the JSON content type.
     *
     * @remarks
     * Use `raw` (default) for efficient transmission and storage of Unicode data — storage will be in UTF-8.
     * Use `base64` for safe transmission with efficient storage of binary data.
     */
    s2Format?: components.S2Format | undefined;
    /**
     * Start from a sequence number.
     */
    seqNum?: number | undefined;
    /**
     * Start from a timestamp.
     */
    timestamp?: number | undefined;
    /**
     * Start from number of records before the next sequence number.
     */
    tailOffset?: number | undefined;
    /**
     * Limit total records to return.
     *
     * @remarks
     * If this is provided, tailing will be disabled.
     */
    count?: number | undefined;
    /**
     * Limit total metered bytes to return.
     *
     * @remarks
     * If this is provided, tailing will be disabled.
     */
    bytes?: number | undefined;
    /**
     * Exclusive timestamp to read until.
     *
     * @remarks
     * If this is provided, tailing will be disabled.
     */
    until?: number | undefined;
    /**
     * Clamp the start position at the tail position.
     */
    clamp?: boolean | undefined;
    /**
     * Basin name for basin-specific endpoints
     */
    s2Basin: string;
};
export type ReadResponse = components.ReadBatch | EventStream<components.ReadEvent>;
/** @internal */
export declare const ReadRequest$inboundSchema: z.ZodType<ReadRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type ReadRequest$Outbound = {
    stream: string;
    "s2-format"?: string | undefined;
    seq_num?: number | undefined;
    timestamp?: number | undefined;
    tail_offset?: number | undefined;
    count?: number | undefined;
    bytes?: number | undefined;
    until?: number | undefined;
    clamp?: boolean | undefined;
    "s2-basin": string;
};
/** @internal */
export declare const ReadRequest$outboundSchema: z.ZodType<ReadRequest$Outbound, z.ZodTypeDef, ReadRequest>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace ReadRequest$ {
    /** @deprecated use `ReadRequest$inboundSchema` instead. */
    const inboundSchema: z.ZodType<ReadRequest, z.ZodTypeDef, unknown>;
    /** @deprecated use `ReadRequest$outboundSchema` instead. */
    const outboundSchema: z.ZodType<ReadRequest$Outbound, z.ZodTypeDef, ReadRequest>;
    /** @deprecated use `ReadRequest$Outbound` instead. */
    type Outbound = ReadRequest$Outbound;
}
export declare function readRequestToJSON(readRequest: ReadRequest): string;
export declare function readRequestFromJSON(jsonString: string): SafeParseResult<ReadRequest, SDKValidationError>;
/** @internal */
export declare const ReadResponse$inboundSchema: z.ZodType<ReadResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type ReadResponse$Outbound = components.ReadBatch$Outbound | never;
/** @internal */
export declare const ReadResponse$outboundSchema: z.ZodType<ReadResponse$Outbound, z.ZodTypeDef, ReadResponse>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace ReadResponse$ {
    /** @deprecated use `ReadResponse$inboundSchema` instead. */
    const inboundSchema: z.ZodType<ReadResponse, z.ZodTypeDef, unknown>;
    /** @deprecated use `ReadResponse$outboundSchema` instead. */
    const outboundSchema: z.ZodType<components.ReadBatch$Outbound, z.ZodTypeDef, ReadResponse>;
    /** @deprecated use `ReadResponse$Outbound` instead. */
    type Outbound = ReadResponse$Outbound;
}
export declare function readResponseToJSON(readResponse: ReadResponse): string;
export declare function readResponseFromJSON(jsonString: string): SafeParseResult<ReadResponse, SDKValidationError>;
//# sourceMappingURL=read.d.ts.map