import { GenkitBeta } from "genkit/beta"; import { AsyncAuthorizerBase } from "@auth0/ai/AsyncAuthorization"; import { AuthorizationPendingInterrupt, AuthorizationPollingInterrupt } from "@auth0/ai/interrupts"; import { ToolFnOptions, ToolRunOptions } from "@genkit-ai/ai/tool"; import { ToolWrapper } from "../lib"; /** * The AsyncAuthorizer class implements the CIBA authorization flow for a Genkit AI tool. * * CIBA (Client Initiated Backchannel Authentication) is a protocol that allows a client to * request authorization from the user via an out-of-band channel. */ export declare class AsyncAuthorizer extends AsyncAuthorizerBase<[ any, ToolFnOptions & ToolRunOptions ]> { private readonly genkit; constructor(genkit: GenkitBeta, ...args: ConstructorParameters); protected handleAuthorizationInterrupts(err: AuthorizationPendingInterrupt | AuthorizationPollingInterrupt): Promise; /** * * Builds a tool authorizer that protects the tool execution with the CIBA authorization flow. * * @returns A tool authorizer. */ authorizer(): ToolWrapper; } //# sourceMappingURL=AsyncAuthorizer.d.ts.map