import { WoTProviderProps } from '@nostr-wot/wot/react'; export * from '@nostr-wot/wot/react'; import { NostrSessionProviderProps } from '@nostr-wot/data/react'; export * from '@nostr-wot/data/react'; import * as react$2 from 'react'; import { ReactNode } from 'react'; interface NostrSdkProviderProps { children: ReactNode; /** Override the default relay set used by all data fetchers. */ relays?: string[]; /** Specialised aggregators for kind-0 lookups (e.g. purplepag.es). */ profileAggregators?: string[]; /** Cache configuration. The SWR layer persists profiles, follows, * and relay-lists to localStorage by default. */ cache?: { namespace?: string; ttlMs?: number; }; /** Session context — holds the active signer + pubkey. By default the * provider mounts an empty session so any child can call `useSigner()` * safely. Pass `initialSigner` / `onChange` / `onLogout` to wire your * app's auth, or `{ enabled: false }` to opt out (useful when an * outer `` already wraps the tree). */ session?: ({ enabled?: true; } & Omit) | { enabled: false; }; /** Web-of-Trust configuration. WoT is opt-in: * - Omit `wot` (or set `wot: { enabled: false }`) → no WoT context; * `useWoTContext()` returns null safely. * - Set `wot: { enabled: true, ... }` → wraps children with the * WoT context so `useWoT`, `useTrustScore`, `useIsInWoT`, * `useBatchWoT` work. */ wot?: { enabled: boolean; } & Omit; } /** * Top-level provider for an app using the full Nostr WoT SDK. Composes: * - `` — single mount point for the active signer * + pubkey; consumed by DM hooks, blossom, login UI, etc. * - `` — sets default relays, profile aggregators, * cache namespace. * - `` (optional, when `wot.enabled === true`). * * For data-only apps with no WoT scoring, depend on `@nostr-wot/data` * and use `` directly — no need to install * `@nostr-wot/wot`. For full login UI, install `@nostr-wot/ui` and use * its `` (a thin shell on top of this one that * also handles silent re-attach + theming attributes). */ declare function NostrSdkProvider({ children, relays, profileAggregators, cache, session, wot, }: NostrSdkProviderProps): react$2.JSX.Element; export { NostrSdkProvider, type NostrSdkProviderProps };