UNPKG

autumn-js

Version:

Autumn JS Library

36 lines (33 loc) 745 B
import { AuthResult } from './utils/AuthFunction.mjs'; import { Context, Elysia } from 'elysia'; declare function autumnHandler<ContextType extends Context = Context>(options: { identify: (context: ContextType) => AuthResult | Promise<AuthResult>; version?: string; secretKey?: string; url?: string; }): (app: Elysia) => Elysia<"", { decorator: {}; store: {}; derive: {}; resolve: {}; }, { typebox: {}; error: {}; }, { schema: {}; standaloneSchema: {}; macro: {}; macroFn: {}; parser: {}; }, {}, { derive: {}; resolve: {}; schema: {}; standaloneSchema: {}; }, { derive: {}; resolve: {}; schema: {}; standaloneSchema: {}; }>; export { autumnHandler };