import * as IDL from './idl'; import * as UI from './candid-core'; declare type InputBox = UI.InputBox; declare const FormConfig: UI.FormConfig; export declare const inputBox: (t: IDL.Type, config: Partial) => UI.InputBox; export declare const recordForm: (fields: Array<[string, IDL.Type]>, config: Partial) => UI.RecordForm; export declare const tupleForm: (components: IDL.Type[], config: Partial) => UI.TupleForm; export declare const variantForm: (fields: Array<[string, IDL.Type]>, config: Partial) => UI.VariantForm; export declare const optForm: (ty: IDL.Type, config: Partial) => UI.OptionForm; export declare const vecForm: (ty: IDL.Type, config: Partial) => UI.VecForm; export declare class Render extends IDL.Visitor { visitType(t: IDL.Type, d: null): InputBox; visitNull(t: IDL.NullClass, d: null): InputBox; visitRecord(t: IDL.RecordClass, fields: Array<[string, IDL.Type]>, d: null): InputBox; visitTuple(t: IDL.TupleClass, components: IDL.Type[], d: null): InputBox; visitVariant(t: IDL.VariantClass, fields: Array<[string, IDL.Type]>, d: null): InputBox; visitOpt(t: IDL.OptClass, ty: IDL.Type, d: null): InputBox; visitVec(t: IDL.VecClass, ty: IDL.Type, d: null): InputBox; visitRec(t: IDL.RecClass, ty: IDL.ConstructType, d: null): InputBox; } /** * * @param t an IDL type * @returns an input for that type */ export declare function renderInput(t: IDL.Type): InputBox; /** * * @param t an IDL Type * @param input an InputBox * @param value any * @returns rendering that value to the provided input */ export declare function renderValue(t: IDL.Type, input: InputBox, value: any): void; export {};