UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

25 lines 843 B
import type { Infer } from "@metamask/superstruct"; import { NodeType } from "../nodes.cjs"; export declare const SpinnerStruct: import("@metamask/superstruct").Struct<{ type: NodeType.Spinner; }, { type: import("@metamask/superstruct").Struct<NodeType.Spinner, null>; }>; /** * A spinner node, that renders a spinner, either as a full-screen overlay, or * inline when nested inside a {@link Panel}. */ export type Spinner = Infer<typeof SpinnerStruct>; /** * Create a {@link Spinner} node. * * @returns The spinner 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 = spinner(); */ export declare const spinner: () => { type: NodeType.Spinner; }; //# sourceMappingURL=spinner.d.cts.map