/** * Copyright (c) 2018 Mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal */ import { Type } from '../type.js'; import { MSymbol, Arguments, Argument } from '../symbol.js'; export declare namespace Types { type List = ArrayLike; type Set = { has(e: T): boolean; }; const AnyVar: Type.Variable; const AnyValueVar: Type.Variable; const ConstrainedVar: Type.Variable; const Regex: Type.Value; const Set: (t?: T) => Type.Container>; const List: (t?: T) => Type.Container>; const Fn: (t?: T, alias?: string) => Type.Container<(env: any) => T["@type"]>; const Flags: (t: T, alias?: string) => Type.Container; const BitFlags: Type.Container; } export declare const TTargs: Arguments>; 1: Argument>; }>>; export declare const core: { '@header': string; type: { '@header': string; bool: MSymbol; }>>, Type.OneOf>; num: MSymbol; }>>, Type.Value>; str: MSymbol; }>>, Type.Value>; regex: MSymbol>; 1: Argument>; }>>, Type.Value>; list: MSymbol, Type.Container>>; set: MSymbol, Type.Container>>; bitflags: MSymbol>; }>>, Type.Container>; compositeKey: MSymbol, Type.AnyValue>; }; logic: { '@header': string; not: MSymbol>; }>>, Type.OneOf>; and: MSymbol, Type.OneOf>; or: MSymbol, Type.OneOf>; }; ctrl: { '@header': string; eval: MSymbol any>>; }>>, Type.Variable>; fn: MSymbol>; }>>, Type.Container<(env: any) => any>>; if: MSymbol>; 1: Argument>; 2: Argument>; }>>, Type.Union>; assoc: MSymbol>; 1: Argument>; }>>, Type.Variable>; }; rel: { '@header': string; eq: MSymbol>; 1: Argument>; }>>, Type.OneOf>; neq: MSymbol>; 1: Argument>; }>>, Type.OneOf>; lt: MSymbol>; 1: Argument>; }>>, Type.OneOf>; lte: MSymbol>; 1: Argument>; }>>, Type.OneOf>; gr: MSymbol>; 1: Argument>; }>>, Type.OneOf>; gre: MSymbol>; 1: Argument>; }>>, Type.OneOf>; inRange: MSymbol>; 1: Argument>; 2: Argument>; }>>, Type.OneOf>; }; math: { '@header': string; add: MSymbol, Type.Value>; sub: MSymbol, Type.Value>; mult: MSymbol, Type.Value>; div: MSymbol>; 1: Argument>; }>>, Type.Value>; pow: MSymbol>; 1: Argument>; }>>, Type.Value>; mod: MSymbol>; 1: Argument>; }>>, Type.Value>; min: MSymbol, Type.Value>; max: MSymbol, Type.Value>; cantorPairing: MSymbol>; 1: Argument>; }>>, Type.Value>; sortedCantorPairing: MSymbol>; 1: Argument>; }>>, Type.Value>; invertCantorPairing: MSymbol>; }>>, Type.Container>>; floor: MSymbol>; }>>, Type.Value>; ceil: MSymbol>; }>>, Type.Value>; roundInt: MSymbol>; }>>, Type.Value>; trunc: MSymbol>; }>>, Type.Value>; abs: MSymbol>; }>>, Type.Value>; sign: MSymbol>; }>>, Type.Value>; sqrt: MSymbol>; }>>, Type.Value>; cbrt: MSymbol>; }>>, Type.Value>; sin: MSymbol>; }>>, Type.Value>; cos: MSymbol>; }>>, Type.Value>; tan: MSymbol>; }>>, Type.Value>; asin: MSymbol>; }>>, Type.Value>; acos: MSymbol>; }>>, Type.Value>; atan: MSymbol>; }>>, Type.Value>; sinh: MSymbol>; }>>, Type.Value>; cosh: MSymbol>; }>>, Type.Value>; tanh: MSymbol>; }>>, Type.Value>; exp: MSymbol>; }>>, Type.Value>; log: MSymbol>; }>>, Type.Value>; log10: MSymbol>; }>>, Type.Value>; atan2: MSymbol>; 1: Argument>; }>>, Type.Value>; }; str: { '@header': string; concat: MSymbol, Type.Value>; match: MSymbol>; 1: Argument>; }>>, Type.OneOf>; }; list: { '@header': string; getAt: MSymbol>>; 1: Argument>; }>>, Type.Variable>; equal: MSymbol>>; 1: Argument>>; }>>, Type.OneOf>; }; set: { '@header': string; has: MSymbol>>; 1: Argument>; }>>, Type.OneOf>; isSubset: MSymbol>>; 1: Argument>>; }>>, Type.OneOf>; }; flags: { '@header': string; hasAny: MSymbol>; 1: Argument>; }>>, Type.OneOf>; hasAll: MSymbol>; 1: Argument>; }>>, Type.OneOf>; }; }; export declare const SymbolList: MSymbol, Type>[]; export declare const SymbolMap: { [id: string]: MSymbol, Type> | undefined; };