import { EventEmitter } from 'events';
export interface CanvasContent {
    type: 'html' | 'markdown' | 'json' | 'reset';
    content: string;
    title?: string;
    timestamp: number;
}
export declare class CanvasServer extends EventEmitter {
    private server;
    private wss;
    private clients;
    private history;
    private port;
    private maxHistory;
    constructor(port?: number, maxHistory?: number);
    start(): Promise<void>;
    stop(): Promise<void>;
    push(content: Omit<CanvasContent, 'timestamp'>): void;
    reset(): void;
    getClientCount(): number;
    getHistory(): CanvasContent[];
    isRunning(): boolean;
}
