read-gedcom
Version:
Gedcom file reader
15 lines (14 loc) • 606 B
TypeScript
import { GedcomReadingOptions } from '../parse';
import { TreeNodeRoot } from '../tree';
import { SelectionGedcom } from './internal';
/**
* Parses a Gedcom file with {@link parseGedcom} and wraps the result in a {@link SelectionGedcom}.
* @param buffer The content of the file
* @param options Optional parameters
*/
export declare const readGedcom: (buffer: ArrayBuffer, options?: GedcomReadingOptions) => SelectionGedcom;
/**
* Wrap a Gedcom tree into a {@link SelectionGedcom}.
* @param rootNode The Gedcom tree
*/
export declare const selectGedcom: (rootNode: TreeNodeRoot) => SelectionGedcom;