import type { NLoginStorage } from './NLoginStorage.ts'; import type { FC, ReactNode } from 'react'; /** Props for `NostrLoginProvider`. */ interface NostrLoginProviderProps { /** The child components that will have access to the context. */ children: ReactNode; /** The key used to store (and revive) the logins in storage. */ storageKey: string; /** Custom storage backend. Defaults to `localStorage`. */ storage?: NLoginStorage; /** Content to render while the login state is loading from storage. Defaults to `null`. */ fallback?: ReactNode; } /** * NostrLoginProvider is a React component that provides a context for managing Nostr logins. * It uses a reducer to handle the state of logins and persists them to a storage backend. * * The `storage` prop accepts any object with `getItem` and `setItem` methods, supporting * both synchronous (`localStorage`) and asynchronous (e.g. Capacitor Secure Storage) backends. * Defaults to `localStorage` when not provided. * * While the initial login state is being loaded from storage, the `fallback` prop is rendered * instead of `children`. Defaults to `null`. */ export declare const NostrLoginProvider: FC; export {}; //# sourceMappingURL=NostrLoginProvider.d.ts.map