import { Effect } from "@effect/io/Effect"; import { Case } from "@effect-ts/system/Case"; import type { AnyError } from "../_schema.js"; import type { Parser, ParserEnv } from "../Parser.js"; /** * The Effect fails with the generic `E` type when the parser produces an invalid result * Otherwise success with the valid result. */ export declare function condemn(self: Parser): (a: X, env?: ParserEnv) => Effect; export declare class CondemnException extends Case<{ readonly message: string; }> { readonly _tag = "CondemnException"; toString(): string; } export declare class ThrowableCondemnException extends Error { readonly error: AnyError; readonly _tag = "CondemnException"; constructor(error: AnyError); } /** * The Effect fails with `ThrowableCondemnException` when the parser produces an invalid result. * Otherwise succeeds with the valid result. */ export declare function condemnFail(self: Parser): (a: X, env?: ParserEnv) => import("@effect/io/Effect").Effect; /** * The Effect dies with `ThrowableCondemnException` when the parser produces an invalid result. * Otherwise succeeds with the valid result. */ export declare function condemnDie(self: Parser): (a: X, env?: ParserEnv) => import("@effect/io/Effect").Effect; /** * Throws a classic `ThrowableCondemnException` when the parser produces an invalid result. * Otherwise returns the valid result. */ export declare function unsafe(self: Parser): (a: X, env?: ParserEnv) => A; //# sourceMappingURL=condemn.d.ts.map