You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
569 B
17 lines
569 B
10 months ago
|
import { Decoder } from '../common/Decoder';
|
||
|
import { Encoder } from '../common/Encoder';
|
||
|
declare type XCoderFactory<Tncoder = Encoder | Decoder> = ({ fatal: boolean }: {
|
||
|
fatal: any;
|
||
|
}) => Tncoder;
|
||
|
declare type Encoders = {
|
||
|
[s: string]: XCoderFactory<Encoder>;
|
||
|
};
|
||
|
declare type Decoders = {
|
||
|
[s: string]: XCoderFactory<Decoder>;
|
||
|
};
|
||
|
/** @type {Object.<string, function({fatal:boolean}): Encoder>} */
|
||
|
/** @type {Object.<string, function({fatal:boolean}): Decoder>} */
|
||
|
export declare const encoders: Encoders;
|
||
|
export declare const decoders: Decoders;
|
||
|
export {};
|