import { Event } from '@hebcal/core/dist/esm/event'; import { TachanunResult } from '@hebcal/core/dist/esm/tachanun'; import { StringMap } from '@hebcal/leyning/dist/esm/types'; import { RestApiOptions } from './common'; import type { LocationPlainObj } from './location'; export type ClassicApiItem = { title: string; date: string; hdate?: string; category: string; subcat?: string; yomtov?: boolean; title_orig?: string; hebrew?: string; leyning?: StringMap; link?: string; omer?: { count: { he: string; en: string; }; sefira: { he: string; translit: string; en: string; }; anaBekoachWord: string; lamnatzeachWord: string; lamnatzeachLetter: string; }; molad?: { hy: number; hm: string; dow: number; hour: number; minutes: number; chalakim: number; instant: string; }; heDateParts?: { y: string; m: string; d: string; }; memo?: string; ev?: Event; }; export type ClassicApiResult = { title: string; date: string; version: string; location: LocationPlainObj; tachanun?: TachanunResult; range?: { start: string; end: string; }; items?: ClassicApiItem[]; }; /** * Formats a list events for the classic Hebcal.com JSON API response */ export declare function eventsToClassicApi(events: Event[], options: RestApiOptions, leyning?: boolean): ClassicApiResult; export declare function eventsToClassicApiHeader(events: Event[], options: RestApiOptions): ClassicApiResult; /** * Converts a Hebcal event to a classic Hebcal.com JSON API object */ export declare function eventToClassicApiObject(ev: Event, options: RestApiOptions, leyning?: boolean): ClassicApiItem;