import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient"; import * as core from "../../../../core"; import * as Extend from "../../../index"; export declare namespace EditSchemasClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class EditSchemasClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options: EditSchemasClient.Options); /** * Detect fields in a PDF form and synchronously return an edit schema payload. * * Use this endpoint when you want Extend to bootstrap an `EditRootJSON` schema from an existing form, optionally mapping an existing schema onto the detected fields. * * This endpoint returns the generated schema directly. There are no schema generation run resources to poll or delete. * * For more details, see the [Generate Edit Schema guide](https://docs.extend.ai/2026-02-09/product/editing/generate-edit-schema) and the [Edit File guide](https://docs.extend.ai/2026-02-09/product/editing/edit). * * @param {Extend.EditSchemasGenerateRequest} request * @param {EditSchemasClient.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.editSchemas.generate({ * file: { * url: "https://example.com/form.pdf" * }, * config: { * instructions: "Detect the form fields and use human-readable field names.", * advancedOptions: { * radioEnumsEnabled: true * } * } * }) */ generate(request: Extend.EditSchemasGenerateRequest, requestOptions?: EditSchemasClient.RequestOptions): core.HttpResponsePromise; private __generate; }