/**
 * Notifier Module - CLI to Server Communication
 * Provides best-effort notification to running CCW Server
 * when CLI commands modify data that should trigger UI updates
 */
export type NotifyScope = 'memory' | 'history' | 'insights' | 'all';
export interface NotifyPayload {
    type: 'REFRESH_REQUIRED' | 'MEMORY_UPDATED' | 'HISTORY_UPDATED' | 'INSIGHT_GENERATED';
    scope: NotifyScope;
    data?: {
        entityType?: string;
        entityId?: string | number;
        action?: string;
        executionId?: string;
        [key: string]: unknown;
    };
}
export interface NotifyResult {
    success: boolean;
    error?: string;
}
/**
 * Send notification to CCW Server (best-effort, non-blocking)
 * If server is not running or unreachable, silently fails
 */
export declare function notifyServer(payload: NotifyPayload, options?: {
    host?: string;
    port?: number;
}): Promise<NotifyResult>;
/**
 * Convenience: Notify memory update
 */
export declare function notifyMemoryUpdate(data?: {
    entityType?: string;
    entityId?: string | number;
    action?: string;
}): Promise<NotifyResult>;
/**
 * Convenience: Notify CLI history update
 */
export declare function notifyHistoryUpdate(executionId?: string): Promise<NotifyResult>;
/**
 * Convenience: Notify insight generated
 */
export declare function notifyInsightGenerated(executionId?: string): Promise<NotifyResult>;
/**
 * Convenience: Request full refresh
 */
export declare function notifyRefreshRequired(scope?: NotifyScope): Promise<NotifyResult>;
//# sourceMappingURL=notifier.d.ts.map