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 AuthenticationCheckdatasourceauthMutationVariables = { options?: RequestOptions; }; export type AuthenticationCheckdatasourceauthMutationData = components.CheckDatasourceAuthResponse; export type AuthenticationCheckdatasourceauthMutationError = GleanBaseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Check datasource authorization * * @remarks * Returns all datasource instances that require per-user OAuth authorization * for the authenticated user, along with a transient auth token that can be * appended to auth URLs to complete OAuth flows. * * Clients construct the full OAuth URL by combining the backend base URL, * the `authUrlRelativePath` from each instance, and the transient auth token: * `/?transient_auth_token=`. */ export declare function useAuthenticationCheckdatasourceauthMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyAuthenticationCheckdatasourceauth(): MutationKey; export declare function buildAuthenticationCheckdatasourceauthMutation(client$: GleanCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: AuthenticationCheckdatasourceauthMutationVariables) => Promise; }; //# sourceMappingURL=authenticationCheckdatasourceauth.d.ts.map