import * as Shared from "./shared.mjs"; import * as ChatsAPI from "./chats/chats.mjs"; /** * Response indicating successful app focus action. */ export interface FocusResponse { /** * Whether the app was successfully opened/focused. */ success: boolean; } export interface SearchResponse { results: SearchResponse.Results; } export declare namespace SearchResponse { interface Results { /** * Top chat results. */ chats: Array; /** * Top group results by participant matches. */ in_groups: Array; messages: Results.Messages; } namespace Results { interface Messages { /** * Map of chatID -> chat details for chats referenced in items. */ chats: { [key: string]: ChatsAPI.Chat; }; /** * True if additional results can be fetched using the provided cursors. */ hasMore: boolean; /** * Messages matching the query and filters. */ items: Array; /** * Cursor for fetching newer results (use with direction='after'). Opaque string; * do not inspect. */ newestCursor: string | null; /** * Cursor for fetching older results (use with direction='before'). Opaque string; * do not inspect. */ oldestCursor: string | null; } } } export interface FocusParams { /** * Optional Beeper chat ID (or local chat ID) to focus after opening the app. If * omitted, only opens/focuses the app. */ chatID?: string; /** * Optional local image path to populate in the message input field. */ draftAttachmentPath?: string; /** * Optional plain text to populate in the message input field. */ draftText?: string; /** * Optional message ID. Jumps to that message in the chat when opening. */ messageID?: string; } export interface SearchParams { /** * User-typed search text. Uses literal word matching. */ query: string; } export declare namespace TopLevel { export { type FocusResponse as FocusResponse, type SearchResponse as SearchResponse, type FocusParams as FocusParams, type SearchParams as SearchParams, }; } //# sourceMappingURL=top-level.d.mts.map