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 IndexingDocumentsDebugMutationVariables = { debugDocumentRequest: components.DebugDocumentRequest; datasource: string; options?: RequestOptions; }; export type IndexingDocumentsDebugMutationData = components.DebugDocumentResponse; export type IndexingDocumentsDebugMutationError = GleanBaseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Beta: Get document information * * @remarks * Gives various information that would help in debugging related to a particular document. Currently in beta, might undergo breaking changes without prior notice. * * Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. */ export declare function useIndexingDocumentsDebugMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyIndexingDocumentsDebug(): MutationKey; export declare function buildIndexingDocumentsDebugMutation(client$: GleanCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: IndexingDocumentsDebugMutationVariables) => Promise; }; //# sourceMappingURL=indexingDocumentsDebug.d.ts.map