import { DmChannelSettingValue, GdmChannelSettingValue, GetSettingsResponse, SpaceChannelSettingValue, WebPushSubscriptionObject, PlainMessage } from '@towns-protocol/proto'; import { DescMessage, MessageShape } from '@bufbuild/protobuf'; import { SignerContext } from './signerContext'; import { RpcOptions } from './rpcCommon'; import { StreamsView } from './views/streamsView'; import { NotificationSettingsModel } from './views/streams/notificationSettings'; export interface INotificationStore { getItem(schema: Desc, key: string): MessageShape | undefined; setItem(schema: Desc, key: string, value: MessageShape): void; } export declare class NotificationsClient { private readonly signerContext; private readonly url; private readonly store; private readonly opts; readonly streamsView: StreamsView; get notificationSettings(): NotificationSettingsModel; private _client?; private startResponseKey; private finishResponseKey; private settingsKey; private getClientPromise; private getSettingsPromise; constructor(signerContext: SignerContext, url: string, store: INotificationStore | undefined, opts: RpcOptions | undefined, streamsView: StreamsView); get userId(): string; private getLocalStartResponse; private setLocalStartResponse; private getLocalFinishResponse; private setLocalFinishResponse; private getLocalSettings; private setLocalSettings; private updateLocalSettings; private getClient; private _getClient; private withClient; getSettings(): Promise; private _getSettings; subscribeWebPush(subscription: PlainMessage, app: string): Promise | undefined>; unsubscribeWebPush(subscription: PlainMessage): Promise | undefined>; setDmGlobalSetting(value: DmChannelSettingValue): Promise; setGdmGlobalSetting(value: GdmChannelSettingValue): Promise; setDmChannelSetting(channelId: string, value: DmChannelSettingValue): Promise; setGdmChannelSetting(channelId: string, value: GdmChannelSettingValue): Promise; setSpaceSetting(spaceId: string, value: SpaceChannelSettingValue): Promise; setChannelSetting(channelId: string, value: SpaceChannelSettingValue): Promise; } export declare function getMutedChannelIds(settings?: PlainMessage): Set | undefined; //# sourceMappingURL=notificationsClient.d.ts.map