import { Aliyah } from './types.js'; import { JsonFestivalAliyah } from './internalTypes.js'; export type Haftarah = Aliyah | Aliyah[] | JsonFestivalAliyah | JsonFestivalAliyah[]; /** * Deep-clones a Haftarah (a single passage or an array) and fills in the * verse count `v` on each passage via {@link calculateNumVerses}. * @param haft the Haftarah to clone * @returns a new Haftarah with verse counts populated */ export declare function cloneHaftara(haft: Haftarah): Aliyah | Aliyah[]; /** * Sums the verse counts (`v`) of a Haftarah's passages. Each passage must * already have its `v` populated (e.g. by {@link cloneHaftara}). * @param aliyot a single passage or an array of passages * @returns the total number of verses */ export declare function sumVerses(aliyot: Haftarah): number;