import { FormatErrorOptions } from "./format-issue"; import type { Issue } from "./issue"; export declare class TypeError extends Error { readonly issue: Issue; constructor(issue: Issue, message: string); formatError(options?: FormatErrorOptions): string; } export declare class Err<_> { readonly issue: Issue; readonly message: string; constructor(issue: Issue); formatError(options?: FormatErrorOptions): string; toError(): TypeError; } export type Result = T | Err;