import { IS_BROWSER } from '@redocly/theme/core/openapi';
export function toSessionStorage(key, value) {
    if (IS_BROWSER) {
        window.sessionStorage.setItem('redoc.' + key, value);
    }
}
export function fromSessionStorage(key) {
    if (!IS_BROWSER)
        return '';
    return (window.sessionStorage.getItem('redoc.' + key) || '');
}
//# sourceMappingURL=session-storage.js.map