import type { Service } from '@purista/core'; import type { Context, Next } from 'hono'; import type { BindingsBase } from './BindingsBase.js'; import type { VariablesBase } from './VariablesBase.js'; /** * Middleware type for protected generated Hono endpoints. * * Use it to authenticate/authorize the HTTP request and to set typed Hono * variables such as `principalId`, `tenantId` or `additionalParameter`. */ export type EndpointProtectMiddleware = (this: T, c: Context<{ Bindings: Bindings; Variables: Variables; }>, next: Next) => Promise; //# sourceMappingURL=EndpointProtectMiddleware.d.ts.map