import "../../_dnt.polyfills.js"; import { Expand } from "../../deps/scale.js" export type SerdeResult = SerdeEnum<{ Ok: O; Err: E }> export type SerdeEnum = { [K in keyof T]: T[K] extends void ? K : Expand & Omit<{ [K in keyof T]?: never }, K>> }[keyof T] export type SubId = string export type AccountId = string export type Subscription = [unsubscribe: T, result: U] export namespace Subscription { export type UnsubscribeMethod = T extends Subscription ? U : never export type Result = T extends Subscription ? U : never } export type NumberOrHex = string | number export type ListOrValue = T | T[]