UNPKG

bknd

Version:

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

20 lines (19 loc) 1.05 kB
import { type ReactNode } from "react"; import { App, type BkndConfig } from "../.."; import type { ClientConfig, DatabasePath } from "sqlocal"; import type { BkndAdminConfig } from "../../ui"; export type BrowserBkndConfig<Args = ImportMetaEnv> = Omit<BkndConfig<Args>, "connection" | "app"> & { adminConfig?: BkndAdminConfig; connection?: ClientConfig | DatabasePath; }; export type BkndBrowserAppProps = { children: ReactNode; header?: ReactNode; loading?: ReactNode; notFound?: ReactNode; } & BrowserBkndConfig; export declare function BkndBrowserApp({ children, adminConfig, header, loading, notFound, ...config }: BkndBrowserAppProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element; export declare function useApp(): { app: App; hash: string; };