UNPKG

customerio-gist-web

Version:

Build beautiful in-app flows with no code and deliver them instantly to your app. http://customer.io

18 lines (17 loc) 757 B
import type { MessageProperties } from '../types'; export interface InboxMessage { messageId: string; queueId?: string; opened?: boolean; expiry?: string; priority?: number; sentAt?: string; topics?: string[]; properties?: MessageProperties; [key: string]: unknown; } export declare function updateInboxMessagesLocalStore(messages: InboxMessage[]): Promise<void>; export declare function getInboxMessagesFromLocalStore(): Promise<InboxMessage[]>; export declare function getInboxMessagesByTopic(topic: string | null): Promise<InboxMessage[]>; export declare function updateInboxMessageOpenState(queueId: string, opened: boolean): Promise<void>; export declare function removeInboxMessage(queueId: string): Promise<void>;