export type OpeningOptionType = 'closing' | 'snapshot'; export type OpeningOption = { label: string; value: string; type: OpeningOptionType; date: Date; }; /** * Generate opening options from closings and/or snapshots with revision numbers * for entries that share the same second timestamp. * * @param closings - Array of FdoClosing documents * @param snapshots - Array of FdoStockSnapshot documents (optional) * @returns Array of OpeningOption sorted by date descending */ export declare function generateOpeningOptions(closings: FdoClosing[], snapshots?: FdoStockSnapshot[]): OpeningOption[]; /** * Given an array of closing draft entries, returns a Map from each closing ID * to its display string in the format "yyyymmdd-XXXX" (e.g., "20260224-0001"). * * Grouping is by the closing document's date (yyyymmdd). * Counter order within each day is determined by draftCreatedAt ascending * (the time the closing draft itself was created), so the sequence reflects * the order drafts were created regardless of the closing's effective time. * * @param entries - Array of { closingId, draftCreatedAt } pairs * @returns Map */ export declare function formatClosingIdDisplay(entries: { closingId: string; draftCreatedAt: Date; }[]): Map;