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 IndexingShortcutsBulkIndexMutationVariables = { request: components.BulkIndexShortcutsRequest; options?: RequestOptions; }; export type IndexingShortcutsBulkIndexMutationData = void; export type IndexingShortcutsBulkIndexMutationError = GleanBaseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Bulk index external shortcuts * * @remarks * Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that would be hosted by Glean, please use the `/uploadshortcuts` endpoint. For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to [this](https://docs.glean.com/user-guide/knowledge/go-links/how-go-links-work) page. */ export declare function useIndexingShortcutsBulkIndexMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyIndexingShortcutsBulkIndex(): MutationKey; export declare function buildIndexingShortcutsBulkIndexMutation(client$: GleanCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: IndexingShortcutsBulkIndexMutationVariables) => Promise; }; //# sourceMappingURL=indexingShortcutsBulkIndex.d.ts.map