UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

18 lines • 955 B
import type { SlackAccessor } from '../../accessor/slack.ts'; export interface SlackMessage { ts: string; user?: string; text?: string; thread_ts?: string; [key: string]: unknown; } export declare function streamMessagesForDay(accessor: SlackAccessor, channelId: string, dateStr: string, options?: { limit?: number; after?: string; lastDay?: string; }): AsyncIterableIterator<SlackMessage[]>; /** Every message of a channel-day, or only those after `after`, oldest first. */ export declare function fetchMessagesForDay(accessor: SlackAccessor, channelId: string, dateStr: string, after?: string): Promise<SlackMessage[]>; export declare function getHistoryJsonl(accessor: SlackAccessor, channelId: string, dateStr: string): Promise<Uint8Array>; export declare function fetchRecentMessages(accessor: SlackAccessor, channelId: string, limit?: number): Promise<Record<string, unknown>[]>; //# sourceMappingURL=history.d.ts.map