import type { WebSocketHandler } from "bun";
import type { Kernel } from "../kernel";
interface AppParams {
    kernel: new () => Kernel;
    onException?: (error: Error) => void;
}
export declare class App {
    private kernel;
    onException?: (error: Error) => void;
    constructor(params: AppParams);
    getComponentTree(): any;
    getFlatComponentTree(): any;
    getRouteManifest(): any;
    fetch(req: Request): Promise<Response>;
    websocket: WebSocketHandler<{
        headers: Headers;
    }>;
    onPublish(fn: (topic: string, data: string | ArrayBufferView | ArrayBuffer | SharedArrayBuffer, compress?: boolean) => void): void;
    dispatchJob(jobName: string, args: string): any;
    destroy(): void;
    clone(): any;
}
export {};
//# sourceMappingURL=App.d.ts.map