/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments.mjs"; import * as core from "../../../../core/index.mjs"; import * as FernAI from "../../../index.mjs"; export declare namespace Index { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; token?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ headers?: Record | undefined>; } } export declare class Index { protected readonly _options: Index.Options; constructor(_options?: Index.Options); /** * @param {string} domain * @param {Index.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.index.reconstructQueryIndex("domain") */ reconstructQueryIndex(domain: string, requestOptions?: Index.RequestOptions): core.HttpResponsePromise; private __reconstructQueryIndex; /** * @param {string} domain * @param {FernAI.SyncIndexRequest} request * @param {Index.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.index.syncIndexToQueryIndex("domain", { * index_name: "index_name" * }) */ syncIndexToQueryIndex(domain: string, request: FernAI.SyncIndexRequest, requestOptions?: Index.RequestOptions): core.HttpResponsePromise; private __syncIndexToQueryIndex; /** * @param {string} domain * @param {FernAI.SyncIndexIncrementalRequest} request * @param {Index.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.index.syncIndexToQueryIndexIncremental("domain", { * index_name: "index_name", * parent_ids: ["parent_ids"] * }) */ syncIndexToQueryIndexIncremental(domain: string, request: FernAI.SyncIndexIncrementalRequest, requestOptions?: Index.RequestOptions): core.HttpResponsePromise; private __syncIndexToQueryIndexIncremental; /** * @param {string} jobId * @param {Index.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.index.getJobStatus("job_id") */ getJobStatus(jobId: string, requestOptions?: Index.RequestOptions): core.HttpResponsePromise; private __getJobStatus; protected _getAuthorizationHeader(): Promise; }