import { OneNoteReader } from "../reader"; import { CBFormat, STPFormat } from "../utils/file-chunk-reference"; import { FileNodeList } from "./file-node-list"; import { BaseType, FileNodeID, FileNodeTypes } from "./file-node-types"; type Types = typeof FileNodeTypes; type FileNodeData = ReturnType; /** * A {@link FileNode} structure is the basic unit for holding and referencing data in the file. FileNode structures are organized into file node lists (section 2.4). * * A {@link FileNode} structure is divided into header fields and a data field, fnd. The header fields specify what type of FileNode structure it is, and what format the fnd field is in. The fnd field can be empty, or it can contain data directly, or it can contain a reference to another block of the file by byte position and byte count, or it can contain both data and a reference. */ export declare class FileNode { /** * An unsigned integer that specifies the type of this FileNode structure. The meaning of this value is specified by the fnd field. */ readonly FileNodeID: TID; /** * An unsigned integer that specifies the size, in bytes, of this FileNode structure. */ readonly size: number; readonly header: number; readonly stpFormat: STPFormat; readonly cbFormat: CBFormat; readonly baseType: BaseType; readonly reserved: number; readonly data: FileNodeData; readonly children: FileNodeList[]; constructor(reader: OneNoteReader); is(id: TID): this is FileNode; } export {};