import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query"; import { GustoEmbeddedError } from "../models/errors/gustoembeddederror.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 { GetV1TokenInfoRequest, XGustoAPIVersion } from "../models/operations/getv1tokeninfo.js"; import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js"; import { buildIntrospectionGetInfoQuery, IntrospectionGetInfoQueryData, prefetchIntrospectionGetInfo, queryKeyIntrospectionGetInfo } from "./introspectionGetInfo.core.js"; export { buildIntrospectionGetInfoQuery, type IntrospectionGetInfoQueryData, prefetchIntrospectionGetInfo, queryKeyIntrospectionGetInfo, }; export type IntrospectionGetInfoQueryError = GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Get info about the current access token * * @remarks * Returns scope and resource information associated with the current access token. Use this endpoint to verify the following for the current access token: * * Resource (company, employee, contractor, or application) and resource owner * * Access level */ export declare function useIntrospectionGetInfo(request: GetV1TokenInfoRequest, options?: QueryHookOptions): UseQueryResult; /** * Get info about the current access token * * @remarks * Returns scope and resource information associated with the current access token. Use this endpoint to verify the following for the current access token: * * Resource (company, employee, contractor, or application) and resource owner * * Access level */ export declare function useIntrospectionGetInfoSuspense(request: GetV1TokenInfoRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setIntrospectionGetInfoData(client: QueryClient, queryKeyBase: [ parameters: { xGustoAPIVersion?: XGustoAPIVersion | undefined; } ], data: IntrospectionGetInfoQueryData): IntrospectionGetInfoQueryData | undefined; export declare function invalidateIntrospectionGetInfo(client: QueryClient, queryKeyBase: TupleToPrefixes<[ parameters: { xGustoAPIVersion?: XGustoAPIVersion | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllIntrospectionGetInfo(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=introspectionGetInfo.d.ts.map