import { IInbox } from "./types"; import { IGetInboxMessagesParams } from "@trycourier/client-graphql"; import { IInboxMessagePreview } from "@trycourier/core"; export interface IFetchMessagesParams { params?: IGetInboxMessagesParams; after?: string; } export interface IInboxActions { fetchMessages: (params?: IFetchMessagesParams) => void; getUnreadMessageCount: (params?: IGetInboxMessagesParams) => void; init: (inbox?: IInbox) => void; markAllAsRead: (fromWS?: boolean) => void; markMessageArchived: (messageId: string, fromWS?: boolean) => Promise; markMessageOpened: (messageId: string, fromWS?: boolean) => Promise; markMessageRead: (messageId: string, fromWS?: boolean) => Promise; markMessageUnread: (messageId: string, fromWS?: boolean) => Promise; newMessage: (transportMessage: IInboxMessagePreview) => void; resetLastFetched: () => void; setView: (view: string | "preferences") => void; toggleInbox: (isOpen?: boolean) => void; unpinMessage: (messageId: string, fromWS?: boolean) => Promise; addTag: (messageId: string, tag: string, fromWS?: boolean) => Promise; removeTag: (messageId: string, tag: string, fromWS?: boolean) => Promise; trackClick: (messageId: string, trackingId: string) => Promise; } declare const useInboxActions: () => IInboxActions; export default useInboxActions; //# sourceMappingURL=use-inbox-actions.d.ts.map