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