UNPKG

gedcom-ts

Version:

TypeScript GEDCOM toolkit for browser apps: import .ged/.zip, edit typed genealogy data, and export GEDCOM or GEDZIP.

11 lines (10 loc) 846 B
import { Act } from "../commons/Act"; import type { Person } from "../commons/Person"; export declare function familyUnionActDedupeKey(act: Act): string; export declare function isFamilyUnionAct(act: Act): boolean; export declare function partnerIndisForFam(persons: readonly Person[], famId: number): Set<number>; export declare function actBelongsToFamPartners(act: Act, famPartnerIndis: ReadonlySet<number>): boolean; export declare function shouldExportUnionActOnFam(act: Act, famId: number, persons: readonly Person[]): boolean; export declare function collectUnionActsForFamExport(persons: readonly Person[], famId: number): Act[]; export declare function unionActKeysExportedOnFam(person: Person, persons: readonly Person[]): Set<string>; export declare function actsForIndiGedcomExport(person: Person, persons: readonly Person[]): Act[];