UNPKG

@towns-protocol/sdk

Version:

For more details, visit the following resources:

14 lines 619 B
import { GetSettingsResponse } from '@towns-protocol/proto'; import { Observable } from '../../observable/observable'; export interface NotificationSettingsModel { fetchedAtMs: number | undefined; settings: GetSettingsResponse | undefined; error: Error | undefined; } export declare class NotificationSettings extends Observable<NotificationSettingsModel> { constructor(); initializeSettings(settings?: GetSettingsResponse): void; updateSettings(settings: GetSettingsResponse, fetchedAtMs?: number): void; updateError(error: Error): void; } //# sourceMappingURL=notificationSettings.d.ts.map