import type { OpErrorCode } from "./types.ts";
/** An error raised by the operation layer itself; filesystem and spawn errors pass through unchanged. */
export declare class MachineOpError extends Error {
    readonly code: OpErrorCode;
    constructor(code: OpErrorCode, message: string, options?: {
        cause?: unknown;
    });
}
/** Classify any error an operation rejected with, so a wire answer can carry one code. */
export declare function opErrorCode(error: unknown): OpErrorCode;
//# sourceMappingURL=errors.d.ts.map