import * as z from "zod";
import * as components from "../components/index.js";
import { S2Error } from "./s2error.js";
export type TailResponseData = {
    /**
     * Position of a record in a stream.
     */
    tail: components.StreamPosition;
};
export declare class TailResponse extends S2Error {
    /**
     * Position of a record in a stream.
     */
    tail: components.StreamPosition;
    /** The original data that was passed to this error instance. */
    data$: TailResponseData;
    constructor(err: TailResponseData, httpMeta: {
        response: Response;
        request: Request;
        body: string;
    });
}
/** @internal */
export declare const TailResponse$inboundSchema: z.ZodType<TailResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type TailResponse$Outbound = {
    tail: components.StreamPosition$Outbound;
};
/** @internal */
export declare const TailResponse$outboundSchema: z.ZodType<TailResponse$Outbound, z.ZodTypeDef, TailResponse>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace TailResponse$ {
    /** @deprecated use `TailResponse$inboundSchema` instead. */
    const inboundSchema: z.ZodType<TailResponse, z.ZodTypeDef, unknown>;
    /** @deprecated use `TailResponse$outboundSchema` instead. */
    const outboundSchema: z.ZodType<TailResponse$Outbound, z.ZodTypeDef, TailResponse>;
    /** @deprecated use `TailResponse$Outbound` instead. */
    type Outbound = TailResponse$Outbound;
}
//# sourceMappingURL=tailresponse.d.ts.map