import { Entry, EntryId } from "./types"; export declare class Repository { private _dir; private _ids; private _parse; constructor(dir: string, listEntryIds: (dirOrFile: string) => EntryId[], parse: (entryDir: string, entryId: EntryId) => Entry); each(f: (item: Entry) => void): void; findAll(): Entry[]; findBy(query: { year?: string; month?: string; }): Entry[]; getEntryIds(): EntryId[]; getMonths(year: string): string[]; getYears(): string[]; reduce(f: (a: T, i: Entry) => T, s: T): T; }