import { ERequestType } from "@gongt/ts-stl-library/request/request"; import { RequestHandler } from "express-serve-static-core"; import { BodyConfig } from "./handler"; import { ParamType } from "./types"; export declare const onlyUserParams: (e: any) => boolean; export declare const onlyPathParams: (e: any) => boolean; export declare const notQueryParams: (e: any) => boolean; export declare const onlyFileParams: (e: any) => boolean; export declare const onlyRawParams: (e: any) => boolean; export declare const onlyPostParams: (e: any) => boolean; export interface IHandlerUsing { usingUser?: boolean; useParamBody: boolean; usingCookie: boolean; usingSession: boolean; } export interface IHandlerConfig { url: string; method: ERequestType; methodName: string; bodyConfig: BodyConfig; using: IHandlerUsing; } export declare function handleArgumentFail(e: Error, handlerConfig: IHandlerConfig, list: ParamType[]): void; export declare function checkConfigValidate(handlerConfig: IHandlerConfig, list: ParamType[]): void; export declare function realCheckConfigValidate(handlerConfig: IHandlerConfig, list: ParamType[]): void; export declare function inputHelperEmitMiddlewares(handlerConfig: IHandlerConfig, plist: ParamType[]): RequestHandler[]; export declare function inputHelperEmitArgumentCollector(plist: ParamType[]): RequestHandler;