/** * Async OAuth Handler * * Provides non-blocking OAuth flow with session-based state management. * This allows OAuth flows that require user interaction (browser login) * without blocking the HTTP request. */ import { Hono } from 'hono'; import type { GatewayService } from '../service.js'; import { type OAuthCredentials } from '../../auth/oauth/types.js'; export declare function refreshModelCatalogAfterOAuth(provider: string, service: Pick): Promise; export declare function resolveOAuthLoginMethodPreference(params: { requestedMethod?: unknown; supportedMethods?: readonly string[]; remote: boolean; }): string | undefined; export declare function createOAuthAsyncHandler(service: GatewayService): Hono; export declare function getOAuthCredentialsFromCache(provider: string): OAuthCredentials | undefined; export declare function setOAuthCredentialsToCache(provider: string, creds: OAuthCredentials): void; export declare function deleteOAuthCredentialsFromCache(provider: string): void;