import type { ConsoleRpcExtendedCtx, ExtendedRpcResult } from './contracts.js'; export declare const TABLE_MESSAGE = "unified_inbox_message"; export declare const TABLE_REQUEST = "unified_inbox_request"; export declare const TABLE_NOTICE = "unified_inbox_notice"; export declare function listInbox(d: Record, ctx: ConsoleRpcExtendedCtx, table: string, key: 'requests' | 'notices', mapRow: (row: Record) => Record): Promise; /** request.list —— 优先 live EndpointManagement.listRequests;否则回退 unified_inbox_request。 */ export declare function listPendingRequests(d: Record, ctx: ConsoleRpcExtendedCtx): Promise; export declare function listInboxMessages(d: Record, ctx: ConsoleRpcExtendedCtx): Promise; /** * Cross-endpoint recent inbox used by paired Mobile Console clients. * Unlike endpoint-detail `inbox.messages`, every row carries its complete * routable address so selecting a conversation can safely call * `endpoint.send_message` through the Device Protocol write allowlist. */ export declare function listRecentInboxMessages(d: Record, ctx: ConsoleRpcExtendedCtx): Promise; export declare function mapRequestRow(row: Record): Record; export declare function mapNoticeRow(row: Record): Record; /** * request.consumed / notice.consumed —— 按行 id 置 consumed=1。 * 表未注册(或 model 无 update)时保持"未接线"报错。 */ export declare function markInboxConsumed(d: Record, ctx: ConsoleRpcExtendedCtx, table: string): Promise; export declare function actOnRequest(type: 'request.approve' | 'request.reject', d: Record, ctx: ConsoleRpcExtendedCtx): Promise;