import type { ActionFunction, LoaderFunction, json as jsonFunction } from "@remix-run/node"; import { ProxyConfig } from "./config"; export type FalRemixProxy = { action: ActionFunction; loader: LoaderFunction; }; export type FalRemixProxyOptions = Partial & { /** * The reference to the `json` function from the Remix runtime. * e.g. `import { json } from "@remix-run/node";` */ json: typeof jsonFunction; /** * 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; }; export declare function createProxy({ json, resolveApiKey, ...config }: FalRemixProxyOptions): FalRemixProxy;