import { NostrEvent, UnsignedEvent } from 'nostr-tools'; /** * Ensures window.nostr.js is loaded. * Injects the script tag on first call; subsequent calls return immediately. * Resolves immediately without touching the DOM when running outside a browser. * * @returns Promise that resolves when window.nostr.js is loaded (or immediately in SSR) */ export declare function ensureInitialized(): Promise; /** * Check if window.nostr is available * @returns boolean indicating if window.nostr is available */ export declare function isAvailable(): boolean; /** * Get the public key from window.nostr * @returns Promise resolving to public key or null */ export declare function getPublicKey(): Promise; /** * Sign an event using window.nostr * @param event - The event to sign * @returns Promise resolving to signed event */ export declare function signEvent(event: UnsignedEvent): Promise;