import type { ConsolaReporter, LogObject } from "consola";
/**
 * ErrorReporter captures all error and warning logs to a separate file
 * Particularly useful for development environments
 */
export declare class ErrorReporter implements ConsolaReporter {
    private readonly options;
    private fileLogger;
    private readonly logLevel;
    constructor(options?: {
        filePath?: string;
        maxFileSize?: number;
        maxFiles?: number;
        level?: number;
    });
    log(logObj: LogObject): void;
    private sanitizeForJson;
    private getTypeLevel;
    end(): Promise<void>;
}
/**
 * Creates an error reporter that only captures errors and warnings
 */
export declare function createErrorReporter(options?: {
    filePath?: string;
    maxFileSize?: number;
    maxFiles?: number;
    level?: number;
}): ErrorReporter;
