import type { Cache } from '../../shared/interfaces/cache.interface.js'; import type { OpportunityPresenter, PresenterDatabase } from './opportunity.presenter.js'; export interface CachedDeliveryCard { opportunityId: string; headline: string; personalizedSummary: string; suggestedAction: string; narratorRemark: string; /** Empty string means presenter did not generate one (LLM error / fallback path). */ greeting: string; } export interface OpportunityWithContext { id: string; status: string; actors: Array<{ userId: string; role: string; }>; interpretation?: unknown; detection?: unknown; } export declare const DELIVERY_CARD_CACHE_TTL: number; export declare function getOrCreateDeliveryCardBatch(cache: Cache, presenter: OpportunityPresenter, presenterDb: PresenterDatabase, opportunities: OpportunityWithContext[], viewerId: string, options?: { ttl?: number; }): Promise>;