import { GenkitBeta } from "genkit/beta"; import { DeviceAuthorizerBase } from "@auth0/ai/Device"; import { DeviceInterrupts } from "@auth0/ai/interrupts"; import { ToolFnOptions, ToolRunOptions } from "@genkit-ai/ai/tool"; import { ToolWrapper } from "../lib"; /** * The DeviceAuthorizer class implements the device authorization flow for a Genkit AI tool. * */ export declare class DeviceAuthorizer extends DeviceAuthorizerBase<[ any, ToolFnOptions & ToolRunOptions ]> { private readonly genkit; constructor(genkit: GenkitBeta, ...args: ConstructorParameters); handleAuthorizationInterrupts(err: DeviceInterrupts.AuthorizationPendingInterrupt | DeviceInterrupts.AuthorizationPollingInterrupt): void; /** * * Builds a tool authorizer that protects the tool execution with the CIBA authorization flow. * * @returns A tool authorizer. */ authorizer(): ToolWrapper; } //# sourceMappingURL=DeviceAuthorizer.d.ts.map