UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

9 lines (8 loc) 777 B
import { type RuntimeBkndConfig, type RuntimeOptions } from "bknd/adapter"; import type { ServeOptions } from "bun"; type BunEnv = Bun.Env; export type BunBkndConfig<Env = BunEnv> = RuntimeBkndConfig<Env> & Omit<ServeOptions, "fetch">; export declare function createApp<Env = BunEnv>({ distPath, ...config }?: BunBkndConfig<Env>, args?: Env, opts?: RuntimeOptions): Promise<import("../..").App>; export declare function createHandler<Env = BunEnv>(config?: BunBkndConfig<Env>, args?: Env, opts?: RuntimeOptions): (req: Request) => Promise<Response>; export declare function serve<Env = BunEnv>({ distPath, connection, initialConfig, options, port, onBuilt, buildConfig, adminOptions, ...serveOptions }?: BunBkndConfig<Env>, args?: Env, opts?: RuntimeOptions): void; export {};