import { Context } from "hono"; import { ProxyConfig } from "./config"; /** * @deprecated Use `Partial` instead. */ export type FalHonoProxyOptions = Partial & { /** * A function to resolve the API key used by the proxy. * By default, it uses the `FAL_KEY` environment variable. * * @deprecated Use `resolveFalAuth` in `ProxyConfig` instead. */ resolveApiKey?: () => Promise; }; type RouteHandler = (context: Context) => Promise; /** * Creates a route handler that proxies requests to the fal API. * * This is a drop-in handler for Hono applications so that the client can be called * directly from the client-side code while keeping API keys safe. * * @param config the proxy configuration options. * @returns a Hono route handler function. */ export declare function createRouteHandler({ resolveApiKey, ...config }?: FalHonoProxyOptions): RouteHandler; export {};