import type { NextFunction, Response } from 'express'; import type { IApp } from '../../../server.ts'; import type { TI18n } from '../../i18n/I18n.ts'; import type { FrameworkRequest } from '../HttpServer.ts'; import AbstractMiddleware from './AbstractMiddleware.ts'; import type { GetUserByTokenAppInfo } from './GetUserByToken.ts'; export type { TI18n }; export interface I18nMiddlewareAppInfo { appInfo: { i18n: TI18n; }; } declare class I18n extends AbstractMiddleware { enabled: boolean; lookupQuerystring: string; constructor(app: IApp, params?: Record); static get description(): string; middleware(req: FrameworkRequest, _res: Response, next: NextFunction): Promise; detectors: Record string | undefined | false>; detectorOrder: string[]; detectLang(req: FrameworkRequest, isUseShortCode?: boolean): Promise; } export default I18n;