/ minisign / useRust / useRust.d.ts
useRust.d.ts
 1  /* tslint:disable */
 2  /* eslint-disable */
 3  import type { Accessor } from "solid-js";
 4  import type { InitInput, InitOutput, SyncInitInput } from "./wasm/wasm"
 5  import rustRest from "./typeHelper";
 6  
 7  /**
 8  * Usage: `const { rust, error, isLoading } = useRust()`
 9  *
10  * @see https://github.com/ollipal/useRust
11  */
12  declare module "minisign" {
13    export default function useRust(config?: { autoInit: boolean }): {
14      rust: Accessor<typeof rustRest | undefined>;
15      error: Accessor<any>;
16      isLoading: Accessor<boolean>;
17      init: () => Promise<InitOutput> | Promise<undefined>;
18    }
19  }