13 lines
318 B
TypeScript
13 lines
318 B
TypeScript
/// <reference types="node" />
|
|
declare type KeyValue = {
|
|
[key: string]: any;
|
|
};
|
|
export declare class DnsTxt {
|
|
private binary;
|
|
constructor(opts?: KeyValue);
|
|
encode(data?: KeyValue): Buffer[];
|
|
decode(buffer: Buffer): KeyValue;
|
|
decodeAll(buffer: Array<Buffer>): KeyValue;
|
|
}
|
|
export default DnsTxt;
|