//! SPDX-FileCopyrightText: 2025 Chris Duncan <chris@zoso.dev>
//! SPDX-License-Identifier: GPL-3.0-or-later
-import { ApiSupportedTypes, NanoPowOptions } from '#types'
+import { NanoPowOptions } from '#types'
import { ApiSupport, bigintFrom, bigintToHex, SEND } from '#utils'
+type ApiSupportedTypes = keyof typeof ApiSupport
+
class NanoPowConfigConstructor implements NanoPowOptions {
static #isInternal: boolean = false
api: ApiSupportedTypes
}
}
-export declare const ApiSupported: {
- cpu: boolean
- wasm: {
- isSupported: boolean
- }
- webgl: {
- isSupported: boolean
- }
- webgpu: {
- isSupported: boolean
- }
-}
-export type ApiSupportedTypes = keyof typeof ApiSupported
-
export declare class NanoPow {
/**
* Finds a nonce that satisfies the Nano proof-of-work requirements.