UNPKG

functionalscript

Version:

FunctionalScript is a purely functional subset of JavaScript

15 lines (14 loc) 774 B
import type { Unknown } from '../module.f.ts'; import type { Entry as ObjectEntry } from '../../types/object/module.f.ts'; import { type List } from '../../types/list/module.f.ts'; export declare const undefinedSerialize: string[]; type RefCounter = [number, number, boolean]; type Entry = ObjectEntry<Unknown>; type Entries = List<Entry>; type MapEntries = (entries: Entries) => Entries; type Refs = Map<Unknown, RefCounter>; export declare const serializeWithoutConst: (mapEntries: MapEntries) => (value: Unknown) => List<string>; export declare const stringify: (sort: MapEntries) => (djs: Unknown) => string; export declare const stringifyAsTree: (mapEntries: MapEntries) => (value: Unknown) => string; export declare const countRefs: (djs: Unknown) => Refs; export {};