import { ParamType, EParamType } from "./types"; import { UserInputHelper } from "./input-helper.user"; import { FileInputHelper } from "./input-helper.upload"; import { BodyInputHelper } from "./input-helper.body"; import { ParamInputHelper, SafeParamInputHelper } from "./input-helper.param"; export interface ArgumentHandlerCallbackType { (name: string): InputHelperBuilder; } export declare abstract class InputHelperBuilder { protected state: ParamType; protected handlerCallback: ArgumentHandlerCallbackType; constructor(parent: { state: ParamType; handlerCallback?: ArgumentHandlerCallbackType; }, from?: EParamType); _finish(): void; _copy(): { state: ParamType; handlerCallback: ArgumentHandlerCallbackType; }; _toJSON(): ParamType; from(from: EParamType.TYPE_LOGIN): UserInputHelper; from(from: EParamType.TYPE_BODY): BodyInputHelper; from(from: EParamType.TYPE_REWRITE_PATH): ParamInputHelper; from(from: EParamType.TYPE_GET): ParamInputHelper; from(from: EParamType.TYPE_POST): ParamInputHelper; from(from: EParamType.TYPE_UPLOAD): FileInputHelper; from(from: EParamType.TYPE_COOKIE): ParamInputHelper; from(from: EParamType.TYPE_SAFE_COOKIE): SafeParamInputHelper; from(from: EParamType.TYPE_SESSION): SafeParamInputHelper; from(from: EParamType): InputHelper; fromLogin(): UserInputHelper; fromBody(): BodyInputHelper; fromPath(): ParamInputHelper; fromGet(): ParamInputHelper; fromPost(): ParamInputHelper; fromUpload(): FileInputHelper; fromCookie(): ParamInputHelper; fromSafeCookie(): SafeParamInputHelper; fromSession(): SafeParamInputHelper; assumeType(type: string): this; handleArgument(name: string): InputHelperBuilder; } export declare abstract class InputHelper extends InputHelperBuilder { constructor(builder: InputHelperBuilder, from?: EParamType); }