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 IndexingPermissionsDeleteUserMutationVariables = { request: components.DeleteUserRequest; options?: RequestOptions; }; export type IndexingPermissionsDeleteUserMutationData = void; export type IndexingPermissionsDeleteUserMutationError = GleanBaseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Delete user * * @remarks * Delete the user from the datasource. Silently succeeds if user is not present. * Note: All memberships associated with the deleted user will also be deleted. */ export declare function useIndexingPermissionsDeleteUserMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyIndexingPermissionsDeleteUser(): MutationKey; export declare function buildIndexingPermissionsDeleteUserMutation(client$: GleanCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: IndexingPermissionsDeleteUserMutationVariables) => Promise; }; //# sourceMappingURL=indexingPermissionsDeleteUser.d.ts.map