import { AppError } from "./error-D7qO4VVN.cjs"; import { Result, UNIT } from "@carbonteq/fp"; //#region src/app/result/result.d.ts type EmptyResult = typeof AppResult.EMPTY; declare class AppResult { private readonly inner_result; readonly _isOk: boolean; static readonly EMPTY: AppResult; private constructor(); isOk(): this is AppResult; isErr(): this is AppResult; static Ok(val: T): AppResult; static Err(err: Error): AppResult; static fromResult(result: Result): AppResult; toResult(): Result; and(other: AppResult): AppResult; tap(f: (val: T) => void): AppResult; tapAsync(f: (val: T) => Promise): Promise>; static fromOther(result: AppResult): AppResult; zip(fn: (r: T) => U): AppResult<[T, U]>; flatZip(f: (r: T) => Result): AppResult<[T, U]>; flatMap(f: (r: T) => Result): AppResult; unwrap(): T; unwrapErr(): AppError; unwrapOr(def: T): T; unwrapOrElse(fn: () => T): T; unwrapOrElse(fn: () => Promise): Promise; map(fn: (val: T) => U): AppResult; mapErr(fn: (err: AppError) => AppError): AppResult; safeUnwrap(): T | null; } //#endregion //# sourceMappingURL=result.d.ts.map export { AppResult, EmptyResult }; //# sourceMappingURL=result-CmDVifTD.d.cts.map