export function ok(value: T): { ok: T; error?: undefined; }; export function error(cause: X): { ok?: undefined; error: X; }; export function panic(message: string): never; export function fail(message: string): { error: API.Failure; ok?: undefined; }; /** * @implements {API.Failure} */ export class Failure extends Error implements API.Failure { describe(): string; get message(): string; toJSON(): { name: string; message: string; stack: string | undefined; }; } import * as API from '@ucanto/interface'; //# sourceMappingURL=result.d.ts.map