import type { NostrSigner } from './types'; export type StoredSession = { type: 'oauth'; accessToken: string; refreshToken?: string; } | { type: 'bunker'; bunkerUrl: string; } | { type: 'nostrconnect'; clientNsec: string; bunkerUrl: string; } | { type: 'extension'; } | { type: 'nsec'; nsec: string; }; export interface SessionStorage { getItem(key: string): string | null; setItem(key: string, value: string): void; removeItem(key: string): void; } export interface SessionStore { save(session: StoredSession): void; load(): StoredSession | null; clear(): void; } export declare function createSessionStore(storage: SessionStorage, prefix: string): SessionStore; export declare function restoreSession(session: StoredSession): Promise; //# sourceMappingURL=session.d.ts.map