import { type CollectionReference, type DocumentReference, type Firestore, type FirestoreDataConverter, type Query } from 'firebase/firestore'; import type { AppNotificationData, NewNotificationInput, NotificationStorageStrategy } from './models.js'; /** * Standard FirestoreDataConverter for AppNotificationData documents. * Ensures clean data writes with zero undefined properties and consistent Timestamps. */ export declare const notificationConverter: FirestoreDataConverter; /** * Resolves the Firestore CollectionReference for notifications based on the storage strategy. */ export declare function resolveNotificationCollection(db: Firestore, uid: string, strategy?: NotificationStorageStrategy): CollectionReference; /** * Resolves a specific notification DocumentReference based on the storage strategy. */ export declare function resolveNotificationDoc(db: Firestore, uid: string, notificationId: string, strategy?: NotificationStorageStrategy): DocumentReference; /** * Resolves the real-time query for a user's notifications. */ export declare function resolveNotificationQuery(db: Firestore, uid: string, options?: { strategy?: NotificationStorageStrategy; limitCount?: number; }): Query; /** * Creates a new in-app notification document in Firestore. * * @param db Firestore instance. * @param uid User ID recipient. * @param input Notification payload without id. * @param strategy Optional storage strategy (subcollection vs root). * @returns The generated notification ID. */ export declare function createNotification(db: Firestore, uid: string, input: NewNotificationInput, strategy?: NotificationStorageStrategy): Promise; //# sourceMappingURL=converters.d.ts.map