UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

68 lines 2.42 kB
import { NodeType } from "../nodes.cjs"; export declare const FormComponentStruct: import("@metamask/superstruct").Struct<{ type: NodeType.Input; name: string; value?: string | undefined; label?: string | undefined; inputType?: "number" | "text" | "password" | undefined; placeholder?: string | undefined; error?: string | undefined; } | { value: string; type: NodeType.Button; variant?: "primary" | "secondary" | undefined; name?: string | undefined; buttonType?: "button" | "submit" | undefined; }, null>; export declare const FormStruct: import("@metamask/superstruct").Struct<{ type: NodeType.Form; name: string; children: ({ type: NodeType.Input; name: string; value?: string | undefined; label?: string | undefined; inputType?: "number" | "text" | "password" | undefined; placeholder?: string | undefined; error?: string | undefined; } | { value: string; type: NodeType.Button; variant?: "primary" | "secondary" | undefined; name?: string | undefined; buttonType?: "button" | "submit" | undefined; })[]; }, { type: import("@metamask/superstruct").Struct<NodeType.Form, null>; children: import("@metamask/superstruct").Struct<({ type: NodeType.Input; name: string; value?: string | undefined; label?: string | undefined; inputType?: "number" | "text" | "password" | undefined; placeholder?: string | undefined; error?: string | undefined; } | { value: string; type: NodeType.Button; variant?: "primary" | "secondary" | undefined; name?: string | undefined; buttonType?: "button" | "submit" | undefined; })[], import("@metamask/superstruct").Struct<{ type: NodeType.Input; name: string; value?: string | undefined; label?: string | undefined; inputType?: "number" | "text" | "password" | undefined; placeholder?: string | undefined; error?: string | undefined; } | { value: string; type: NodeType.Button; variant?: "primary" | "secondary" | undefined; name?: string | undefined; buttonType?: "button" | "submit" | undefined; }, null>>; name: import("@metamask/superstruct").Struct<string, null>; }>; //# sourceMappingURL=form.d.cts.map