read-gedcom
Version:
Gedcom file reader
11 lines (10 loc) • 452 B
TypeScript
import { TreeNodeRoot } from '../tree';
import { GedcomReadingOptions } from './GedcomReadingOptions';
/**
* Reads a Gedcom file and returns it as a tree representation.
* @param buffer The content of the file
* @param options Optional parameters
* @throws ErrorParse If the file cannot be interpreted correctly
* @category Gedcom parser
*/
export declare const parseGedcom: (buffer: ArrayBuffer, options?: GedcomReadingOptions) => TreeNodeRoot;