import { Result } from '../result'; import { RuntypeBase, Static, Codec } from '../runtype'; export interface ParsedValue, TParsed> extends Codec { readonly tag: 'parsed'; readonly underlying: TUnderlying; readonly config: ParsedValueConfig; } export interface ParsedValueConfig, TParsed> { name?: string; parse: (value: Static) => Result; serialize?: (value: TParsed) => Result>; test?: RuntypeBase; } export declare function ParsedValue, TParsed>(underlying: TUnderlying, config: ParsedValueConfig): ParsedValue;