import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient"; import * as core from "../../../../core"; import * as Extend from "../../../index"; export declare namespace SplittersClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class SplittersClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options: SplittersClient.Options); /** * List all splitters. * * Returns a summary of each splitter. Use `GET /splitters/{id}` to retrieve the full object including `draftVersion`. * * @param {Extend.SplittersListRequest} request * @param {SplittersClient.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.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.splitters.list({ * nextPageToken: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ=" * }) */ list(request?: Extend.SplittersListRequest, requestOptions?: SplittersClient.RequestOptions): core.HttpResponsePromise; private __list; /** * Create a new splitter. * * @param {Extend.SplittersCreateRequest} request * @param {SplittersClient.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.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.splitters.create({ * name: "Document Splitter", * config: { * splitClassifications: [{ * id: "invoice", * type: "invoice", * description: "An invoice or bill for goods or services", * identifierKey: "invoice number from the document header" * }, { * id: "receipt", * type: "receipt", * description: "A receipt confirming payment", * identifierKey: "receipt number" * }, { * id: "other", * type: "other", * description: "Any other document type" * }] * } * }) */ create(request: Extend.SplittersCreateRequest, requestOptions?: SplittersClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Get details of a splitter. * * @param {string} id - The ID of the splitter to get. * * Example: `"spl_Xj8mK2pL9nR4vT7qY5wZ"` * @param {Extend.SplittersRetrieveRequest} request * @param {SplittersClient.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.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.splitters.retrieve("splitter_id_here") */ retrieve(id: string, request?: Extend.SplittersRetrieveRequest, requestOptions?: SplittersClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Update an existing splitter. * * @param {string} id - The ID of the splitter to update. * * Example: `"spl_Xj8mK2pL9nR4vT7qY5wZ"` * @param {Extend.SplittersUpdateRequest} request * @param {SplittersClient.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.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.splitters.update("splitter_id_here", { * name: "Document Splitter v2" * }) */ update(id: string, request?: Extend.SplittersUpdateRequest, requestOptions?: SplittersClient.RequestOptions): core.HttpResponsePromise; private __update; }