UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

24 lines 778 B
import type { Infer } from "@metamask/superstruct"; import { NodeType } from "../nodes.cjs"; export declare const DividerStruct: import("@metamask/superstruct").Struct<{ type: NodeType.Divider; }, { type: import("@metamask/superstruct").Struct<NodeType.Divider, null>; }>; /** * A divider node, that renders a line between other nodes. */ export type Divider = Infer<typeof DividerStruct>; /** * Create a {@link Divider} node. * * @returns The divider node as object. * @deprecated Snaps component functions are deprecated, in favor of the new JSX * components. This function will be removed in a future release. * @example * const node = divider(); */ export declare const divider: () => { type: NodeType.Divider; }; //# sourceMappingURL=divider.d.cts.map