import { EntryTag } from '../entry/constants.js'; import type { unpackEntry as unpackEntryType, packEntry as packEntryType } from '../entry/index.js'; export default function genEntryField(tag?: T): { serialize: (value: any, options: { packEntry: typeof packEntryType; }) => Buffer; deserialize: (value: Buffer, options: { unpackEntry: typeof unpackEntryType; }) => any; };