import { t as CommonAdapterOptions } from "./common-D3fx-IHt.cjs"; import { ClientContract } from "@zenstackhq/orm"; import { SchemaDef } from "@zenstackhq/orm/schema"; import { Context, Elysia } from "elysia"; //#region src/adapter/elysia/handler.d.ts /** * Options for initializing an Elysia middleware. */ interface ElysiaOptions extends CommonAdapterOptions { /** * Callback method for getting a ZenStackClient instance for the given request context. */ getClient: (context: Context) => Promise> | ClientContract; /** * Optional base path to strip from the request path before passing to the API handler. */ basePath?: string; } /** * Creates an Elysia middleware handler for ZenStack. * This handler provides automatic CRUD APIs through Elysia's routing system. */ declare function createElysiaHandler(options: ElysiaOptions): (app: Elysia) => Promise>; //#endregion export { type ElysiaOptions, createElysiaHandler }; //# sourceMappingURL=elysia.d.cts.map