UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

40 lines (39 loc) 2.31 kB
import { LucidHonoGeneric, LucidHonoVariables, Permission } from "./types-CfF1T11a.js"; import * as zod_v431 from "zod/v4"; import { ZodType } from "zod/v4"; import * as hono39 from "hono"; import * as hono41 from "hono"; import * as hono24 from "hono"; import * as hono26 from "hono"; import * as hono28 from "hono"; import * as hono29 from "hono"; import * as hono22 from "hono"; import { ValidationTargets } from "hono"; //#region src/libs/http/middleware/authenticate.d.ts declare const authenticate: hono39.MiddlewareHandler<LucidHonoGeneric, any, {}>; //#endregion //#region src/libs/http/middleware/client-authenticate.d.ts declare const clientAuthentication: hono41.MiddlewareHandler<LucidHonoGeneric, any, {}>; //#endregion //#region src/libs/http/middleware/content-locale.d.ts declare const contentLocale: hono24.MiddlewareHandler<LucidHonoGeneric, any, {}>; //#endregion //#region src/libs/http/middleware/log-route.d.ts declare const logRoute: hono26.MiddlewareHandler<LucidHonoGeneric, any, {}>; //#endregion //#region src/libs/http/middleware/validate-csrf.d.ts declare const validateCSRF: hono28.MiddlewareHandler<LucidHonoGeneric, any, {}>; //#endregion //#region src/libs/http/middleware/validate.d.ts declare const validate: <T extends ZodType, Target extends keyof ValidationTargets>(target: Target, schema: T) => hono29.MiddlewareHandler<hono29.Env & { Variables: LucidHonoVariables; }, string, { in: (undefined extends zod_v431.input<T> ? true : false) extends true ? { [K in Target]?: (zod_v431.input<T> extends infer T_1 ? T_1 extends zod_v431.input<T> ? T_1 extends ValidationTargets[K] ? T_1 : { [K2 in keyof T_1]?: ValidationTargets[K][K2] | undefined } : never : never) | undefined } : { [K_1 in Target]: zod_v431.input<T> extends infer T_2 ? T_2 extends zod_v431.input<T> ? T_2 extends ValidationTargets[K_1] ? T_2 : { [K2_1 in keyof T_2]: ValidationTargets[K_1][K2_1] } : never : never }; out: { [K_2 in Target]: zod_v431.infer<T> }; }>; //#endregion //#region src/libs/http/middleware/permissions.d.ts declare const permissions: (permissions: Permission[]) => hono22.MiddlewareHandler<LucidHonoGeneric, any, {}>; //#endregion export { authenticate, clientAuthentication, contentLocale, logRoute, permissions, validate, validateCSRF }; //# sourceMappingURL=middleware.d.ts.map