export function registerRoute(options: { router: any; method: string; entryPoint: string; actionFn: Function; timeout?: number; onConnClosed?: Function; onConnClosedOnce?: Function; onConnClosedSafe?: Function; decryption?: boolean; foreMiddleware?: any[] | Function; authentication?: string; jwtSecret?: string; jwtRevokeFunc?: Function; authorization?: any[] | Function; requiredFields?: any[]; middleware?: any[] | Function; rearMiddleware?: any[] | Function; }): Promise; export function response(ctx: any, statusCode: any, body: any, options: any): void; export function resSuccess(ctx: any, body: any, options: any): void; export function resError(ctx: any, error: any, options: any): void; export function setConfig(config: any): void; export namespace TIMEOUT_SPAN { let REGULAR: number; let LONG: number; let LONGER: number; let LONGEST: number; } export { passport };