import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient"; import * as core from "../../../../core"; import * as Extend from "../../../index"; export declare namespace BatchRunsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class BatchRunsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options: BatchRunsClient.Options); /** * Retrieve the status of a batch run by its ID. The `status` field reflects the aggregate state of the batch. * * This is a unified endpoint that works for batches created via any of the batch submission endpoints (`POST /parse_runs/batch`, `POST /extract_runs/batch`, `POST /classify_runs/batch`, `POST /split_runs/batch`). * * | Status | Meaning | * |---|---| * | `PENDING` | Queued, not yet started | * | `PROCESSING` | Runs are actively being processed | * | `PROCESSED` | All runs have completed | * | `FAILED` | The batch encountered a fatal error | * | `CANCELLED` | The batch was cancelled | * * To retrieve individual run results, use the List endpoint for the relevant type filtered by `batchId`: * - `GET /parse_runs?batchId={id}` * - `GET /extract_runs?batchId={id}` * - `GET /classify_runs?batchId={id}` * - `GET /split_runs?batchId={id}` * * @param {string} id - The unique identifier of the batch processor run to retrieve. * * Example: `"bpr_Xj8mK2pL9nR4vT7qY5wZ"` * @param {BatchRunsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.batchRuns.get("bpr_Xj8mK2pL9nR4vT7qY5wZ") */ get(id: string, requestOptions?: BatchRunsClient.RequestOptions): core.HttpResponsePromise; private __get; }