import type { PersistedNetworkSession } from './types';
export declare const PERSISTED_NETWORK_SESSION_STORAGE_KEY = "__almostnodeNetworkSession";
export interface StorageLike {
    getItem(key: string): string | null;
    setItem(key: string, value: string): void;
    removeItem(key: string): void;
}
export declare function parsePersistedNetworkSession(raw: string | null | undefined): PersistedNetworkSession | null;
export declare function serializePersistedNetworkSession(session: PersistedNetworkSession): string;
export declare function createNetworkSessionPersistence(storage?: StorageLike | null | undefined, key?: string): {
    clear(): void;
    load(): PersistedNetworkSession | null;
    save(session: PersistedNetworkSession): void;
};
//# sourceMappingURL=session.d.ts.map