///
///
import { Request, Response } from 'koa';
interface InterfaceInput {
aString: string;
aNumber: number;
}
declare class ClassInput {
aString: string;
aNumber: number;
}
export declare class ArgController {
twoParams(params: any, id: string): Promise<{
params: any;
id: string;
}>;
bodyRequired(body: ClassInput): Promise;
simpleBody(body: any): Promise;
body(body: ClassInput): Promise;
bodySpecific(foo: string): Promise;
bodyInterface(body: InterfaceInput): Promise;
state(state: any): Promise;
stateNoValue(foo: any): Promise;
user(user: any): Promise;
header(header: any): Promise;
query(q: any): Promise;
querySingle(q: string): Promise;
params(q: any): Promise;
paramsSingle(id: string): Promise;
paramsCastNumber(val: number): Promise<{
type: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
val: number;
}>;
paramsCastBoolean(val: boolean): Promise<{
type: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
val: boolean;
}>;
session(sess: any): Promise;
sessionSingle(sess: string): Promise;
req(req: Request): Promise;
uploadBuffer(ctx: any, req: Request): Promise;
uploadFile(ctx: any, files: Record): Promise>;
uploadFile2(ctx: any, req: Request): Promise;
res(res: Response): Promise<"works" | "did not work">;
ctx(ctx: any): Promise;
ctx2(query: any): Promise;
custom(query: any): Promise;
multiPath(query: any): Promise;
}
export {};