import type { ZodTypeAny, infer as ZodInfer } from 'zod'; import type { HttpContext } from '@pearl-framework/http'; export declare abstract class FormRequest { abstract readonly schema: TSchema; authorize(_ctx: HttpContext): boolean | Promise; protected resolveInput(ctx: HttpContext): Record; validate(ctx: HttpContext): Promise>; /** * Static shorthand — two calling styles both work: * * // Style 1 — static (most concise) * const data = await RegisterRequest.validate(ctx) * * // Style 2 — instance * const data = await new RegisterRequest().validate(ctx) */ static validate(this: new () => T, ctx: HttpContext): Promise>; } //# sourceMappingURL=FormRequest.d.ts.map