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 { NotFoundErrorObject } from "../models/errors/notfounderrorobject.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { GetV1WebhookSubscriptionUuidHeaderXGustoAPIVersion, GetV1WebhookSubscriptionUuidRequest, GetV1WebhookSubscriptionUuidSecurity } from "../models/operations/getv1webhooksubscriptionuuid.js"; import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js"; import { buildWebhooksGetSubscriptionQuery, prefetchWebhooksGetSubscription, queryKeyWebhooksGetSubscription, WebhooksGetSubscriptionQueryData } from "./webhooksGetSubscription.core.js"; export { buildWebhooksGetSubscriptionQuery, prefetchWebhooksGetSubscription, queryKeyWebhooksGetSubscription, type WebhooksGetSubscriptionQueryData, }; export type WebhooksGetSubscriptionQueryError = NotFoundErrorObject | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Get a webhook subscription * * @remarks * Returns the Webhook Subscription associated with the provided UUID. * * 📘 System Access Authentication * * This endpoint uses the [Bearer Auth scheme with the system-level access token in the HTTP Authorization header](https://docs.gusto.com/embedded-payroll/docs/system-access) * * scope: `webhook_subscriptions:read` */ export declare function useWebhooksGetSubscription(security: GetV1WebhookSubscriptionUuidSecurity, request: GetV1WebhookSubscriptionUuidRequest, options?: QueryHookOptions): UseQueryResult; /** * Get a webhook subscription * * @remarks * Returns the Webhook Subscription associated with the provided UUID. * * 📘 System Access Authentication * * This endpoint uses the [Bearer Auth scheme with the system-level access token in the HTTP Authorization header](https://docs.gusto.com/embedded-payroll/docs/system-access) * * scope: `webhook_subscriptions:read` */ export declare function useWebhooksGetSubscriptionSuspense(security: GetV1WebhookSubscriptionUuidSecurity, request: GetV1WebhookSubscriptionUuidRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setWebhooksGetSubscriptionData(client: QueryClient, queryKeyBase: [ webhookSubscriptionUuid: string, parameters: { xGustoAPIVersion?: GetV1WebhookSubscriptionUuidHeaderXGustoAPIVersion | undefined; } ], data: WebhooksGetSubscriptionQueryData): WebhooksGetSubscriptionQueryData | undefined; export declare function invalidateWebhooksGetSubscription(client: QueryClient, queryKeyBase: TupleToPrefixes<[ webhookSubscriptionUuid: string, parameters: { xGustoAPIVersion?: GetV1WebhookSubscriptionUuidHeaderXGustoAPIVersion | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllWebhooksGetSubscription(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=webhooksGetSubscription.d.ts.map