/**
 * Log Streaming Module - SSE Real-time Log Delivery
 *
 * Provides Server-Sent Events (SSE) for real-time log streaming:
 * - Subscribe to log events
 * - Filter by level and module
 * - Automatic cleanup on disconnect
 */
import type { LogLevel, LogEntry } from './types.js';
export type { LogLevel, LogEntry };
export interface LogStreamOptions {
    minLevel?: LogLevel;
    module?: string;
    levels?: LogLevel[];
}
type LogSubscriber = (entry: LogEntry) => void;
/**
 * Subscribe to log events
 *
 * @param subscriber - Callback function to receive log entries
 * @returns Unsubscribe function
 */
declare function subscribeToLogs(subscriber: LogSubscriber): () => void;
/**
 * Get number of active subscribers
 */
declare function getSubscriberCount(): number;
/**
 * Check if any subscribers are active
 */
declare function hasSubscribers(): boolean;
/**
 * Emit a log entry to all subscribers
 *
 * @internal - Called by the logger integration
 */
declare function emitLogEntry(entry: LogEntry): void;
/**
 * Create a log entry from raw data
 *
 * @internal
 */
declare function createLogEntry(level: LogLevel, message: string, context?: Record<string, unknown>): LogEntry;
/**
 * Create an SSE handler for log streaming
 *
 * Usage:
 * ```typescript
 * import { createLogStreamHandler } from './log-stream.js';
 *
 * app.get('/api/logs/stream', createLogStreamHandler());
 * ```
 */
declare function createLogStreamHandler(): (req: Request) => Response;
/**
 * Create a Hono-compatible SSE handler for log streaming
 *
 * Usage:
 * ```typescript
 * import { createLogSSEHandler } from './log-stream.js';
 *
 * app.get('/api/logs/stream', createLogSSEHandler());
 * ```
 */
export declare function createLogSSEHandler(): (c: {
    req: {
        raw: Request;
        url: string;
    };
}) => Promise<Response>;
declare const _default: {
    subscribeToLogs: typeof subscribeToLogs;
    getSubscriberCount: typeof getSubscriberCount;
    hasSubscribers: typeof hasSubscribers;
    emitLogEntry: typeof emitLogEntry;
    createLogEntry: typeof createLogEntry;
    createLogStreamHandler: typeof createLogStreamHandler;
    createLogSSEHandler: typeof createLogSSEHandler;
};
export default _default;
