import { join } from 'node:path';
import { readJsonFile, writeJsonFile, getDataDir } from './json-store.js';
const FILE = () => join(getDataDir(), 'user-settings.json');
export function getUserSettings() {
    return readJsonFile(FILE()) ?? {};
}
export function setUserAvatarUrl(url) {
    const settings = getUserSettings();
    settings.avatarUrl = url;
    writeJsonFile(FILE(), settings);
}
export function removeUserAvatarUrl() {
    const settings = getUserSettings();
    delete settings.avatarUrl;
    writeJsonFile(FILE(), settings);
}
//# sourceMappingURL=user-settings-store.js.map