export interface ActionEnvelope {
    errorCount: number;
    warningCount: number;
}
export interface ActionResult {
    envelope: ActionEnvelope;
    exitCode: number;
}
export type ActionOutcome = 0 | ActionResult;
export declare function actionResult({ errorCount, exitCode, warningCount, }: {
    errorCount: number;
    exitCode?: number;
    warningCount: number;
}): ActionOutcome;
export declare function resultFromExitCode(exitCode: number): ActionOutcome;
export declare function resultExitCode(result: number | {
    exitCode: number;
}): number;
export declare function resultErrorCount(result: number | {
    envelope?: {
        errorCount?: number;
    };
    exitCode: number;
}): number;
export declare function resultWarningCount(result: number | {
    envelope?: {
        warningCount?: number;
    };
}): number;
export declare function isCleanResult(result: number | {
    envelope?: {
        errorCount?: number;
        warningCount?: number;
    };
    exitCode: number;
}): boolean;
export declare function combineResults(results: (number | {
    envelope?: {
        errorCount?: number;
        warningCount?: number;
    };
    exitCode: number;
})[]): ActionOutcome;
//# sourceMappingURL=result.d.ts.map