import { ITokenizer } from 'strtok3/lib/core'; import * as AtomToken from './AtomToken'; export type AtomDataHandler = (atom: Atom, remaining: number) => Promise; export declare class Atom { readonly header: AtomToken.IAtomHeader; extended: boolean; readonly parent: Atom; static readAtom(tokenizer: ITokenizer, dataHandler: AtomDataHandler, parent: Atom, remaining: number): Promise; readonly children: Atom[]; readonly atomPath: string; constructor(header: AtomToken.IAtomHeader, extended: boolean, parent: Atom); getHeaderLength(): number; getPayloadLength(remaining: number): number; readAtoms(tokenizer: ITokenizer, dataHandler: AtomDataHandler, size: number): Promise; private readData; }