export interface BundleError { timestamp: Date; type: "syntax" | "resolution" | "transform" | "other"; message: string; file?: string; line?: number; column?: number; codeFrame?: string; importStack?: string[]; } export interface BundleStatus { isBuilding: boolean; hasError: boolean; buildTime?: number; lastBuildTimestamp?: Date; } export declare class BundleErrorBuffer { private errors; private maxSize; private lastStatus; constructor(maxSize?: number); add(error: BundleError): void; get(count?: number): BundleError[]; getLatest(): BundleError | null; clear(): number; get size(): number; getStatus(): BundleStatus; updateStatus(status: Partial): void; } export declare function parseMetroError(errorText: string): BundleError; export declare function formatBundleError(error: BundleError): string; export declare function formatBundleErrors(errors: BundleError[]): string; export declare const bundleErrorBuffer: BundleErrorBuffer; export declare function connectMetroBuildEvents(port: number): Promise; export declare function fetchBundleStatus(port: number): Promise; export declare function getBundleErrors(buffer: BundleErrorBuffer, options?: { maxErrors?: number; }): { errors: BundleError[]; formatted: string; }; export declare function getBundleStatusWithErrors(buffer: BundleErrorBuffer, metroPort?: number): Promise<{ status: BundleStatus; latestError: BundleError | null; formatted: string; }>; export declare function disconnectMetroBuildEvents(): void; export declare function isConnectedToMetroBuildEvents(): boolean; //# sourceMappingURL=bundle.d.ts.map