UNPKG
@ibradecode/bails
Version:
latest (1.1.1)
1.1.1
1.0.0
WhatsApp API
www.npmjs.com/package/@ibradecode/bails
@ibradecode/bails
/
lib
/
WABinary
/
encode.d.ts
4 lines
(3 loc)
•
266 B
TypeScript
View Raw
1
2
3
4
/// <reference types="node" />
import
type
{
BinaryNode
,
BinaryNodeCodingOptions
}
from
'./types'
;
export
declare
const
encodeBinaryNode
:
(
{ tag, attrs, content }:
BinaryNode
,
opts
?:
Pick
<
BinaryNodeCodingOptions
,
'TAGS'
|
'TOKEN_MAP'
>,
buffer
?:
number
[]
) =>
Buffer
;