/** * Browser-side API client for the /api/dsh-flomo route family. The only data * access path the settings panel uses — plain fetch, same origin. */ /** Public config view (mirrors the host contract). */ export interface FlomoConfigView { configured: boolean; /** 'webhookUrl' | 'apiKey', or '' when not configured. */ source: string; masked: string; configPath: string; } /** One send outcome. */ export interface FlomoSendResult { ok: boolean; message: string; code?: number; } /** Error carrying the route's JSON error message. */ export declare class FlomoApiError extends Error { constructor(message: string); } /** The flomo panel API. */ export declare class FlomoApi { getConfig(): Promise; setConfig(patch: { apiKey?: string; webhookUrl?: string; reset?: boolean; }): Promise; send(content: string, tags: string): Promise; test(): Promise; }