import { Context } from "koa"; import { FlatTemplatable } from "tempstream"; import { FormField } from "../fields/field.js"; import { FormDataValue } from "../form-types.js"; import { FormControlContext } from "./form-control.js"; import { FormFieldControl } from "./form-field-control.js"; export type SimpleInputOptions = { id?: string; label?: string; autocomplete?: boolean; hide_errors?: boolean; type?: string; value?: string; placeholder?: string; readonly?: boolean; step?: number; suffix?: string; pattern?: string; inputmode?: string; }; export declare class SimpleInput extends FormFieldControl { field: FormField; options: SimpleInputOptions; constructor(field: FormField, options?: Options); preInput(_ctx: FormControlContext, _data: Record): Promise; getType(): string; getLabel(): string; getID(): string; getPlaceholder(): string; getInputAttributes(fctx: FormControlContext): Promise>; postInput(_: Context): Promise; renderInput(_ctx: Context, attributes_str: string, _data: Record): Promise; getWrapperModifiers(): string[]; render(fctx: FormControlContext): Promise; }