import { MutationKey, UseMutationResult } from "@tanstack/react-query"; import { GleanCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { GleanBaseError } from "../models/errors/gleanbaseerror.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { MutationHookOptions } from "./_types.js"; export type IndexingDocumentsBulkIndexMutationVariables = { request: components.BulkIndexDocumentsRequest; options?: RequestOptions; }; export type IndexingDocumentsBulkIndexMutationData = void; export type IndexingDocumentsBulkIndexMutationError = GleanBaseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Bulk index documents * * @remarks * Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. */ export declare function useIndexingDocumentsBulkIndexMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyIndexingDocumentsBulkIndex(): MutationKey; export declare function buildIndexingDocumentsBulkIndexMutation(client$: GleanCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: IndexingDocumentsBulkIndexMutationVariables) => Promise; }; //# sourceMappingURL=indexingDocumentsBulkIndex.d.ts.map