export interface BinspectorMeta { startOffset: number; endOffset: number; } export interface BinspectorMetaClass extends BinspectorMeta { className: string; properties: BinspectorMetaProperty[]; } export type BinspectorMetaPropertiesComponent = BinspectorMeta | BinspectorMetaClass; export interface BinspectorMetaProperty { propertyName: string; components: BinspectorMetaPropertiesComponent | BinspectorMetaPropertiesComponent[]; } declare enum TerminalColors { none = 0, dim = 1, green = 2 } export interface BindumpOptions { /** * Number of elements per lines. */ lineLength: number; /** * Numeral system to be used for the number representation. */ base: number; /** * Show the address at the beginning of the line representation. */ showAddress: boolean; /** * The minimun address length for the address representation at the beginning * of the line. * * `showAddress` needs to be `true`. */ addressMinPadding: number; addressColor: TerminalColors; /** * Show the ASCII representation at the end of the line representation. */ showAsciiRepresentation: boolean; /** * Character used to represent zeroes in the ASCII representation. * * `showAsciiRepresentation` needs to be `true`. */ zeroAsciiCharRepresentation: string; /** * Character style used to represent zeroes in the ASCII representation. * * `showAsciiRepresentation` needs to be `true`. */ zeroColorRepresentation: TerminalColors; /** * Character used to represent non-ASCII character in the ASCII * representation. * * `showAsciiRepresentation` needs to be `true`. */ nonAsciiCharRepresentation: string; /** * Character used separate the sections: * - address * - dump * - ASCII representation */ separator: string; /** * The offset to apply to the address passed to the bindump. * This option is used to show more than just the address passed. */ bufferOffsetPadding: number; } export declare function binDumpLine(arr: ArrayBufferLike, offset: number, endOffset: number | undefined, opt: BindumpOptions): string; export declare function binDump(arr: ArrayBufferLike, start?: number, end?: number, opt?: Partial): string; declare const _default: { show: (arr: ArrayBufferLike | ArrayBufferView) => string; at: (arr: ArrayBufferLike | ArrayBufferView, start: number, end?: number) => string; dump: (arr: ArrayBufferLike | ArrayBufferView, meta: BinspectorMetaClass, obj?: any) => string; }; export default _default;