import { OperationalError, UserError } from '@n8n/errors'; import { z } from 'zod'; import { AiGatewayService, type AiGatewayErrorResponse, type AiGatewayRequestAttribution } from './ai-gateway.service'; declare const createdSessionSchema: z.ZodObject<{ id: z.ZodString; connectUrl: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; connectUrl: string; }, { id: string; connectUrl: string; }>; export type AiGatewayBrowserSession = z.infer; export declare class AiGatewayBrowserUseService { private readonly aiGatewayService; constructor(aiGatewayService: AiGatewayService); isGatewayBrowserUseEnabled(): boolean; createSession({ userId, attribution, }: { userId: string; attribution: AiGatewayRequestAttribution; }): Promise; releaseSession({ userId, attribution, sessionId, }: { userId: string; attribution: AiGatewayRequestAttribution; sessionId: string; }): Promise; } export declare function toGatewayError(response: AiGatewayErrorResponse): UserError | OperationalError; export {};