/**
 * usePushNotifications.ts
 * React hook that orchestrates the full push notification subscription lifecycle:
 *  1. Check browser support
 *  2. Register the service worker
 *  3. Request notification permission
 *  4. Subscribe via PushManager
 *  5. Register the subscription with the Ethora backend (API)
 *  6. Listen for subscription-change messages from the SW and re-register
 *
 * Logs every major step to the console so developers can trace the flow.
 */
interface UsePushNotificationsOptions {
    /** Enable or disable the push notification flow. Default: true */
    enabled?: boolean;
    /**
     * URL-safe Base64 encoded VAPID public key.
     * Falls back to the VITE_VAPID_PUBLIC_KEY environment variable.
     */
    vapidPublicKey?: string;
    /**
     * Service worker path and scope for Firebase Messaging.
     * Defaults to `/firebase-messaging-sw.js` with scope `/`.
     */
    serviceWorkerPath?: string;
    serviceWorkerScope?: string;
    /**
     * Custom Firebase configuration object.
     * If provided, it overrides the environment variables.
     */
    firebaseConfig?: any;
    /**
     * Show a UI "soft ask" before triggering the browser permission dialog.
     * When true the hook will NOT immediately request permission;
     * instead the consumer should call `requestPermission()` manually.
     * Default: false (immediate request after login).
     */
    softAsk?: boolean;
}
interface UsePushNotificationsResult {
    /** Manually trigger the permission + subscription flow (for soft-ask UIs). */
    requestPermission: () => Promise<void>;
}
declare const usePushNotifications: (options?: UsePushNotificationsOptions) => UsePushNotificationsResult;
export default usePushNotifications;
