import { Feature } from './compat'; import { Options } from './context'; import { SerovalNode } from './tree/types'; import { AsyncServerValue, PrimitiveValue, ServerValue, CommonServerValue, SemiPrimitiveValue, ErrorValue } from './types'; export { AsyncServerValue, ServerValue, PrimitiveValue, CommonServerValue, SemiPrimitiveValue, ErrorValue, Feature, }; export declare function serialize(source: T, options?: Partial): string; export declare function serializeAsync(source: T, options?: Partial): Promise; export declare function deserialize(source: string): T; export interface SerovalJSON { t: SerovalNode; r: number; i: boolean; f: number; m: number[]; } export declare function toJSON(source: T, options?: Partial): SerovalJSON; export declare function toJSONAsync(source: T, options?: Partial): Promise; export declare function compileJSON(source: SerovalJSON): string; export declare function fromJSON(source: SerovalJSON): T; export default serialize;