import * as IDL from './idl.ts'; import * as UI from './candid-core.ts'; type InputBox = UI.InputBox; 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 {}; //# sourceMappingURL=candid-ui.d.ts.map