export type FetchLastMsgResponse = {
    lastActionId: string;
    lastActionIdOther: string;
    more: number;
    msgs: Array<string>;
    groupMsgs: Array<string>;
    pageMsgs: Array<string>;
    clearUnreads: Array<{
        actionId: string;
        idTo: string;
        lastMsgId: string;
        isGroup: number;
        type: number;
    }>;
    clearUnreadsReact: Array<{
        actionId: string;
        idTo: string;
        lastMsgId: string;
        isGroup: number;
        type: number;
    }>;
};
export declare const getLastMsgFactory: (ctx: import("../../context.js").ContextBase, api: import("../../apis.js").API) => (threadIdLocalMsgId: {
    [key: string]: string;
}) => Promise<FetchLastMsgResponse>;
