import { TextColor } from "../tui-colors/style-builder"; import { Optional } from "./core"; import { SimpleReceiverFn, TruthyReceiverFn } from "./expression-lang-utils"; export declare abstract class Option { readonly _isSome: boolean; constructor(value: T | undefined | null); isSome(): this is Some; isNone(): this is None; abstract toString(): string; static none: () => None; static some: (arg: T_1) => Some; static create: (arg: Optional) => Option; } export declare class None extends Option { constructor(); toString(): string; } export declare class Some extends Option { readonly _value: T; constructor(value: T); toString(): string; get value(): T; } export declare const _callIfSome: (context: Option, receiver: TruthyReceiverFn) => void; export declare const _callIfNone: (context: Option, receiver: SimpleReceiverFn) => void; export declare const DebugStyle: Readonly<{ msgStyle: TextColor & import("..").FormatFn; argStyle: TextColor & import("..").FormatFn; }>; export declare function debug(msg: string, obj: any): any;