import { ServeStaticOptions } from '@hono/node-server/serve-static'; import { HttpServer, INestApplication } from '@nestjs/common'; import { Context, Hono, MiddlewareHandler } from 'hono'; export type TypeBodyParser = 'application/json' | 'text/plain' | 'application/x-www-form-urlencoded'; interface HonoViewOptions { engine: string; templates: string; } export interface NestHonoApplication extends INestApplication { getHttpAdapter(): HttpServer; useBodyParser(type: TypeBodyParser, bodyLimit?: number): this; useStaticAssets(path: string, options: ServeStaticOptions): this; setViewEngine(options: HonoViewOptions | string): this; listen(port: number | string, callback?: (err: Error, address: string) => void): Promise; listen(port: number | string, address: string, callback?: (err: Error, address: string) => void): Promise; listen(port: number | string, address: string, backlog: number, callback?: (err: Error, address: string) => void): Promise; } export {};