import { CssSyntaxError } from 'postcss';
export declare class StyleCompilerCtx {
    readonly errorRecoveryMode: boolean;
    readonly errors: CssSyntaxError[];
    readonly filename: string;
    private readonly seenErrorKeys;
    constructor(errorRecoveryMode: boolean, filename: string);
    /**
     * This method recovers from CSS syntax errors that are encountered when fn is invoked.
     * All other errors are considered compiler errors and can not be recovered from.
     * @param fn method to be invoked.
     */
    withErrorRecovery<T>(fn: () => T): T | undefined;
    hasErrors(): boolean;
}
//# sourceMappingURL=error-recovery.d.ts.map