UNPKG

283 BTypeScriptView Raw
1import type { Codec, CodecClass, Registry } from '@polkadot/types-codec/types';
2import type { DetectCodec } from '../types/index.js';
3export declare function createClass<T extends Codec = Codec, K extends string = string>(registry: Registry, type: K): CodecClass<DetectCodec<T, K>>;