UNPKG

344 BTypeScriptView Raw
1import type { HexString } from '../types';
2interface Registry {
3 get: (...params: unknown[]) => unknown;
4}
5interface Codec {
6 readonly registry: Registry;
7 toHex(isLe?: boolean): HexString;
8 toU8a: (isBare?: unknown) => Uint8Array;
9}
10export declare function isCodec<T extends Codec = Codec>(value?: unknown): value is T;
11export {};