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 ClientAuthenticationCreateTokenMutationVariables = { options?: RequestOptions; }; export type ClientAuthenticationCreateTokenMutationData = components.CreateAuthTokenResponse; export type ClientAuthenticationCreateTokenMutationError = GleanBaseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Create authentication token * * @remarks * Creates an authentication token for the authenticated user. These are * specifically intended to be used with the [Web SDK](https://developers.glean.com/web). * * Note: The tokens generated from this endpoint are **not** valid tokens * for use with the Client API (e.g. `/rest/api/v1/*`). */ export declare function useClientAuthenticationCreateTokenMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyClientAuthenticationCreateToken(): MutationKey; export declare function buildClientAuthenticationCreateTokenMutation(client$: GleanCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: ClientAuthenticationCreateTokenMutationVariables) => Promise; }; //# sourceMappingURL=clientAuthenticationCreateToken.d.ts.map