import type { Buffer } from 'node:buffer'; export interface TelegramConfiguration { token: string; chatId: string; enabled: boolean; triggerTypes: string[]; triggerConcepts: string[]; } export interface TelegramStatus { configured: boolean; enabled: boolean; chatId?: string; triggerTypes: string[]; triggerConcepts: string[]; } export interface TelegramObservation { id: string; type: string; title?: string; subtitle?: string; project?: string; concepts?: string[]; narrative?: string; facts?: string[]; } export interface TelegramRuntimeOptions { key?: Buffer; fetcher?: typeof fetch; } export declare function configureTelegram(home: string, input: TelegramConfiguration, key?: Buffer): TelegramStatus; export declare function telegramStatus(home: string, key?: Buffer): TelegramStatus; export declare function disableTelegram(home: string, key?: Buffer): TelegramStatus; export declare function sendTelegramTest(home: string, options?: TelegramRuntimeOptions): Promise<{ sent: true; }>; export declare function notifyTelegramObservation(home: string, observation: TelegramObservation, options?: TelegramRuntimeOptions): Promise<{ sent: boolean; reason?: 'not-configured' | 'disabled' | 'no-trigger-match'; }>;