import { S2Core } from "../core.js";
import { RequestOptions } from "../lib/sdks.js";
import { APIError } from "../models/errors/apierror.js";
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
import * as errors from "../models/errors/index.js";
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
import * as operations from "../models/operations/index.js";
import { APIPromise } from "../types/async.js";
import { Result } from "../types/fp.js";
export declare enum ReadAcceptEnum {
    applicationJson = "application/json",
    textEventStream = "text/event-stream"
}
/**
 * Retrieve records.
 *
 * @remarks
 * Retrieve a batch of records, or set `Accept: text/event-stream` to stream using server-sent events.
 */
export declare function streamRead(client: S2Core, request: operations.ReadRequest, options?: RequestOptions & {
    acceptHeaderOverride?: ReadAcceptEnum;
}): APIPromise<Result<operations.ReadResponse, errors.ErrorResponse | errors.RetryableError | errors.RetryableError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
//# sourceMappingURL=streamRead.d.ts.map