UNPKG

bknd

Version:

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

52 lines (51 loc) 1.48 kB
/** @jsxImportSource hono/jsx */ import type { App } from "../../App"; import { Controller } from "../../modules/Controller"; import type { TApiUser } from "../../Api"; export type AdminBkndWindowContext = { user?: TApiUser; logout_route: string; admin_basepath: string; }; export type AdminControllerOptions = { basepath?: string; adminBasepath?: string; assetsPath?: string; html?: string; forceDev?: boolean | { mainPath: string; }; debugRerenders?: boolean; }; export declare class AdminController extends Controller { private readonly app; private _options; constructor(app: App, _options?: AdminControllerOptions); get ctx(): import("..").ModuleBuildContext; get options(): { basepath: string; adminBasepath: string; assetsPath: string; html?: string; forceDev?: boolean | { mainPath: string; }; debugRerenders?: boolean; }; get basepath(): string; private withBasePath; private withAdminBasePath; getController(): import("hono/hono-base").HonoBase<import("hono").Env & { Variables: { app: App; auth?: { resolved: boolean; registered: boolean; skip: boolean; user?: import("../../auth").SafeUser; }; html?: string; }; }, import("hono/types").BlankSchema, "/">; private getHtml; }