{
  "version": "0.6.17",
  "commit": "0991f06f2b3afdd85e5309a35e2df2d7bc36c535",
  "packages": {
    "ai": [],
    "ai.autograd": [
      "pub func Add(tp &: Tape, a: int, b: int): int: ret _bin_op(tp, _OP_ADD, a, b) end",
      "pub func AddScalar(tp &: Tape, a: int, s: f64): int: ret _un_op(tp, _OP_ADDS, a, s) end",
      "pub func AvgPool2D(tp &: Tape, x: int, kh: int, kw: int, sh: int, sw: int): int:",
      "pub func BCEWithLogits(tp &: Tape, logits: int, target: int): int:",
      "pub func Backward(tp &: Tape, loss: int):",
      "pub func BatchMatMul(tp &: Tape, a: int, b: int): int:",
      "pub func BatchNorm(tp &: Tape, x: int, gamma: int, beta: int, running_mean &: tensor.Tensor, running_var &: tensor.Tensor, momentum: f64, eps: f64): int:",
      "pub func Concat2(tp &: Tape, a: int, b: int, axis: int): int:",
      "pub func Constant(tp &: Tape, t &: tensor.Tensor): int:",
      "pub func Conv2D(tp &: Tape, x: int, w: int, b: int, sh: int, sw: int, ph: int, pw: int): int:",
      "pub func CrossEntropyLogits(tp &: Tape, logits: int, targets &: Vector<int>): int:",
      "pub func Div(tp &: Tape, a: int, b: int): int: ret _bin_op(tp, _OP_DIV, a, b) end",
      "pub func Dropout(tp &: Tape, a: int, p: f64): int:",
      "pub func Embedding(tp &: Tape, weight: int, indices &: Vector<int>): int:",
      "pub func Exp(tp &: Tape, a: int): int: ret _un_op(tp, _OP_EXP, a, 0.0) end",
      "pub func Gelu(tp &: Tape, a: int): int: ret _un_op(tp, _OP_GELU, a, 0.0) end",
      "pub func Grad(tp &: Tape, v: int): tensor.Tensor:",
      "pub func GradCheck(f: func (tensor.Tensor) f64, x &: tensor.Tensor, analytic &: tensor.Tensor, h: f64, tol: f64): bool:",
      "pub func GroupNorm(tp &: Tape, x: int, gamma: int, beta: int, groups: int, eps: f64): int:",
      "pub func Input(tp &: Tape, t &: tensor.Tensor): int:",
      "pub func LayerNorm(tp &: Tape, x: int, gamma: int, beta: int, eps: f64): int:",
      "pub func Log(tp &: Tape, a: int): int: ret _un_op(tp, _OP_LOG, a, 0.0) end",
      "pub func LogSoftmax(tp &: Tape, a: int): int:",
      "pub func MSELoss(tp &: Tape, pred: int, target: int): int:",
      "pub func MatMul(tp &: Tape, a: int, b: int): int:",
      "pub func MaxPool2D(tp &: Tape, x: int, kh: int, kw: int, sh: int, sw: int): int:",
      "pub func Mean(tp &: Tape, a: int): int:",
      "pub func MeanAxis(tp &: Tape, a: int, axis: int, keepdim: bool): int:",
      "pub func Mul(tp &: Tape, a: int, b: int): int: ret _bin_op(tp, _OP_MUL, a, b) end",
      "pub func Narrow(tp &: Tape, a: int, axis: int, start: int, len: int): int:",
      "pub func Neg(tp &: Tape, a: int): int: ret _un_op(tp, _OP_NEG, a, 0.0) end",
      "pub func NewTape(seed: i64): Tape:",
      "pub func Param(tp &: Tape, val &: tensor.Tensor, grad &: tensor.Tensor): int:",
      "pub func Permute(tp &: Tape, a: int, perm &: Vector<int>): int:",
      "pub func PowScalar(tp &: Tape, a: int, p: f64): int: ret _un_op(tp, _OP_POWS, a, p) end",
      "pub func RMSNorm(tp &: Tape, x: int, gamma: int, eps: f64): int:",
      "pub func Relu(tp &: Tape, a: int): int: ret _un_op(tp, _OP_RELU, a, 0.0) end",
      "pub func Reshape(tp &: Tape, a: int, shape &: Vector<int>): int:",
      "pub func RoPE(tp &: Tape, a: int, seq: int, heads: int, offset: int, theta: f64): int:",
      "pub func Scale(tp &: Tape, a: int, s: f64): int: ret _un_op(tp, _OP_SCALE, a, s) end",
      "pub func Sigmoid(tp &: Tape, a: int): int: ret _un_op(tp, _OP_SIGMOID, a, 0.0) end",
      "pub func Silu(tp &: Tape, a: int): int: ret _un_op(tp, _OP_SILU, a, 0.0) end",
      "pub func SliceAxis0(tp &: Tape, a: int, start: int, len: int): int:",
      "pub func Softmax(tp &: Tape, a: int): int:",
      "pub func Sqrt(tp &: Tape, a: int): int: ret _un_op(tp, _OP_SQRT, a, 0.0) end",
      "pub func Square(tp &: Tape, a: int): int: ret _un_op(tp, _OP_SQUARE, a, 0.0) end",
      "pub func Sub(tp &: Tape, a: int, b: int): int: ret _bin_op(tp, _OP_SUB, a, b) end",
      "pub func Sum(tp &: Tape, a: int): int:",
      "pub func SumAxis(tp &: Tape, a: int, axis: int, keepdim: bool): int:",
      "pub func Tanh(tp &: Tape, a: int): int: ret _un_op(tp, _OP_TANH, a, 0.0) end",
      "pub func Transpose2D(tp &: Tape, a: int): int:",
      "pub func Value(tp &: Tape, v: int): tensor.Tensor:",
      "pub func Watch(tp &: Tape, t &: tensor.Tensor): int:",
      "pub func free():",
      "pub func len(): int: ret this.vals.len() end",
      "pub func reset():",
      "pub struct Node:",
      "pub struct Tape:"
    ],
    "ai.gguf": [
      "pub const GGML_F16 := 1",
      "pub const GGML_F32 := 0",
      "pub const GGML_Q4_0 := 2",
      "pub const GGML_Q4_1 := 3",
      "pub const GGML_Q8_0 := 8",
      "pub const META_ARRAY := 9",
      "pub const META_STRING := 8",
      "pub func LoadGguf(path: str): Gguf throws:",
      "pub func LoadTensorF32(g &: Gguf, index: int): tensor.Tensor throws:",
      "pub func ParseGguf(buf: compress.ByteBuf): Gguf throws:",
      "pub func TensorBytes(g &: Gguf, index: int): int:",
      "pub func count(): int:",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func meta_index(key: str): int:",
      "pub func meta_int(key: str, dflt: i64): i64:",
      "pub func meta_str(key: str): str:",
      "pub func tensor_index(name: str): int:",
      "pub struct Gguf:",
      "pub struct MetaValue:",
      "pub struct TensorInfo:"
    ],
    "ai.llm": [
      "pub const ROPE_NEOX := 1",
      "pub const ROPE_NORMAL := 0",
      "pub const TOK_BPE := 1",
      "pub const TOK_SPM := 0",
      "pub func ConfigFromGguf(g &: gguf.Gguf): Config:",
      "pub func Forward(m &: Model, cache &: KVCache, tokens &: Vector<int>): tensor.Tensor:",
      "pub func Generate(m &: Model, cache &: KVCache, tok &: Tokenizer, prompt: str, max_new: int, sp &: Sampler): str:",
      "pub func GenerateIds(m &: Model, cache &: KVCache, prompt_ids &: Vector<int>, max_new: int, sp &: Sampler, eos: int): Vector<int>:",
      "pub func Greedy(logits &: tensor.Tensor, row: int): int:",
      "pub func LoadGgufModel(path: str, m &: Model, t &: Tokenizer): bool:",
      "pub func LogitsRow(logits &: tensor.Tensor, row: int): tensor.Tensor:",
      "pub func ModelFromGguf(g &: gguf.Gguf): Model:",
      "pub func NewKVCache(cfg &: Config): KVCache:",
      "pub func NewSampler(seed: i64): Sampler:",
      "pub func NewTokenizer(kind: int): Tokenizer:",
      "pub func RandomModel(cfg &: Config, seed: i64): Model:",
      "pub func TokenizerFromGguf(g &: gguf.Gguf): Tokenizer:",
      "pub func add_merge(a: str, b: str):",
      "pub func add_token(text: str, score: f64): int:",
      "pub func decode(ids &: Vector<int>): str:",
      "pub func encode(text: str): Vector<int>:",
      "pub func finish():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func head_dim(): int: ret this.dim / this.heads end",
      "pub func reset(): this.len = 0 end",
      "pub func sample(logits &: tensor.Tensor, row: int, recent &: Vector<int>): int:",
      "pub func size(): int: ret this.tokens.len() end",
      "pub func token_text(id: int): str:",
      "pub struct Config:",
      "pub struct KVCache:",
      "pub struct Layer:",
      "pub struct Model:",
      "pub struct Sampler:",
      "pub struct Tokenizer:"
    ],
    "ai.ml": [
      "pub const IMPUTE_CONSTANT := 2",
      "pub const IMPUTE_MEAN := 0",
      "pub const IMPUTE_MEDIAN := 1",
      "pub const KERNEL_LINEAR := 0",
      "pub const KERNEL_POLY := 2",
      "pub const KERNEL_RBF := 1",
      "pub const KNN_BRUTE := 0",
      "pub const KNN_KDTREE := 1",
      "pub const LINK_AVERAGE := 2",
      "pub const LINK_COMPLETE := 1",
      "pub const LINK_SINGLE := 0",
      "pub const ML_TOL := 1.0e-6",
      "pub const TREE_ENTROPY := 1",
      "pub const TREE_GINI := 0",
      "pub const TREE_MSE := 2",
      "pub func Accuracy(y &: matrix.Matrix, pred &: matrix.Matrix): f64:",
      "pub func AdjustedRandIndex(a &: matrix.Matrix, b &: matrix.Matrix): f64:",
      "pub func AveragePrecision(y &: matrix.Matrix, score &: matrix.Matrix): f64:",
      "pub func BalancedAccuracy(y &: matrix.Matrix, pred &: matrix.Matrix): f64:",
      "pub func CohenKappa(y &: matrix.Matrix, pred &: matrix.Matrix): f64:",
      "pub func ConfusionMatrix(y &: matrix.Matrix, pred &: matrix.Matrix, n_classes: int): matrix.Matrix:",
      "pub func CountClasses(y &: matrix.Matrix): int:",
      "pub func CrossValScore(fitpred: func (matrix.Matrix, matrix.Matrix, matrix.Matrix) matrix.Matrix, metric: func (matrix.Matrix, matrix.Matrix) f64, x &: matrix.Matrix, y &: matrix.Matrix, folds &: Folds): Vector<f64>:",
      "pub func CrossValScoreParallel(fitpred: func (matrix.Matrix, matrix.Matrix, matrix.Matrix) matrix.Matrix, metric: func (matrix.Matrix, matrix.Matrix) f64, x &: matrix.Matrix, y &: matrix.Matrix, folds &: Folds, workers: int): Vector<f64>:",
      "pub func ExplainedVariance(y &: matrix.Matrix, pred &: matrix.Matrix): f64:",
      "pub func F1(y &: matrix.Matrix, pred &: matrix.Matrix, positive: f64): f64:",
      "pub func GridSearch(candidates &: Vector<Candidate>, metric: func (matrix.Matrix, matrix.Matrix) f64, x &: matrix.Matrix, y &: matrix.Matrix, folds &: Folds, workers: int): GridResult:",
      "pub func KFold(n: int, k: int, shuffle: bool, seed: i64): Folds:",
      "pub func LabelsToInts(y &: matrix.Matrix): Vector<int>:",
      "pub func LogLoss(y &: matrix.Matrix, proba &: matrix.Matrix): f64:",
      "pub func MAE(y &: matrix.Matrix, pred &: matrix.Matrix): f64:",
      "pub func MAPE(y &: matrix.Matrix, pred &: matrix.Matrix): f64:",
      "pub func MSE(y &: matrix.Matrix, pred &: matrix.Matrix): f64:",
      "pub func MacroF1(y &: matrix.Matrix, pred &: matrix.Matrix, n_classes: int): f64:",
      "pub func MatthewsCorrCoef(y &: matrix.Matrix, pred &: matrix.Matrix): f64:",
      "pub func MeanScore(scores &: Vector<f64>): f64:",
      "pub func MedianAbsoluteError(y &: matrix.Matrix, pred &: matrix.Matrix): f64:",
      "pub func NewElasticNet(alpha: f64, l1_ratio: f64): Lasso:",
      "pub func NewKDTree(x &: matrix.Matrix, leaf_size: int): KDTree:",
      "pub func Precision(y &: matrix.Matrix, pred &: matrix.Matrix, positive: f64): f64:",
      "pub func PrecisionRecallCurve(y &: matrix.Matrix, score &: matrix.Matrix): matrix.Matrix:",
      "pub func R2Score(y &: matrix.Matrix, pred &: matrix.Matrix): f64:",
      "pub func RMSE(y &: matrix.Matrix, pred &: matrix.Matrix): f64:",
      "pub func Recall(y &: matrix.Matrix, pred &: matrix.Matrix, positive: f64): f64:",
      "pub func RocAuc(y &: matrix.Matrix, score &: matrix.Matrix): f64:",
      "pub func RocCurve(y &: matrix.Matrix, score &: matrix.Matrix): matrix.Matrix:",
      "pub func SilhouetteScore(x &: matrix.Matrix, labels &: matrix.Matrix): f64:",
      "pub func StratifiedKFold(y &: matrix.Matrix, k: int, seed: i64): Folds:",
      "pub func TrainTestSplit(x &: matrix.Matrix, y &: matrix.Matrix, test_frac: f64, seed: i64): Split:",
      "pub func apply_row(x &: matrix.Matrix, i: int): f64:",
      "pub func apply_row(x &: matrix.Matrix, i: int): int:",
      "pub func build(x &: matrix.Matrix): bool:",
      "pub func count(): int: ret this.test.len() end",
      "pub func decision(x &: matrix.Matrix): matrix.Matrix:",
      "pub func decision(x &: matrix.Matrix): matrix.Matrix:",
      "pub func decision(x &: matrix.Matrix): matrix.Matrix:",
      "pub func decision(x &: matrix.Matrix): matrix.Matrix:",
      "pub func decision(x &: matrix.Matrix): matrix.Matrix:",
      "pub func fit(labels &: Vector<str>): bool:",
      "pub func fit(x &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func fit(y &: matrix.Matrix): bool:",
      "pub func fit_predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func fit_predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func fit_predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func fit_predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func fit_predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func fit_transform(labels &: Vector<str>): matrix.Matrix:",
      "pub func fit_transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func fit_transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func fit_transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func fit_transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func fit_transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func fit_transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func fit_transform(y &: matrix.Matrix): matrix.Matrix:",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free(): matrix.Free(this.centers) end",
      "pub func free(): matrix.Free(this.centers) end",
      "pub func free(): matrix.Free(this.coef) end",
      "pub func free(): matrix.Free(this.coef) end",
      "pub func free(): matrix.Free(this.coef) end",
      "pub func free(): matrix.Free(this.labels) end",
      "pub func free(): matrix.Free(this.labels) end",
      "pub func free(): matrix.Free(this.stats) end",
      "pub func free(): this.classes.free() end",
      "pub func free(): this.embedding.free() end",
      "pub func free(): this.free_all() end",
      "pub func free(): this.free_all() end",
      "pub func free(): this.free_trees() end",
      "pub func free(): this.scores.free() end",
      "pub func free_all():",
      "pub func free_all():",
      "pub func free_all():",
      "pub func free_trees():",
      "pub func index_of(label: str): int:",
      "pub func inverse_transform(onehot &: matrix.Matrix): matrix.Matrix:",
      "pub func inverse_transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func inverse_transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func inverse_transform(y &: matrix.Matrix): Vector<str>:",
      "pub func inverse_transform(z &: matrix.Matrix): matrix.Matrix:",
      "pub func inverse_transform(z &: matrix.Matrix): matrix.Matrix:",
      "pub func is_regression(): bool: ret this.criterion == TREE_MSE end",
      "pub func is_regression(): bool: ret this.criterion == TREE_MSE end",
      "pub func n_support(): int:",
      "pub func node_count(): int: ret this.feature.len() end",
      "pub func node_count(): int: ret this.node_lo.len() end",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict_proba(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict_proba(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict_proba(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict_proba(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict_proba(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict_proba(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict_proba(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict_proba(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict_proba(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict_proba(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict_proba(x &: matrix.Matrix): matrix.Matrix:",
      "pub func predict_proba(x &: matrix.Matrix): matrix.Matrix:",
      "pub func query(q &: matrix.Matrix, qi: int, k: int, dist_out &: Vector<f64>): Vector<int>:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func score(x &: matrix.Matrix, y &: matrix.Matrix): f64:",
      "pub func transform(labels &: Vector<str>): matrix.Matrix:",
      "pub func transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func transform(x &: matrix.Matrix): matrix.Matrix:",
      "pub func transform(y &: matrix.Matrix): matrix.Matrix:",
      "pub struct AdaBoost:",
      "pub struct Agglomerative:",
      "pub struct Candidate:",
      "pub struct DBSCAN:",
      "pub struct DecisionTree:",
      "pub struct Folds:",
      "pub struct GaussianMixture:",
      "pub struct GaussianNB:",
      "pub struct GradientBoosting:",
      "pub struct GridResult:",
      "pub struct HistGradientBoosting:",
      "pub struct HistTree:",
      "pub struct KDTree:",
      "pub struct KMeans:",
      "pub struct KNNClassifier:",
      "pub struct KNNRegressor:",
      "pub struct LDA:",
      "pub struct LabelEncoder:",
      "pub struct Lasso:",
      "pub struct LinearReg:",
      "pub struct LinearSVM:",
      "pub struct LogisticRegression:",
      "pub struct MinMaxScaler:",
      "pub struct MiniBatchKMeans:",
      "pub struct MultinomialNB:",
      "pub struct OneHotEncoder:",
      "pub struct PCA:",
      "pub struct PolynomialFeatures:",
      "pub struct QDA:",
      "pub struct RandomForest:",
      "pub struct Ridge:",
      "pub struct SVC:",
      "pub struct SimpleImputer:",
      "pub struct Split:",
      "pub struct StandardScaler:",
      "pub struct TSNE:",
      "pub struct TruncatedSVD:"
    ],
    "ai.nn": [
      "pub func Bind(tp &: autograd.Tape, ps &: ParamStore, h: int): int:",
      "pub func CausalMask(seq: int): tensor.Tensor:",
      "pub func Flatten(tp &: autograd.Tape, x: int): int:",
      "pub func KaimingNormal(t &: tensor.Tensor, fan_in: int, g &: tensor.Rng):",
      "pub func KaimingUniform(t &: tensor.Tensor, fan_in: int, g &: tensor.Rng):",
      "pub func LastStep(tp &: autograd.Tape, out: int, seq: int, batch: int): int:",
      "pub func LoadCheckpoint(path: str, ps &: ParamStore) throws:",
      "pub func LoadCheckpointBuf(buf: compress.ByteBuf, ps &: ParamStore) throws:",
      "pub func NewBatchNorm(ps &: ParamStore, name: str, channels: int): BatchNorm:",
      "pub func NewConv2D(ps &: ParamStore, name: str, in_ch: int, out_ch: int, k: int, stride: int, pad: int, g &: tensor.Rng): Conv2D:",
      "pub func NewEmbedding(ps &: ParamStore, name: str, vocab: int, dim: int, g &: tensor.Rng): Embedding:",
      "pub func NewGRU(ps &: ParamStore, name: str, in_f: int, hidden: int, g &: tensor.Rng): GRU:",
      "pub func NewGroupNorm(ps &: ParamStore, name: str, channels: int, groups: int): GroupNorm:",
      "pub func NewLSTM(ps &: ParamStore, name: str, in_f: int, hidden: int, g &: tensor.Rng): LSTM:",
      "pub func NewLayerNorm(ps &: ParamStore, name: str, dim: int): LayerNorm:",
      "pub func NewLinear(ps &: ParamStore, name: str, in_f: int, out_f: int, g &: tensor.Rng): Linear:",
      "pub func NewLinearNoBias(ps &: ParamStore, name: str, in_f: int, out_f: int, g &: tensor.Rng): Linear:",
      "pub func NewMultiHeadAttention(ps &: ParamStore, name: str, dim: int, heads: int, dropout: f64, g &: tensor.Rng): MultiHeadAttention:",
      "pub func NewRMSNorm(ps &: ParamStore, name: str, dim: int): RMSNorm:",
      "pub func NewTransformerDecoderLayer(ps &: ParamStore, name: str, dim: int, heads: int, ff_dim: int, dropout: f64, g &: tensor.Rng): TransformerEncoderLayer:",
      "pub func NewTransformerEncoderLayer(ps &: ParamStore, name: str, dim: int, heads: int, ff_dim: int, dropout: f64, g &: tensor.Rng): TransformerEncoderLayer:",
      "pub func SaveCheckpoint(path: str, ps &: ParamStore): bool:",
      "pub func SaveCheckpointBuf(ps &: ParamStore): compress.ByteBuf:",
      "pub func SinusoidalPositions(batch: int, seq: int, dim: int): tensor.Tensor:",
      "pub func XavierNormal(t &: tensor.Tensor, fan_in: int, fan_out: int, g &: tensor.Rng):",
      "pub func XavierUniform(t &: tensor.Tensor, fan_in: int, fan_out: int, g &: tensor.Rng):",
      "pub func add(l: dyn Layer): this.layers.push(l) end",
      "pub func add(name: str, t: tensor.Tensor): int:",
      "pub func at(h: int): Parameter: ret this.items.get(h) end",
      "pub func count(): int: ret this.items.len() end",
      "pub func forward(tp &: autograd.Tape, _ps &: ParamStore, x: int): int:",
      "pub func forward(tp &: autograd.Tape, _ps &: ParamStore, x: int): int:",
      "pub func forward(tp &: autograd.Tape, _ps &: ParamStore, x: int): int:",
      "pub func forward(tp &: autograd.Tape, ps &: ParamStore, indices &: Vector<int>): int:",
      "pub func forward(tp &: autograd.Tape, ps &: ParamStore, x: int): int:",
      "pub func forward(tp &: autograd.Tape, ps &: ParamStore, x: int): int:",
      "pub func forward(tp &: autograd.Tape, ps &: ParamStore, x: int): int:",
      "pub func forward(tp &: autograd.Tape, ps &: ParamStore, x: int): int:",
      "pub func forward(tp &: autograd.Tape, ps &: ParamStore, x: int): int:",
      "pub func forward(tp &: autograd.Tape, ps &: ParamStore, x: int): int:",
      "pub func forward(tp &: autograd.Tape, ps &: ParamStore, x: int): int:",
      "pub func forward(tp &: autograd.Tape, ps &: ParamStore, x: int, batch: int, seq: int): int:",
      "pub func forward(tp &: autograd.Tape, ps &: ParamStore, x: int, batch: int, seq: int): int:",
      "pub func forward(tp &: autograd.Tape, ps &: ParamStore, x: int, seq: int, batch: int): int:",
      "pub func forward(tp &: autograd.Tape, ps &: ParamStore, x: int, seq: int, batch: int): int:",
      "pub func forward(tp &: autograd.Tape, x: int): int:",
      "pub func forward(tp &: autograd.Tape, x: int): int:",
      "pub func forward(tp &: autograd.Tape, x: int): int:",
      "pub func free():",
      "pub func free():",
      "pub func free(): this.layers.free() end",
      "pub func zero_grad():",
      "pub struct AvgPool2D:",
      "pub struct BatchNorm:",
      "pub struct Conv2D:",
      "pub struct Dropout:",
      "pub struct Embedding:",
      "pub struct GRU:",
      "pub struct GeluLayer:",
      "pub struct GroupNorm:",
      "pub struct LSTM:",
      "pub struct LayerNorm:",
      "pub struct Linear:",
      "pub struct MaxPool2D:",
      "pub struct MultiHeadAttention:",
      "pub struct ParamStore:",
      "pub struct Parameter:",
      "pub struct RMSNorm:",
      "pub struct ReluLayer:",
      "pub struct Sequential:",
      "pub struct TanhLayer:",
      "pub struct TransformerEncoderLayer:"
    ],
    "ai.onnx": [
      "pub func LoadOnnx(path: str, ok &: bool): Model:",
      "pub func ParseOnnx(p: void*, n: int, ok &: bool): Model:",
      "pub func Run(model &: Model, inputs &: Vector<tensor.Tensor>, ok &: bool): Vector<tensor.Tensor>:",
      "pub func attr_float(name: str, dflt: f64): f64:",
      "pub func attr_index(name: str): int:",
      "pub func attr_int(name: str, dflt: i64): i64:",
      "pub func feed_names(): Vector<str>:",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub struct Attr:",
      "pub struct Model:",
      "pub struct Node:"
    ],
    "ai.optim": [
      "pub func ClipGradNorm(ps &: nn.ParamStore, max_norm: f64): f64:",
      "pub func ClipGradValue(ps &: nn.ParamStore, limit: f64):",
      "pub func CosineLR(base: f64, step: i64, total: i64, min_lr: f64): f64:",
      "pub func NewAdamW(lr: f64, weight_decay: f64): Adam:",
      "pub func StepLR(base: f64, step: i64, every: i64, gamma: f64): f64:",
      "pub func WarmupCosine(base: f64, step: i64, warmup: i64, total: i64, min_lr: f64): f64:",
      "pub func free():",
      "pub func free(): _free_state(this.sq) end",
      "pub func free(): _free_state(this.vel) end",
      "pub func step(ps &: nn.ParamStore):",
      "pub func step(ps &: nn.ParamStore):",
      "pub func step(ps &: nn.ParamStore):",
      "pub struct Adam:",
      "pub struct RMSProp:",
      "pub struct SGD:"
    ],
    "ai.tensor": [
      "pub const TSR_TOL := 1.0e-5",
      "pub func *(other: Tensor): Tensor:",
      "pub func + (other: Tensor): Tensor:",
      "pub func -(other: Tensor): Tensor:",
      "pub func / (other: Tensor): Tensor:",
      "pub func Abs(x &: Tensor): Tensor: ret _map(x, _U_ABS) end",
      "pub func Add(x &: Tensor, y &: Tensor): Tensor: ret _bin(x, y, 0) end",
      "pub func AddInPlace(dst &: Tensor, src &: Tensor):",
      "pub func AddInto(x &: Tensor, y &: Tensor, out &: Tensor): bool:",
      "pub func AddScalar(x &: Tensor, s: f64): Tensor:",
      "pub func AddScalarInPlace(dst &: Tensor, s: f64):",
      "pub func AddScaled(dst &: Tensor, src &: Tensor, alpha: f64):",
      "pub func AllClose(x &: Tensor, y &: Tensor, tol: f64): bool:",
      "pub func Arange(n: int): Tensor:",
      "pub func ArgMaxAll(x &: Tensor): int:",
      "pub func ArgMaxAxis(x &: Tensor, axis: int, keepdim: bool): Tensor:",
      "pub func AvgPool2DForward(x &: Tensor, kh: int, kw: int, sh: int, sw: int): Tensor:",
      "pub func BatchMatMul(x &: Tensor, y &: Tensor): Tensor:",
      "pub func BroadcastShape(a &: Tensor, b &: Tensor, out &: Vector<int>): bool:",
      "pub func Clip(x &: Tensor, lo: f64, hi: f64): Tensor:",
      "pub func Clone(x &: Tensor): Tensor:",
      "pub func Col2ImAcc(cols &: Tensor, dx &: Tensor, sample: int, kh: int, kw: int, sh: int, sw: int, ph: int, pw: int): bool:",
      "pub func Concat2(a &: Tensor, b &: Tensor, axis: int): Tensor:",
      "pub func Conv2DForward(x &: Tensor, w &: Tensor, bias &: Tensor, sh: int, sw: int, ph: int, pw: int): Tensor:",
      "pub func ConvOutSize(size: int, k: int, s: int, p: int): int:",
      "pub func CopyInto(dst &: Tensor, src &: Tensor):",
      "pub func Cumsum(x &: Tensor, axis: int): Tensor:",
      "pub func DeriveSeed(seed: i64, index: i64): i64:",
      "pub func Div(x &: Tensor, y &: Tensor): Tensor: ret _bin(x, y, 3) end",
      "pub func DivInto(x &: Tensor, y &: Tensor, out &: Tensor): bool:",
      "pub func DivScalar(x &: Tensor, s: f64): Tensor:",
      "pub func Dot(x &: Tensor, y &: Tensor): f64:",
      "pub func Empty(): Tensor: ret Tensor {} end",
      "pub func Equal(x &: Tensor, y &: Tensor): bool:",
      "pub func EqualMask(a &: Tensor, b &: Tensor): Tensor: ret _cmp(a, b, 4) end",
      "pub func EqualScalar(x &: Tensor, s: f64): Tensor: ret _cmp_scalar(x, s, 4) end",
      "pub func Exp(x &: Tensor): Tensor: ret _map(x, _U_EXP) end",
      "pub func Expand(x &: Tensor, shape &: Vector<int>): Tensor:",
      "pub func FillBernoulli(t &: Tensor, p: f64, g &: Rng):",
      "pub func FillNormal(t &: Tensor, mean: f64, std: f64, g &: Rng):",
      "pub func FillUniform(t &: Tensor, lo: f64, hi: f64, g &: Rng):",
      "pub func Free(x &: Tensor):",
      "pub func FromArray(shape &: Vector<int>, data &: Vector<f32>): Tensor:",
      "pub func FromMatrix(m &: matrix.Matrix): Tensor:",
      "pub func Full(shape &: Vector<int>, x: f64): Tensor:",
      "pub func Gather(x &: Tensor, axis: int, idx &: Tensor): Tensor:",
      "pub func Gelu(x &: Tensor): Tensor: ret _map(x, _U_GELU) end",
      "pub func GemmAcc(px: f32*, py: f32*, pr: f32*, n: int, k: int, m: int):",
      "pub func Greater(a &: Tensor, b &: Tensor): Tensor: ret _cmp(a, b, 0) end",
      "pub func GreaterEqual(a &: Tensor, b &: Tensor): Tensor: ret _cmp(a, b, 1) end",
      "pub func GreaterScalar(x &: Tensor, s: f64): Tensor: ret _cmp_scalar(x, s, 0) end",
      "pub func Im2Col(x &: Tensor, sample: int, kh: int, kw: int, sh: int, sw: int, ph: int, pw: int): Tensor:",
      "pub func IndexSelect(x &: Tensor, axis: int, ids &: Vector<int>): Tensor:",
      "pub func Less(a &: Tensor, b &: Tensor): Tensor: ret _cmp(a, b, 2) end",
      "pub func LessEqual(a &: Tensor, b &: Tensor): Tensor: ret _cmp(a, b, 3) end",
      "pub func LessScalar(x &: Tensor, s: f64): Tensor: ret _cmp_scalar(x, s, 2) end",
      "pub func Log(x &: Tensor): Tensor: ret _map(x, _U_LOG) end",
      "pub func LogSoftmax(x &: Tensor): Tensor:",
      "pub func MaskedFill(x &: Tensor, mask &: Tensor, value: f64): Tensor:",
      "pub func MatMul(x &: Tensor, y &: Tensor): Tensor:",
      "pub func MatMulAcc(x &: Tensor, y &: Tensor, out &: Tensor): bool:",
      "pub func MatMulInto(x &: Tensor, y &: Tensor, out &: Tensor): bool:",
      "pub func MatVec(a &: Tensor, x &: Tensor): Tensor:",
      "pub func MaxAbsDiff(x &: Tensor, y &: Tensor): f64:",
      "pub func MaxAll(x &: Tensor): f64:",
      "pub func MaxAxis(x &: Tensor, axis: int, keepdim: bool): Tensor:",
      "pub func MaxPool2DForward(x &: Tensor, kh: int, kw: int, sh: int, sw: int, argmax_out &: Tensor): Tensor:",
      "pub func MeanAll(x &: Tensor): f64:",
      "pub func MeanAxis(x &: Tensor, axis: int, keepdim: bool): Tensor:",
      "pub func MinAll(x &: Tensor): f64:",
      "pub func Mul(x &: Tensor, y &: Tensor): Tensor: ret _bin(x, y, 2) end",
      "pub func MulInPlace(dst &: Tensor, src &: Tensor):",
      "pub func MulInto(x &: Tensor, y &: Tensor, out &: Tensor): bool:",
      "pub func MulTranspose(x &: Tensor, y &: Tensor): Tensor:",
      "pub func Narrow(x &: Tensor, axis: int, start: int, len: int): Tensor:",
      "pub func Neg(x &: Tensor): Tensor: ret _map(x, _U_NEG) end",
      "pub func NewRng(seed: i64): Rng:",
      "pub func NotEqualMask(a &: Tensor, b &: Tensor): Tensor: ret _cmp(a, b, 5) end",
      "pub func OneHot(ids &: Vector<int>, classes: int): Tensor:",
      "pub func Ones(shape &: Vector<int>): Tensor: ret Full(shape, 1.0) end",
      "pub func Pad2D(x &: Tensor, pt: int, pb: int, pl: int, pr: int): Tensor:",
      "pub func Permute(x &: Tensor, perm &: Vector<int>): Tensor:",
      "pub func PowScalar(x &: Tensor, p: f64): Tensor:",
      "pub func Print(x &: Tensor):",
      "pub func RandNormal(shape &: Vector<int>, seed: i64): Tensor:",
      "pub func RandUniform(shape &: Vector<int>, lo: f64, hi: f64, seed: i64): Tensor:",
      "pub func ReadTensor(rd &: compress.ByteReader, name_out &: str, out &: Tensor) throws:",
      "pub func Relu(x &: Tensor): Tensor: ret _map(x, _U_RELU) end",
      "pub func Reshape(x &: Tensor, shape &: Vector<int>): Tensor:",
      "pub func SameShape(x &: Tensor, y &: Tensor): bool: ret x.same_shape(y) end",
      "pub func Scalar(x: f64): Tensor:",
      "pub func Scale(x &: Tensor, s: f64): Tensor:",
      "pub func ScaleInPlace(dst &: Tensor, s: f64):",
      "pub func ScatterAddRows(dst &: Tensor, ids &: Vector<int>, src &: Tensor): bool:",
      "pub func SetAll(x &: Tensor, v: f64):",
      "pub func SetThreads(n: int): _tsr_threads = n end",
      "pub func Shape1(n: int): Vector<int>:",
      "pub func Shape2(a: int, b: int): Vector<int>:",
      "pub func Shape3(a: int, b: int, c: int): Vector<int>:",
      "pub func Shape4(a: int, b: int, c: int, d: int): Vector<int>:",
      "pub func ShapeString(x &: Tensor): str:",
      "pub func Sigmoid(x &: Tensor): Tensor: ret _map(x, _U_SIGMOID) end",
      "pub func Silu(x &: Tensor): Tensor: ret _map(x, _U_SILU) end",
      "pub func SliceAxis0(x &: Tensor, start: int, len: int): Tensor:",
      "pub func Softmax(x &: Tensor): Tensor:",
      "pub func Sqrt(x &: Tensor): Tensor: ret _map(x, _U_SQRT) end",
      "pub func Square(x &: Tensor): Tensor: ret _map(x, _U_SQUARE) end",
      "pub func SqueezeInPlace(x &: Tensor):",
      "pub func Stack2(a &: Tensor, b &: Tensor): Tensor:",
      "pub func Sub(x &: Tensor, y &: Tensor): Tensor: ret _bin(x, y, 1) end",
      "pub func SubInPlace(dst &: Tensor, src &: Tensor):",
      "pub func SubInto(x &: Tensor, y &: Tensor, out &: Tensor): bool:",
      "pub func SubScalar(x &: Tensor, s: f64): Tensor: ret AddScalar(x, 0.0 - s) end",
      "pub func SumAll(x &: Tensor): f64:",
      "pub func SumAxis(x &: Tensor, axis: int, keepdim: bool): Tensor:",
      "pub func TakeRows(x &: Tensor, ids &: Vector<int>): Tensor: ret IndexSelect(x, 0, ids) end",
      "pub func Tanh(x &: Tensor): Tensor: ret _map(x, _U_TANH) end",
      "pub func Threads(): int:",
      "pub func ToMatrix(x &: Tensor): matrix.Matrix:",
      "pub func ToString(x &: Tensor): str:",
      "pub func TopK(x &: Tensor, k: int, largest: bool, idx_out &: Tensor): Tensor:",
      "pub func Transpose2D(x &: Tensor): Tensor:",
      "pub func TransposeMul(x &: Tensor, y &: Tensor): Tensor:",
      "pub func TransposeRaw(px: f32*, n: int, m: int): Tensor:",
      "pub func Tril(x &: Tensor, diagonal: int): Tensor: ret _tri(x, diagonal, true) end",
      "pub func Triu(x &: Tensor, diagonal: int): Tensor: ret _tri(x, diagonal, false) end",
      "pub func UnsqueezeInPlace(x &: Tensor, axis: int):",
      "pub func Where(cond &: Tensor, a &: Tensor, b &: Tensor): Tensor:",
      "pub func WriteTensor(buf &: compress.ByteBuf, name: str, t &: Tensor): bool:",
      "pub func Zeros(shape &: Vector<int>): Tensor:",
      "pub func Zeros1(n: int): Tensor:",
      "pub func Zeros2(r: int, c: int): Tensor:",
      "pub func Zeros3(a: int, b: int, c: int): Tensor:",
      "pub func Zeros4(a: int, b: int, c: int, d: int): Tensor:",
      "pub func add_at(i: int, v: f64):",
      "pub func at(i: int): f64: ret this.data.get(i) as f64 end",
      "pub func at2(i: int, j: int): f64:",
      "pub func dim(i: int): int: ret this.shape.get(i) end",
      "pub func free():",
      "pub func is_empty(): bool: ret this.data.len() == 0 end",
      "pub func next_bits(): u64:",
      "pub func next_float(): f64:",
      "pub func next_normal(): f64:",
      "pub func numel(): int:",
      "pub func rank(): int: ret this.shape.len() end",
      "pub func reshape_(shape &: Vector<int>): bool:",
      "pub func same_shape(o &: Tensor): bool:",
      "pub func set_at(i: int, v: f64): this.data.set(i, v as f32) end",
      "pub func set_at2(i: int, j: int, v: f64):",
      "pub struct Rng:",
      "pub struct Tensor:"
    ],
    "arabic": [
      "pub const FoldAlef := 16",
      "pub const FoldDigits := 8",
      "pub const FoldLetters := 1",
      "pub const FoldPresentation := 128",
      "pub const FoldTehMarbuta := 32",
      "pub const StripHarakat := 2",
      "pub const StripTatweel := 4",
      "pub const StripZWNJ := 64",
      "pub func EqualLoose(a: str, b: str): bool:",
      "pub func Normalize(s: str, flags: int): str:",
      "pub func NormalizePersian(s: str): str:",
      "pub func SearchKey(s: str): str:",
      "pub inline pure func IsTatweel(cp: int): bool:",
      "pub pure func IsArabicScript(cp: int): bool:",
      "pub pure func IsHaraka(cp: int): bool:"
    ],
    "archive": [
      "pub const ARCHIVE_BAD_CRC := 5",
      "pub const ARCHIVE_BAD_PASSWORD := 8",
      "pub const ARCHIVE_BOMB := 13",
      "pub const ARCHIVE_CORRUPT := 4",
      "pub const ARCHIVE_ENCRYPTED := 3",
      "pub const ARCHIVE_IO_ERROR := 10",
      "pub const ARCHIVE_MULTIVOLUME := 9",
      "pub const ARCHIVE_NOT_FOUND := 1",
      "pub const ARCHIVE_OK := 0",
      "pub const ARCHIVE_TOO_BIG := 6",
      "pub const ARCHIVE_TOO_MANY_ENTRIES := 12",
      "pub const ARCHIVE_UNKNOWN_FORMAT := 11",
      "pub const ARCHIVE_UNSAFE_PATH := 7",
      "pub const ARCHIVE_UNSUPPORTED := 2",
      "pub const ARCHIVE_WINDOW_TOO_BIG := 14",
      "pub const FormatBzip2 := 7",
      "pub const FormatGzip := 6",
      "pub const FormatRar := 9",
      "pub const FormatSevenZip := 10",
      "pub const FormatTar := 2",
      "pub const FormatTarBz2 := 4",
      "pub const FormatTarGz := 3",
      "pub const FormatTarXz := 5",
      "pub const FormatTarZstd := 12",
      "pub const FormatUnknown := 0",
      "pub const FormatXz := 8",
      "pub const FormatZip := 1",
      "pub const FormatZstd := 11",
      "pub const RAR_BAD_CRC := 5",
      "pub const RAR_BAD_PASSWORD := 9",
      "pub const RAR_CORRUPT := 4",
      "pub const RAR_ENCRYPTED := 3",
      "pub const RAR_MULTIVOLUME := 6",
      "pub const RAR_NOT_FOUND := 1",
      "pub const RAR_OK := 0",
      "pub const RAR_TOO_BIG := 7",
      "pub const RAR_UNSAFE_PATH := 8",
      "pub const RAR_UNSUPPORTED := 2",
      "pub const RAR_WINDOW_TOO_BIG := 10",
      "pub const SEVENZIP_BAD_CRC := 5",
      "pub const SEVENZIP_BAD_PASSWORD := 8",
      "pub const SEVENZIP_CORRUPT := 4",
      "pub const SEVENZIP_ENCRYPTED := 3",
      "pub const SEVENZIP_IO := 10",
      "pub const SEVENZIP_NOT_FOUND := 1",
      "pub const SEVENZIP_OK := 0",
      "pub const SEVENZIP_TOO_BIG := 6",
      "pub const SEVENZIP_UNSAFE_PATH := 7",
      "pub const SEVENZIP_UNSUPPORTED := 2",
      "pub const TAR_CORRUPT := 4",
      "pub const TAR_IO := 7",
      "pub const TAR_NOT_FOUND := 1",
      "pub const TAR_OK := 0",
      "pub const TAR_TOO_BIG := 6",
      "pub const TAR_UNSAFE_PATH := 8",
      "pub const ZIP_BAD_CRC := 5",
      "pub const ZIP_BAD_PASSWORD := 11",
      "pub const ZIP_CORRUPT := 4",
      "pub const ZIP_ENCRYPTED := 3",
      "pub const ZIP_IO := 7",
      "pub const ZIP_MULTIVOLUME := 9",
      "pub const ZIP_NOT_FOUND := 1",
      "pub const ZIP_OK := 0",
      "pub const ZIP_TOO_BIG := 6",
      "pub const ZIP_UNSAFE_PATH := 8",
      "pub const ZIP_UNSUPPORTED := 2",
      "pub const ZipEncAes128 := 2",
      "pub const ZipEncAes192 := 3",
      "pub const ZipEncAes256 := 4",
      "pub const ZipEncAuto := 0",
      "pub const ZipEncZipCrypto := 1",
      "pub const ZipMethodBzip2 := 12",
      "pub const ZipMethodDeflate := 8",
      "pub const ZipMethodDeflate64 := 9",
      "pub const ZipMethodLzma := 14",
      "pub const ZipMethodStore := 0",
      "pub const ZipMethodZstd := 93",
      "pub const ZipSplitByte := 1",
      "pub const ZipSplitDisk := 0",
      "pub func ArchiveStatusText(status: int): str:",
      "pub func Bzip2CompressFile(inpath: str, outpath: str): bool:",
      "pub func Bzip2CompressFileLevel(inpath: str, outpath: str, level: int): bool:",
      "pub func Bzip2DecompressFile(inpath: str, outpath: str): bool:",
      "pub func Bzip2DecompressFileCap(inpath: str, outpath: str, cap: i64): int:",
      "pub func Close(arc &: Archive):",
      "pub func Create(path: str, files: Vector<FileInput>): int:",
      "pub func CreateBuf(format: int, files: Vector<FileInput>, status &: int): compress.ByteBuf:",
      "pub func DefaultLimits(): Limits:",
      "pub func Detect(p: void*, n: int): int:",
      "pub func DetectName(path: str): int:",
      "pub func EnsureDir(dir: str):",
      "pub func Extract(arc &: Archive, name: str, destdir: str): bool:",
      "pub func ExtractAll(arc &: Archive, destdir: str): int:",
      "pub func ExtractFile(path: str, destdir: str, password: str, status &: int): int:",
      "pub func FormatName(format: int): str:",
      "pub func FreeEntries(v &: Vector<Entry>):",
      "pub func FreeEntry(e &: Entry):",
      "pub func GzipCompressFile(inpath: str, outpath: str): bool:",
      "pub func GzipDecompressFile(inpath: str, outpath: str): bool:",
      "pub func GzipDecompressFileCap(inpath: str, outpath: str, cap: i64): int:",
      "pub func IsRar(p: void*, n: int): bool:",
      "pub func IsSevenZip(p: void*, n: int): bool:",
      "pub func LEGet16(p: void*, off: int): int:",
      "pub func LEGet32(p: void*, off: int): int:",
      "pub func LEPut16(b &: compress.ByteBuf, v: int):",
      "pub func LEPut32(b &: compress.ByteBuf, v: int):",
      "pub func List(arc &: Archive): Vector<Entry>:",
      "pub func ListFile(path: str, password: str, status &: int): Vector<Entry>:",
      "pub func LzmaCompressFile(inpath: str, outpath: str): bool:",
      "pub func LzmaCompressFileLevel(inpath: str, outpath: str, level: int): bool:",
      "pub func LzmaDecompressFile(inpath: str, outpath: str): bool:",
      "pub func LzmaDecompressFileCap(inpath: str, outpath: str, cap: i64): int:",
      "pub func MakeFileInput(name: str, data_ptr: void*, data_len: int, is_dir: bool): FileInput:",
      "pub func MakeRarFileInput(name: str, data_ptr: void*, data_len: int, is_dir: bool): RarFileInput:",
      "pub func MakeSevenZipFileInput(name: str, data_ptr: void*, data_len: int, is_dir: bool): SevenZipFileInput:",
      "pub func MakeSevenZipFilePath(name: str, path: str): SevenZipFileInput:",
      "pub func MakeTarFileInput(name: str, data_ptr: void*, data_len: int, is_dir: bool): TarFileInput:",
      "pub func MakeTarFilePath(name: str, path: str): TarFileInput:",
      "pub func MakeTarHardlink(name: str, target: str): TarFileInput:",
      "pub func MakeTarSymlink(name: str, target: str): TarFileInput:",
      "pub func MakeZipFileInput(name: str, data_ptr: void*, data_len: int, method: int): ZipFileInput:",
      "pub func MakeZipFileInputEncrypted(name: str, data_ptr: void*, data_len: int, method: int, level: int, password: str, encryption: int): ZipFileInput:",
      "pub func MakeZipFileInputLevel(name: str, data_ptr: void*, data_len: int, method: int, level: int): ZipFileInput:",
      "pub func MakeZipFilePath(name: str, path: str, method: int, level: int): ZipFileInput:",
      "pub func Open(p: void*, n: int, password: str): Archive:",
      "pub func OpenFile(path: str, password: str): Archive:",
      "pub func OpenWith(p: void*, n: int, password: str, limits: Limits): Archive:",
      "pub func RarClose(arc &: RarArchive):",
      "pub func RarCreate(files: Vector<RarFileInput>): compress.ByteBuf:",
      "pub func RarCreateFile(files: Vector<RarFileInput>, outpath: str): bool:",
      "pub func RarEntries(arc &: RarArchive): Vector<Entry>:",
      "pub func RarExtract(p: void*, n: int, name: str, max: int, status &: int): compress.ByteBuf:",
      "pub func RarExtractAll(p: void*, n: int, destdir: str): bool:",
      "pub func RarExtractAllStatus(p: void*, n: int, destdir: str, status &: int): int:",
      "pub func RarExtractByName(p: void*, n: int, name: str, ok &: bool): compress.ByteBuf:",
      "pub func RarExtractByNameMax(p: void*, n: int, name: str, max: int, ok &: bool): compress.ByteBuf:",
      "pub func RarFileClose(rf &: RarFile):",
      "pub func RarFileEntries(rf &: RarFile): Vector<Entry>:",
      "pub func RarFileExtractAll(rf &: RarFile, destdir: str, cap: i64, memcap: i64): int:",
      "pub func RarFileExtractTo(rf &: RarFile, name: str, destpath: str, cap: i64, memcap: i64): int:",
      "pub func RarFileOpen(path: str): RarFile:",
      "pub func RarFileOpenVolumes(first: str, password: str): RarFile:",
      "pub func RarFileOpenWith(path: str, password: str): RarFile:",
      "pub func RarFreeVolumes(vols &: Vector<compress.ByteBuf>):",
      "pub func RarList(p: void*, n: int): Vector<Entry>:",
      "pub func RarOpen(p: void*, n: int, password: str): RarArchive:",
      "pub func RarOpenVolumes(vols: Vector<compress.ByteBuf>, password: str): RarArchive:",
      "pub func RarRead(arc &: RarArchive, name: str, max: int): compress.ByteBuf:",
      "pub func RarReadAll(arc &: RarArchive, destdir: str): int:",
      "pub func RarReadVolumes(first: str, ok &: bool): Vector<compress.ByteBuf>:",
      "pub func RarStatusText(status: int): str:",
      "pub func Read(arc &: Archive, name: str): compress.ByteBuf:",
      "pub func ReadBinaryFile(path: str, ok &: bool): compress.ByteBuf:",
      "pub func SetLimits(arc &: Archive, limits: Limits):",
      "pub func SetWriteChunk(n: int):",
      "pub func SevenZipClose(arc &: SevenZipArchive):",
      "pub func SevenZipCreate(files: Vector<SevenZipFileInput>): compress.ByteBuf:",
      "pub func SevenZipCreateFile(files: Vector<SevenZipFileInput>, path: str): bool:",
      "pub func SevenZipCreateFileLevel(files: Vector<SevenZipFileInput>, path: str, level: int): bool:",
      "pub func SevenZipCreateLevel(files: Vector<SevenZipFileInput>, level: int): compress.ByteBuf:",
      "pub func SevenZipEntries(arc &: SevenZipArchive): Vector<Entry>:",
      "pub func SevenZipEntriesOf(arc &: SevenZipArchive): Vector<Entry>:",
      "pub func SevenZipExtract(p: void*, n: int, name: str, max: int, status &: int): compress.ByteBuf:",
      "pub func SevenZipExtractAll(p: void*, n: int, destdir: str): bool:",
      "pub func SevenZipExtractAllStatus(p: void*, n: int, destdir: str, status &: int): int:",
      "pub func SevenZipExtractByName(p: void*, n: int, name: str, ok &: bool): compress.ByteBuf:",
      "pub func SevenZipExtractByNameMax(p: void*, n: int, name: str, max: int, ok &: bool): compress.ByteBuf:",
      "pub func SevenZipFileClose(sf &: SevenZipFile):",
      "pub func SevenZipFileEntries(sf &: SevenZipFile): Vector<Entry>:",
      "pub func SevenZipFileExtractAll(sf &: SevenZipFile, destdir: str, cap: i64, memcap: i64): int:",
      "pub func SevenZipFileExtractTo(sf &: SevenZipFile, name: str, destpath: str, cap: i64, memcap: i64): int:",
      "pub func SevenZipFreeVolumes(vols &: Vector<compress.ByteBuf>):",
      "pub func SevenZipList(p: void*, n: int): Vector<Entry>:",
      "pub func SevenZipListStatus(p: void*, n: int, status &: int): Vector<Entry>:",
      "pub func SevenZipOpen(p: void*, n: int, password: str): SevenZipArchive:",
      "pub func SevenZipOpenFile(path: str, password: str): SevenZipFile:",
      "pub func SevenZipOpenVolumes(vols: Vector<compress.ByteBuf>, password: str): SevenZipArchive:",
      "pub func SevenZipRead(arc &: SevenZipArchive, name: str, max: int): compress.ByteBuf:",
      "pub func SevenZipReadAll(arc &: SevenZipArchive, destdir: str): int:",
      "pub func SevenZipReadAllCap(arc &: SevenZipArchive, destdir: str, cap: i64, memcap: i64): int:",
      "pub func SevenZipReadCap(arc &: SevenZipArchive, name: str, cap: i64): compress.ByteBuf:",
      "pub func SevenZipReadVolumes(first: str, ok &: bool): Vector<compress.ByteBuf>:",
      "pub func SevenZipStatusText(status: int): str:",
      "pub func TarBz2CreateFile(files: Vector<TarFileInput>, outpath: str): bool:",
      "pub func TarBz2CreateFileLevel(files: Vector<TarFileInput>, outpath: str, level: int): bool:",
      "pub func TarBz2FileExtractAll(path: str, destdir: str, cap: i64): int:",
      "pub func TarCompressedFileEntries(path: str, format: int, status &: int): Vector<Entry>:",
      "pub func TarCompressedFileExtractAll(path: str, format: int, destdir: str, cap: i64): int:",
      "pub func TarCompressedFileExtractTo(path: str, format: int, name: str, destpath: str, cap: i64, total: i64): int:",
      "pub func TarCreate(files: Vector<TarFileInput>): compress.ByteBuf:",
      "pub func TarCreateFile(files: Vector<TarFileInput>, outpath: str): bool:",
      "pub func TarExtractAll(p: void*, n: int, destdir: str): bool:",
      "pub func TarExtractByName(p: void*, n: int, name: str, ok &: bool): compress.ByteBuf:",
      "pub func TarFileClose(tf &: TarFile):",
      "pub func TarFileEntries(tf &: TarFile): Vector<Entry>:",
      "pub func TarFileExtractAll(path: str, destdir: str, cap: i64): int:",
      "pub func TarFileExtractTo(tf &: TarFile, e: Entry, destpath: str, cap: i64): int:",
      "pub func TarFileNext(tf &: TarFile, e &: Entry): bool:",
      "pub func TarFileOpen(path: str): TarFile:",
      "pub func TarFileRewind(tf &: TarFile):",
      "pub func TarGzCreate(files: Vector<TarFileInput>): compress.ByteBuf:",
      "pub func TarGzCreateFile(files: Vector<TarFileInput>, outpath: str): bool:",
      "pub func TarGzExtractAll(p: void*, n: int, destdir: str): bool:",
      "pub func TarGzExtractAllMax(p: void*, n: int, destdir: str, max: int): bool:",
      "pub func TarGzExtractByName(p: void*, n: int, name: str, ok &: bool): compress.ByteBuf:",
      "pub func TarGzExtractByNameMax(p: void*, n: int, name: str, max: int, ok &: bool): compress.ByteBuf:",
      "pub func TarGzFileExtractAll(path: str, destdir: str, cap: i64): int:",
      "pub func TarGzList(p: void*, n: int, ok &: bool): Vector<Entry>:",
      "pub func TarGzListMax(p: void*, n: int, max: int, ok &: bool): Vector<Entry>:",
      "pub func TarList(p: void*, n: int): Vector<Entry>:",
      "pub func TarStatusText(status: int): str:",
      "pub func TarXzFileExtractAll(path: str, destdir: str, cap: i64): int:",
      "pub func TarZstdCreate(files: Vector<TarFileInput>): compress.ByteBuf:",
      "pub func TarZstdCreateFile(files: Vector<TarFileInput>, outpath: str): bool:",
      "pub func TarZstdCreateFileLevel(files: Vector<TarFileInput>, outpath: str, level: int): bool:",
      "pub func TarZstdExtractAll(p: void*, n: int, destdir: str): bool:",
      "pub func TarZstdExtractAllMax(p: void*, n: int, destdir: str, max: int): bool:",
      "pub func TarZstdExtractByName(p: void*, n: int, name: str, ok &: bool): compress.ByteBuf:",
      "pub func TarZstdExtractByNameMax(p: void*, n: int, name: str, max: int, ok &: bool): compress.ByteBuf:",
      "pub func TarZstdFileExtractAll(path: str, destdir: str, cap: i64): int:",
      "pub func TarZstdList(p: void*, n: int, ok &: bool): Vector<Entry>:",
      "pub func TarZstdListMax(p: void*, n: int, max: int, ok &: bool): Vector<Entry>:",
      "pub func WriteBinaryFile(path: str, p: void*, n: int): bool:",
      "pub func WriteBinaryFileBuf(path: str, b: compress.ByteBuf): bool:",
      "pub func XzCompressFile(inpath: str, outpath: str): bool:",
      "pub func XzCompressFileLevel(inpath: str, outpath: str, level: int): bool:",
      "pub func XzDecompressFile(inpath: str, outpath: str): bool:",
      "pub func XzDecompressFileCap(inpath: str, outpath: str, cap: i64): int:",
      "pub func ZipBadEntries(p: void*, n: int): Vector<Entry>:",
      "pub func ZipCreate(files: Vector<ZipFileInput>): compress.ByteBuf:",
      "pub func ZipCreate64(files: Vector<ZipFileInput>): compress.ByteBuf:",
      "pub func ZipCreateFile(files: Vector<ZipFileInput>, outpath: str): bool:",
      "pub func ZipCreateFile64(files: Vector<ZipFileInput>, outpath: str): bool:",
      "pub func ZipCreateFileSplit(files: Vector<ZipFileInput>, outpath: str, part_size: i64, style: int): bool:",
      "pub func ZipExtractAll(p: void*, n: int, destdir: str): bool:",
      "pub func ZipExtractByName(p: void*, n: int, name: str, ok &: bool): compress.ByteBuf:",
      "pub func ZipExtractByNameMax(p: void*, n: int, name: str, max: int, ok &: bool): compress.ByteBuf:",
      "pub func ZipExtractVerified(p: void*, n: int, name: str, max: int, status &: int): compress.ByteBuf:",
      "pub func ZipFileClose(zf &: ZipFile):",
      "pub func ZipFileEntries(zf &: ZipFile): Vector<Entry>:",
      "pub func ZipFileExtractAll(zf &: ZipFile, destdir: str, cap: i64): int:",
      "pub func ZipFileExtractTo(zf &: ZipFile, name: str, destpath: str, cap: i64): int:",
      "pub func ZipFileSetPassword(zf &: ZipFile, password: str):",
      "pub func ZipList(p: void*, n: int): Vector<Entry>:",
      "pub func ZipOpenFile(path: str): ZipFile:",
      "pub func ZipStatusText(status: int): str:",
      "pub func ZipVerify(p: void*, n: int, checked &: int): int:",
      "pub func ZstdCompressFile(inpath: str, outpath: str): bool:",
      "pub func ZstdCompressFileLevel(inpath: str, outpath: str, level: int): bool:",
      "pub func ZstdDecompressFile(inpath: str, outpath: str): bool:",
      "pub func ZstdDecompressFileCap(inpath: str, outpath: str, cap: i64): int:",
      "pub struct Archive:",
      "pub struct Entry:",
      "pub struct FileInput:",
      "pub struct Limits:",
      "pub struct RarArchive:",
      "pub struct RarFile:",
      "pub struct RarFileInput:",
      "pub struct SevenZipArchive:",
      "pub struct SevenZipFile:",
      "pub struct SevenZipFileInput:",
      "pub struct TarFile:",
      "pub struct TarFileInput:",
      "pub struct ZipFile:",
      "pub struct ZipFileInput:"
    ],
    "atomic": [
      "pub func Add(a: I64, delta: i64): i64: ret cell_add(a, delta) end",
      "pub func CompareAndSwap(a: I64, expected: i64, next: i64): bool:",
      "pub func DestroyFlag(f: Flag):",
      "pub func DestroyI64(a: I64): cell_free(a) end",
      "pub func Get(f: Flag): bool:",
      "pub func Load(a: I64): i64: ret cell_load(a) end",
      "pub func NewFlag(v: bool): Flag:",
      "pub func NewI64(v: i64): I64: ret cell_new(v) end",
      "pub func Set(f: Flag, v: bool):",
      "pub func Store(a: I64, v: i64): cell_store(a, v) end",
      "pub func Swap(a: I64, v: i64): i64: ret cell_swap(a, v) end",
      "pub func TestAndSet(f: Flag): bool:",
      "pub struct Flag:",
      "pub struct I64:"
    ],
    "audio": [
      "pub const FormatAAC := 8",
      "pub const FormatAIFF := 5",
      "pub const FormatAU := 6",
      "pub const FormatFLAC := 3",
      "pub const FormatMIDI := 9",
      "pub const FormatMP3 := 2",
      "pub const FormatOGG := 4",
      "pub const FormatOpus := 7",
      "pub const FormatUnknown := 0",
      "pub const FormatWAV := 1",
      "pub const MaxSamples := 536870912",
      "pub const SilenceFloorDb := -200.0",
      "pub func ALawToPcm(b: int): int:",
      "pub func AddSample(c &: Clip, frame: int, ch: int, v: f64):",
      "pub func Channel(c: Clip, ch: int): Clip:",
      "pub func Clamp(c &: Clip):",
      "pub func Clone(c: Clip): Clip:",
      "pub func Concat(a: Clip, b: Clip): Clip:",
      "pub func CountClipped(c: Clip): int:",
      "pub func Data(c: Clip): f32*:",
      "pub func DbToGain(db: f64): f64:",
      "pub func DcOffset(c: Clip): f64:",
      "pub func DecodeFloatPcm(p: void*, total: int, off: int, c &: Clip, bits: int, big: bool): bool:",
      "pub func DecodeLawPcm(p: void*, off: int, c &: Clip, alaw: bool): bool:",
      "pub func DecodePcm(p: void*, off: int, c &: Clip, bits: int, big: bool, unsigned8: bool): bool:",
      "pub func Deinterleave(c: Clip): Vector<Clip>:",
      "pub func DetectFormat(p: void*, n: int): int:",
      "pub func Duration(c: Clip): f64:",
      "pub func EncodeFloatPcm(b &: compress.ByteBuf, c: Clip, bits: int, big: bool):",
      "pub func EncodeLawPcm(b &: compress.ByteBuf, c: Clip, alaw: bool):",
      "pub func EncodePcm(b &: compress.ByteBuf, c: Clip, bits: int, big: bool, unsigned8: bool):",
      "pub func FadeIn(c &: Clip, seconds: f64):",
      "pub func FadeOut(c &: Clip, seconds: f64):",
      "pub func FirstSound(c: Clip, threshold_db: f64): int:",
      "pub func FormatFromExt(path: str): int:",
      "pub func FormatIsLossless(format: int): bool:",
      "pub func FormatName(format: int): str:",
      "pub func FrameAt(c: Clip, seconds: f64): int:",
      "pub func Free(c &: Clip):",
      "pub func Gain(c &: Clip, db: f64):",
      "pub func GainToDb(gain: f64): f64:",
      "pub func InBounds(c: Clip, frame: int, ch: int): bool:",
      "pub func Interleave(parts: Vector<Clip>): Clip:",
      "pub func IsClipped(c: Clip): bool:",
      "pub func IsEmpty(c: Clip): bool:",
      "pub func IsSilent(c: Clip, threshold_db: f64): bool:",
      "pub func LastSound(c: Clip, threshold_db: f64): int:",
      "pub func Mix(a: Clip, b: Clip, gain_a: f64, gain_b: f64): Clip:",
      "pub func MixAt(dst &: Clip, src: Clip, at_frame: int, gain: f64):",
      "pub func MsbAlign(r &: MsbReader):",
      "pub func MsbBad(r: MsbReader): bool:",
      "pub func MsbFinish(w &: MsbWriter): compress.ByteBuf:",
      "pub func MsbFree(w &: MsbWriter):",
      "pub func MsbLeft(r: MsbReader): int:",
      "pub func MsbLen(w &: MsbWriter): int:",
      "pub func MsbPad(w &: MsbWriter):",
      "pub func MsbRead(r &: MsbReader, count: int): int:",
      "pub func MsbReadBit(r &: MsbReader): int:",
      "pub func MsbReadI64(r &: MsbReader, count: int): i64:",
      "pub func MsbReadSigned(r &: MsbReader, count: int): int:",
      "pub func MsbReaderFromBuf(b: compress.ByteBuf): MsbReader:",
      "pub func MsbSeek(r &: MsbReader, bitpos: int):",
      "pub func MsbSkip(r &: MsbReader, count: int):",
      "pub func MsbTell(r: MsbReader): int:",
      "pub func MsbUnary(r &: MsbReader): int:",
      "pub func MsbWrite(w &: MsbWriter, value: i64, count: int):",
      "pub func MsbWriteBit(w &: MsbWriter, bit: int):",
      "pub func MsbWriteUnary(w &: MsbWriter, n: int):",
      "pub func MuLawToPcm(b: int): int:",
      "pub func New(rate: int, channels: int, frames: int): Clip:",
      "pub func NewMsbReader(p: void*, n: int): MsbReader:",
      "pub func NewMsbWriter(): MsbWriter:",
      "pub func NewSilence(rate: int, channels: int, seconds: f64): Clip:",
      "pub func Normalize(c &: Clip, target_db: f64):",
      "pub func Pad(c: Clip, before_s: f64, after_s: f64): Clip:",
      "pub func PcmDepthValid(bits: int): bool:",
      "pub func PcmToALaw(sample: int): int:",
      "pub func PcmToMuLaw(sample: int): int:",
      "pub func Peak(c: Clip): f64:",
      "pub func PeakChannel(c: Clip, ch: int): f64:",
      "pub func PeakDb(c: Clip): f64:",
      "pub func RMS(c: Clip): f64:",
      "pub func RMSDb(c: Clip): f64:",
      "pub func RMSRange(c: Clip, from_frame: int, count: int): f64:",
      "pub func Repeat(c: Clip, times: int): Clip:",
      "pub func Reverse(c &: Clip):",
      "pub func Sample(c: Clip, frame: int, ch: int): f64:",
      "pub func SampleCount(c: Clip): int:",
      "pub func Scale(c &: Clip, factor: f64):",
      "pub func SecondsAt(c: Clip, frame: int): f64:",
      "pub func SetSample(c &: Clip, frame: int, ch: int, v: f64):",
      "pub func Silence(c &: Clip):",
      "pub func Slice(c: Clip, from_frame: int, count: int): Clip:",
      "pub func Split(c: Clip, at_s: f64, head &: Clip, tail &: Clip):",
      "pub func ToBits(c: Clip, bits: int): Clip:",
      "pub func ToChannels(c: Clip, channels: int): Clip:",
      "pub func ToMono(c: Clip): Clip:",
      "pub func ToRate(c: Clip, rate: int): Clip:",
      "pub func ToStereo(c: Clip): Clip:",
      "pub func Trim(c: Clip, from_s: f64, to_s: f64): Clip:",
      "pub func TrimSilence(c: Clip, threshold_db: f64): Clip:",
      "pub struct Clip:",
      "pub struct Info:",
      "pub struct MsbReader:",
      "pub struct MsbWriter:"
    ],
    "audio.aiff": [
      "pub const CompALaw := 4",
      "pub const CompFloat32 := 2",
      "pub const CompFloat64 := 3",
      "pub const CompMuLaw := 5",
      "pub const CompNone := 0",
      "pub const CompSowt := 1",
      "pub func DecodeAIFF(p: void*, n: int, ok &: bool): audio.Clip:",
      "pub func EncodeAIFF(c: audio.Clip): compress.ByteBuf:",
      "pub func EncodeAIFFBits(c: audio.Clip, bits: int): compress.ByteBuf:",
      "pub func IsAIFF(p: void*, n: int): bool:",
      "pub func OpenAIFF(path: str, ok &: bool): audio.Clip:",
      "pub func ProbeAIFF(p: void*, n: int, ok &: bool): audio.Info:",
      "pub func ReadCommon(p: void*, n: int, out &: Common): bool:",
      "pub func SaveAIFF(c: audio.Clip, path: str): bool:",
      "pub func SaveAIFFBits(c: audio.Clip, path: str, bits: int): bool:",
      "pub struct Common:"
    ],
    "audio.au": [
      "pub const EncALaw := 27",
      "pub const EncFloat32 := 6",
      "pub const EncFloat64 := 7",
      "pub const EncMuLaw := 1",
      "pub const EncPcm16 := 3",
      "pub const EncPcm24 := 4",
      "pub const EncPcm32 := 5",
      "pub const EncPcm8 := 2",
      "pub const HeaderSize := 24",
      "pub func DecodeAU(p: void*, n: int, ok &: bool): audio.Clip:",
      "pub func EncodeAU(c: audio.Clip): compress.ByteBuf:",
      "pub func EncodeAUEncoding(c: audio.Clip, encoding: int): compress.ByteBuf:",
      "pub func IsAU(p: void*, n: int): bool:",
      "pub func OpenAU(path: str, ok &: bool): audio.Clip:",
      "pub func ProbeAU(p: void*, n: int, ok &: bool): audio.Info:",
      "pub func ReadHeader(p: void*, n: int, out &: Header): bool:",
      "pub func SaveAU(c: audio.Clip, path: str): bool:",
      "pub struct Header:"
    ],
    "audio.codec": [
      "pub func CanDecode(format: int): bool:",
      "pub func CanEncode(format: int): bool:",
      "pub func Decode(p: void*, n: int, ok &: bool): audio.Clip:",
      "pub func Encode(c: audio.Clip, format: int): compress.ByteBuf:",
      "pub func Formats(): Vector<int>:",
      "pub func Open(path: str, ok &: bool): audio.Clip:",
      "pub func Probe(p: void*, n: int, ok &: bool): audio.Info:",
      "pub func ProbeFile(path: str, ok &: bool): audio.Info:",
      "pub func Save(c: audio.Clip, path: str): bool:"
    ],
    "audio.dsp": [
      "pub const KaiserBeta := 8.6",
      "pub const QualityCubic := 1",
      "pub const QualityLinear := 0",
      "pub const QualitySinc := 2",
      "pub const WindowBlackman := 3",
      "pub const WindowBlackmanHarris := 4",
      "pub const WindowHamming := 2",
      "pub const WindowHann := 1",
      "pub const WindowKaiser := 7",
      "pub const WindowRectangular := 0",
      "pub const WindowSine := 5",
      "pub const WindowVorbis := 6",
      "pub func AllPass(freq: f64, q: f64, rate: int): Biquad:",
      "pub func ApplyWindow(p: f64*, n: int, kind: int, param: f64):",
      "pub func BandPass(freq: f64, q: f64, rate: int): Biquad:",
      "pub func BesselI0(x: f64): f64:",
      "pub func BinFrequency(bin: int, n: int, rate: int): f64:",
      "pub func BiquadProcess(f &: Biquad, c &: audio.Clip, ch: int):",
      "pub func BiquadProcessAll(f: Biquad, c &: audio.Clip):",
      "pub func BiquadReset(f &: Biquad):",
      "pub func BiquadResponse(f: Biquad, freq: f64, rate: int): f64:",
      "pub func BiquadStep(f &: Biquad, x: f64): f64:",
      "pub func CAbs(a: Complex): f64:",
      "pub func CAdd(a: Complex, b: Complex): Complex:",
      "pub func CArg(a: Complex): f64:",
      "pub func CConj(a: Complex): Complex:",
      "pub func CFromPolar(mag: f64, angle: f64): Complex:",
      "pub func CMul(a: Complex, b: Complex): Complex:",
      "pub func CScale(a: Complex, k: f64): Complex:",
      "pub func CSub(a: Complex, b: Complex): Complex:",
      "pub func Chorus(c: audio.Clip, depth: f64, speed: f64, mix: f64): audio.Clip:",
      "pub func CompressorProcess(k: Compressor, c &: audio.Clip):",
      "pub func Correlation(a: audio.Clip, b: audio.Clip): f64:",
      "pub func DCRemove(c &: audio.Clip):",
      "pub func Delay(c &: audio.Clip, seconds: f64, mix: f64, feedback: f64):",
      "pub func DetectBPM(c: audio.Clip): f64:",
      "pub func DetectOnsets(c: audio.Clip, size: int, hop: int): Vector<int>:",
      "pub func DetectPitch(c: audio.Clip, from_frame: int, size: int): f64:",
      "pub func Echo(c: audio.Clip, seconds: f64, repeats: int, decay: f64): audio.Clip:",
      "pub func FFT(re: f64*, im: f64*, n: int): bool:",
      "pub func FFTVec(re &: Vector<f64>, im &: Vector<f64>): bool:",
      "pub func Flanger(c: audio.Clip, depth: f64, speed: f64, mix: f64): audio.Clip:",
      "pub func FreeSpectrum(s &: Spectrum):",
      "pub func GateProcess(c &: audio.Clip, threshold_db: f64, release: f64):",
      "pub func HighPass(freq: f64, q: f64, rate: int): Biquad:",
      "pub func HighShelf(freq: f64, q: f64, gain_db: f64, rate: int): Biquad:",
      "pub func IFFT(re: f64*, im: f64*, n: int): bool:",
      "pub func IFFTVec(re &: Vector<f64>, im &: Vector<f64>): bool:",
      "pub func IsPow2(n: int): bool:",
      "pub func LimiterProcess(c &: audio.Clip, ceiling_db: f64):",
      "pub func LoudnessLUFS(c: audio.Clip): f64:",
      "pub func LowPass(freq: f64, q: f64, rate: int): Biquad:",
      "pub func LowShelf(freq: f64, q: f64, gain_db: f64, rate: int): Biquad:",
      "pub func Magnitude(re: f64*, im: f64*, n: int): Vector<f64>:",
      "pub func MakeWindow(kind: int, n: int, param: f64): Vector<f64>:",
      "pub func NextPow2(n: int): int:",
      "pub func NormalizeLUFS(c &: audio.Clip, target: f64):",
      "pub func Notch(freq: f64, q: f64, rate: int): Biquad:",
      "pub func PeakBin(mags: Vector<f64>): int:",
      "pub func Peaking(freq: f64, q: f64, gain_db: f64, rate: int): Biquad:",
      "pub func Phase(re: f64*, im: f64*, n: int): Vector<f64>:",
      "pub func PitchShift(c: audio.Clip, semitones: f64): audio.Clip:",
      "pub func PowerSpectrum(re: f64*, im: f64*, n: int): Vector<f64>:",
      "pub func ResampleCubic(c: audio.Clip, rate: int): audio.Clip:",
      "pub func ResampleSinc(c: audio.Clip, rate: int, taps: int): audio.Clip:",
      "pub func ResampleTo(c: audio.Clip, rate: int, quality: int): audio.Clip:",
      "pub func Reverb(c: audio.Clip, room: f64, mix: f64): audio.Clip:",
      "pub func STFT(c: audio.Clip, size: int, hop: int, window: int): Spectrum:",
      "pub func SpectralCentroid(s: Spectrum, frame: int): f64:",
      "pub func SpectralFlatness(s: Spectrum, frame: int): f64:",
      "pub func SpectralFlux(s: Spectrum, frame: int): f64:",
      "pub func SpectralRolloff(s: Spectrum, frame: int, share: f64): f64:",
      "pub func SpectrumAt(s: Spectrum, frame: int, bin: int): f64:",
      "pub func TimeStretch(c: audio.Clip, factor: f64): audio.Clip:",
      "pub func Tremolo(c &: audio.Clip, speed: f64, depth: f64):",
      "pub func TruePeakDb(c: audio.Clip): f64:",
      "pub func WindowName(kind: int): str:",
      "pub func WindowSum(kind: int, n: int, param: f64): f64:",
      "pub func WindowValue(kind: int, i: int, n: int, param: f64): f64:",
      "pub func ZeroCrossingRate(c: audio.Clip): f64:",
      "pub struct Biquad:",
      "pub struct Complex:",
      "pub struct Compressor:",
      "pub struct Spectrum:"
    ],
    "audio.flac": [
      "pub const BlockApplication := 2",
      "pub const BlockCueSheet := 5",
      "pub const BlockPadding := 1",
      "pub const BlockPicture := 6",
      "pub const BlockSeekTable := 3",
      "pub const BlockStreamInfo := 0",
      "pub const BlockVorbisComment := 4",
      "pub const DefaultBlock := 4096",
      "pub const MaxBlockSize := 65535",
      "pub const MaxChannels := 8",
      "pub func Blocks(p: void*, n: int): Vector<MetaBlock>:",
      "pub func CRC16(p: void*, off: int, n: int): int:",
      "pub func CRC16Buf(b: compress.ByteBuf, off: int, n: int): int:",
      "pub func CRC8(p: void*, off: int, n: int): int:",
      "pub func DecodeFLAC(p: void*, n: int, ok &: bool): audio.Clip:",
      "pub func EncodeFLAC(c: audio.Clip): compress.ByteBuf:",
      "pub func EncodeFLACLevel(c: audio.Clip, level: int): compress.ByteBuf:",
      "pub func FreeStreamInfo(si &: StreamInfo):",
      "pub func IsFLAC(p: void*, n: int): bool:",
      "pub func OpenFLAC(path: str, ok &: bool): audio.Clip:",
      "pub func ProbeFLAC(p: void*, n: int, ok &: bool): audio.Info:",
      "pub func ProbeFileFLAC(path: str, ok &: bool): audio.Info:",
      "pub func ReadFrameHeader(p: void*, n: int, at: int, si: StreamInfo, out &: FrameInfo): int:",
      "pub func ReadStreamInfo(p: void*, n: int, out &: StreamInfo): bool:",
      "pub func SaveFLAC(c: audio.Clip, path: str): bool:",
      "pub func SaveFLACLevel(c: audio.Clip, path: str, level: int): bool:",
      "pub func VerifyFLAC(p: void*, n: int): bool:",
      "pub struct FrameInfo:",
      "pub struct MetaBlock:",
      "pub struct StreamInfo:"
    ],
    "audio.midi": [
      "pub const ControlChange := 176",
      "pub const DefaultDivision := 480",
      "pub const MetaEndOfTrack := 47",
      "pub const MetaEvent := 255",
      "pub const MetaTempo := 81",
      "pub const MetaTimeSignature := 88",
      "pub const MetaTrackName := 3",
      "pub const NoteOff := 128",
      "pub const NoteOn := 144",
      "pub const ProgramChange := 192",
      "pub func AddControl(t &: Track, tick: int, controller: int, value: int, channel: int):",
      "pub func AddNote(t &: Track, tick: int, length: int, note: int, velocity: int, channel: int):",
      "pub func AddProgram(t &: Track, tick: int, program: int, channel: int):",
      "pub func AddTempo(t &: Track, tick: int, bpm: f64):",
      "pub func AddTrack(f &: Song, t: Track):",
      "pub func Bpm(f: Song): f64:",
      "pub func DecodeMIDI(p: void*, n: int, ok &: bool): Song:",
      "pub func EncodeMIDI(f: Song): compress.ByteBuf:",
      "pub func FreeSong(f &: Song):",
      "pub func IsMIDI(p: void*, n: int): bool:",
      "pub func NewSong(division: int): Song:",
      "pub func NewTrack(): Track:",
      "pub func Notes(f: Song): Vector<synth.Note>:",
      "pub func OpenMIDI(path: str, ok &: bool): Song:",
      "pub func ProgramName(program: int): str:",
      "pub func Render(f: Song, rate: int, channels: int): audio.Clip:",
      "pub func SaveMIDI(f: Song, path: str): bool:",
      "pub func SecondsToTicks(f: Song, seconds: f64): int:",
      "pub func TicksToSeconds(f: Song, ticks: int): f64:",
      "pub func TotalTicks(f: Song): int:",
      "pub struct Event:",
      "pub struct Song:",
      "pub struct Track:"
    ],
    "audio.mp3": [
      "pub const Layer1 := 3",
      "pub const Layer2 := 2",
      "pub const Layer3 := 1",
      "pub const ModeDual := 2",
      "pub const ModeJoint := 1",
      "pub const ModeMono := 3",
      "pub const ModeStereo := 0",
      "pub const Version1 := 3",
      "pub const Version2 := 2",
      "pub const Version25 := 0",
      "pub func AudioStart(p: void*, n: int): int:",
      "pub func CountFrames(p: void*, n: int): int:",
      "pub func FindSync(p: void*, n: int, from: int): int:",
      "pub func FrameAt(p: void*, n: int, index: int): int:",
      "pub func Headers(p: void*, n: int): Vector<Header>:",
      "pub func IsMP3(p: void*, n: int): bool:",
      "pub func ParseHeader(p: void*, n: int, at: int, out &: Header): bool:",
      "pub func ProbeFileMP3(path: str, ok &: bool): audio.Info:",
      "pub func ProbeMP3(p: void*, n: int, ok &: bool): audio.Info:",
      "pub func ReadVbrInfo(p: void*, n: int, out &: VbrInfo): bool:",
      "pub func SamplesPerFrame(version: int, layer: int): int:",
      "pub func SeekToSecond(p: void*, n: int, seconds: f64): int:",
      "pub struct Header:",
      "pub struct VbrInfo:"
    ],
    "audio.music": [
      "pub const A4Freq := 440.0",
      "pub const A4Note := 69",
      "pub const ChordAugmented := 3",
      "pub const ChordDiminished := 2",
      "pub const ChordDiminished7 := 9",
      "pub const ChordDominant7 := 8",
      "pub const ChordMajor := 0",
      "pub const ChordMajor7 := 6",
      "pub const ChordMinor := 1",
      "pub const ChordMinor7 := 7",
      "pub const ChordSus2 := 4",
      "pub const ChordSus4 := 5",
      "pub const DastgahChahargah := 4",
      "pub const DastgahHomayoun := 2",
      "pub const DastgahMahur := 1",
      "pub const DastgahNava := 5",
      "pub const DastgahRastPanjgah := 6",
      "pub const DastgahSegah := 3",
      "pub const DastgahShur := 0",
      "pub const KoronCents := -50.0",
      "pub const ScaleBlues := 6",
      "pub const ScaleChromatic := 7",
      "pub const ScaleDorian := 8",
      "pub const ScaleHarmonicMinor := 2",
      "pub const ScaleLocrian := 12",
      "pub const ScaleLydian := 10",
      "pub const ScaleMajor := 0",
      "pub const ScaleMelodicMinor := 3",
      "pub const ScaleMinor := 1",
      "pub const ScaleMixolydian := 11",
      "pub const ScalePentatonic := 4",
      "pub const ScalePentatonicMinor := 5",
      "pub const ScalePhrygian := 9",
      "pub const ScaleWholeTone := 13",
      "pub const SoriCents := 50.0",
      "pub func BeatSeconds(bpm: f64): f64:",
      "pub func Cents(a: f64, b: f64): f64:",
      "pub func Chord(kind: int): Vector<int>:",
      "pub func ChordNotes(root: int, kind: int): Vector<int>:",
      "pub func Dastgah(kind: int): Vector<f64>:",
      "pub func DastgahFreqs(root: int, kind: int): Vector<f64>:",
      "pub func FreqToCents(freq: f64, note: int): f64:",
      "pub func FreqToNote(freq: f64): int:",
      "pub func Interval(low: int, high: int): int:",
      "pub func JustFreq(root: int, degree: int): f64:",
      "pub func JustRatio(degree: int): f64:",
      "pub func NoteName(note: int): str:",
      "pub func NoteToFreq(note: int): f64:",
      "pub func NoteToFreqCents(note: int, cents: f64): f64:",
      "pub func Octave(note: int): int:",
      "pub func ParseNote(name: str): int:",
      "pub func PitchClass(note: int): int:",
      "pub func PythagoreanRatio(degree: int): f64:",
      "pub func Scale(kind: int): Vector<int>:",
      "pub func ScaleNotes(root: int, kind: int, count: int): Vector<int>:",
      "pub func Transpose(note: int, semitones: int): int:"
    ],
    "audio.synth": [
      "pub const WaveNoise := 4",
      "pub const WavePulse := 5",
      "pub const WaveSaw := 2",
      "pub const WaveSine := 0",
      "pub const WaveSquare := 1",
      "pub const WaveTriangle := 3",
      "pub func ADSRAt(e: ADSR, t: f64, held: f64): f64:",
      "pub func ADSRTotal(e: ADSR, held: f64): f64:",
      "pub func Additive(freq: f64, partials: int, decay: f64, seconds: f64, rate: int): audio.Clip:",
      "pub func Chord(freqs: Vector<f64>, seconds: f64, rate: int, wave: int): audio.Clip:",
      "pub func FMTone(carrier: f64, ratio: f64, index: f64, seconds: f64, rate: int): audio.Clip:",
      "pub func KarplusStrong(freq: f64, seconds: f64, rate: int, damping: f64): audio.Clip:",
      "pub func NewOsc(wave: int, freq: f64, rate: int): Osc:",
      "pub func NoiseBrown(seconds: f64, rate: int): audio.Clip:",
      "pub func NoisePink(seconds: f64, rate: int): audio.Clip:",
      "pub func NoiseWhite(seconds: f64, rate: int): audio.Clip:",
      "pub func NoteAt(note: int, start: f64, length: f64, gain: f64, wave: int): Note:",
      "pub func OscNext(o &: Osc): f64:",
      "pub func RenderNotes(notes: Vector<Note>, rate: int, channels: int, e: ADSR): audio.Clip:",
      "pub func Tone(freq: f64, seconds: f64, rate: int, wave: int): audio.Clip:",
      "pub func ToneEnvelope(freq: f64, seconds: f64, rate: int, wave: int, e: ADSR, gain: f64): audio.Clip:",
      "pub func WaveValue(wave: int, phase: f64, duty: f64): f64:",
      "pub struct ADSR:",
      "pub struct Note:",
      "pub struct Osc:"
    ],
    "audio.tag": [
      "pub const BlockPadding := 1",
      "pub const BlockPicture := 6",
      "pub const BlockSeekTable := 3",
      "pub const BlockStreamInfo := 0",
      "pub const BlockVorbisComment := 4",
      "pub const EncLatin1 := 0",
      "pub const EncUtf16 := 1",
      "pub const EncUtf16BE := 2",
      "pub const EncUtf8 := 3",
      "pub func AudioEnd(p: void*, n: int): int:",
      "pub func AudioStart(p: void*, n: int): int:",
      "pub func FlacBlocks(p: void*, n: int): Vector<Block>:",
      "pub func FreeTags(t &: Tags):",
      "pub func GenreName(id: int): str:",
      "pub func HasID3v1(p: void*, n: int): bool:",
      "pub func HasID3v2(p: void*, n: int): bool:",
      "pub func HasTags(t: Tags): bool:",
      "pub func ID3v2Size(p: void*, n: int): int:",
      "pub func ID3v2Version(p: void*, n: int): int:",
      "pub func IsFlacTagged(p: void*, n: int): bool:",
      "pub func NewTags(): Tags:",
      "pub func ReadFlacTags(p: void*, n: int, out &: Tags): bool:",
      "pub func ReadID3v1(p: void*, n: int, out &: Tags): bool:",
      "pub func ReadID3v2(p: void*, n: int, out &: Tags): bool:",
      "pub func ReadTags(p: void*, n: int, ok &: bool): Tags:",
      "pub func ReadTagsFile(path: str, ok &: bool): Tags:",
      "pub func ReadVorbisComment(p: void*, off: int, len: int, out &: Tags): bool:",
      "pub func StripTags(p: void*, n: int): compress.ByteBuf:",
      "pub func WriteID3v1(t: Tags): compress.ByteBuf:",
      "pub func WriteID3v2(t: Tags): compress.ByteBuf:",
      "pub func WriteVorbisComment(t: Tags): compress.ByteBuf:",
      "pub struct Block:",
      "pub struct Tags:"
    ],
    "audio.wav": [
      "pub const CodecALaw := 6",
      "pub const CodecExtensible := 65534",
      "pub const CodecFloat := 3",
      "pub const CodecMuLaw := 7",
      "pub const CodecPCM := 1",
      "pub func Chunks(p: void*, n: int): Vector<Chunk>:",
      "pub func DecodeWAV(p: void*, n: int, ok &: bool): audio.Clip:",
      "pub func EncodeALaw(c: audio.Clip): compress.ByteBuf:",
      "pub func EncodeMuLaw(c: audio.Clip): compress.ByteBuf:",
      "pub func EncodeWAV(c: audio.Clip): compress.ByteBuf:",
      "pub func EncodeWAVBits(c: audio.Clip, bits: int): compress.ByteBuf:",
      "pub func EncodeWAVFloat(c: audio.Clip): compress.ByteBuf:",
      "pub func FindChunk(p: void*, n: int, tag: int, out &: Chunk): bool:",
      "pub func IsWAV(p: void*, n: int): bool:",
      "pub func OpenWAV(path: str, ok &: bool): audio.Clip:",
      "pub func ProbeFileWAV(path: str, ok &: bool): audio.Info:",
      "pub func ProbeWAV(p: void*, n: int, ok &: bool): audio.Info:",
      "pub func ReadFormat(p: void*, n: int, out &: Format): bool:",
      "pub func SaveWAV(c: audio.Clip, path: str): bool:",
      "pub func SaveWAVBits(c: audio.Clip, path: str, bits: int): bool:",
      "pub func SaveWAVFloat(c: audio.Clip, path: str): bool:",
      "pub func Tag(s: str): int:",
      "pub struct Chunk:",
      "pub struct Format:"
    ],
    "aws": [
      "pub const ALGORITHM := \"AWS4-HMAC-SHA256\"",
      "pub const EMPTY_SHA256 := \"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\"",
      "pub const S3_PART_DEFAULT := 8388608",
      "pub const S3_PART_MAX_COUNT := 10000",
      "pub const S3_PART_MIN := 5242880",
      "pub const SERVICE_S3 := \"s3\"",
      "pub const SOURCE_CONTAINER := \"container\"",
      "pub const SOURCE_ENV := \"environment\"",
      "pub const SOURCE_INSTANCE := \"instance\"",
      "pub const SOURCE_PROFILE := \"profile\"",
      "pub const SOURCE_WEB_IDENTITY := \"web-identity\"",
      "pub const SQS_MAX_BATCH := 10",
      "pub const SQS_MAX_MESSAGES := 10",
      "pub const SQS_MAX_WAIT := 20",
      "pub const SQS_VERSION := \"2012-11-05\"",
      "pub const STS_DEFAULT_SKEW := 300",
      "pub const STS_MAX_DURATION := 43200",
      "pub const STS_MIN_DURATION := 900",
      "pub const STS_VERSION := \"2011-06-15\"",
      "pub const UNSIGNED_PAYLOAD := \"UNSIGNED-PAYLOAD\"",
      "pub func AmzDate(epoch_seconds: i64): str:",
      "pub func Apply(cfg: Config, creds: Credentials): Config:",
      "pub func AssumeRole(",
      "pub func AssumeRoleWith(",
      "pub func AssumeRoleWithWebIdentity(",
      "pub func AwsEndpoint(region: str): str:",
      "pub func BucketAt(l: BucketList, i: int): BucketEntry:",
      "pub func BucketCount(l: BucketList): int: ret l.items.len() end",
      "pub func BucketListFree(l &: BucketList): l.items.free() end",
      "pub func BytesHeader(b: Bytes, name: str): str:",
      "pub func CallBody(c &: Call, body: str, content_type: str):",
      "pub func CallBodyText(c: Call): str:",
      "pub func CallEndpoint(c &: Call, endpoint: str):",
      "pub func CallFree(c &: Call):",
      "pub func CallHeader(c &: Call, name: str, value: str):",
      "pub func CallParam(c &: Call, name: str, value: str):",
      "pub func CallParamInt(c &: Call, name: str, value: int):",
      "pub func CallQuery(c &: Call, name: str, value: str):",
      "pub func CallRegion(c &: Call, region: str):",
      "pub func CanonicalRequest(cfg: Config, r: Request, at: i64): str:",
      "pub func ConfigPath(): str:",
      "pub func Configured(cfg: Config): bool:",
      "pub func ContainerChain(): ChainOptions:",
      "pub func CredentialsPath(): str:",
      "pub func DateStamp(amz_date: str): str:",
      "pub func DefaultChain(): ChainOptions:",
      "pub func Describe(cfg: Config): str:",
      "pub func DescribeCredentials(creds: Credentials): str:",
      "pub func Do(cfg: Config, r: Request): Result:",
      "pub func DoBytes(cfg: Config, r: Request): Bytes:",
      "pub func EncodeKey(key: str): str:",
      "pub func Expired(creds: Credentials, now: i64, skew: int): bool:",
      "pub func ExpiredNow(creds: Credentials): bool:",
      "pub func Failure(reason: str): Result:",
      "pub func ForAws(region: str, bucket: str): Config:",
      "pub func ForBackblaze(region: str, bucket: str): Config:",
      "pub func ForEndpoint(endpoint: str, region: str, bucket: str): Config:",
      "pub func ForMinio(endpoint: str, bucket: str): Config:",
      "pub func ForR2(account_id: str, bucket: str): Config:",
      "pub func ForSpaces(region: str, bucket: str): Config:",
      "pub func ForWasabi(region: str, bucket: str): Config:",
      "pub func FreeBytes(b &: Bytes):",
      "pub func FromContainerCredentials(timeout_ms: int): Credentials:",
      "pub func FromEnvironment(bucket: str): Config:",
      "pub func FromEnvironmentCredentials(): Credentials:",
      "pub func FromInstanceCredentials(timeout_ms: int): Credentials:",
      "pub func FromProfile(profile: str, bucket: str): Config:",
      "pub func FromProfileCredentials(profile: str, o: ChainOptions): Credentials:",
      "pub func FromWebIdentityCredentials(o: ChainOptions): Credentials:",
      "pub func GetCallerIdentity(cfg: Config): Identity:",
      "pub func GetFederationToken(",
      "pub func GetSessionToken(",
      "pub func HeaderAdd(h &: Headers, name: str, value: str):",
      "pub func HeaderCount(h: Headers): int:",
      "pub func HeaderFree(h &: Headers):",
      "pub func HeaderGet(h: Headers, name: str): str:",
      "pub func HeaderHas(h: Headers, name: str): bool:",
      "pub func HeaderNameAt(h: Headers, i: int): str:",
      "pub func HeaderSet(h &: Headers, name: str, value: str):",
      "pub func HeaderValueAt(h: Headers, i: int): str:",
      "pub func InstanceRegion(timeout_ms: int): str:",
      "pub func Invoke(cfg: Config, c: Call): Result:",
      "pub func KeyAt(k: KeyList, i: int): str:",
      "pub func KeyCount(k: KeyList): int: ret k.items.len() end",
      "pub func KeyFree(k &: KeyList): k.items.free() end",
      "pub func KeyPush(k &: KeyList, key: str): k.items.push(key) end",
      "pub func ListAt(l: ObjectList, i: int): ObjectEntry:",
      "pub func ListCount(l: ObjectList): int: ret l.items.len() end",
      "pub func ListFree(l &: ObjectList):",
      "pub func ListPrefixAt(l: ObjectList, i: int): str:",
      "pub func ListPrefixCount(l: ObjectList): int: ret l.prefixes.len() end",
      "pub func ListToResult(l: ObjectList): Result:",
      "pub func ListTotalSize(l: ObjectList): i64:",
      "pub func MessageAt(l: MessageList, i: int): Message:",
      "pub func MessageAttribute(m: Message, name: str): str:",
      "pub func MessageCount(l: MessageList): int: ret l.items.len() end",
      "pub func MessageListFree(l &: MessageList): l.items.free() end",
      "pub func NewBucketRequest(method: str, bucket: str, key: str): Request:",
      "pub func NewConfig(endpoint: str, bucket: str): Config:",
      "pub func NewHeaders(): Headers:",
      "pub func NewJson11Call(service: str, target: str, json: str): Call:",
      "pub func NewJsonCall(service: str, target: str, json: str): Call:",
      "pub func NewKeyList(): KeyList: ret KeyList {} end",
      "pub func NewQueryCall(service: str, action: str, version: str): Call:",
      "pub func NewRequest(method: str, key: str): Request:",
      "pub func NewRestCall(service: str, method: str, path: str): Call:",
      "pub func NewServiceRequest(method: str): Request:",
      "pub func NewTags(): Headers: ret Headers {} end",
      "pub func ParseCredentials(body: str, status: int, source: str): Credentials:",
      "pub func ParseIni(text: str, section: str, key: str): str:",
      "pub func ParseListing(body: str, status: int): ObjectList:",
      "pub func ParseReceive(body: str, status: int): MessageList:",
      "pub func PartAt(p: PartList, i: int): PartRef:",
      "pub func PartCount(p: PartList): int: ret p.items.len() end",
      "pub func PostFormHtml(f: PostForm, file_field: str): str:",
      "pub func PreparedCall(cfg: Config, c: Call, at: i64): str:",
      "pub func PreparedHead(cfg: Config, r: Request, at: i64): str:",
      "pub func QueueAt(l: QueueList, i: int): str:",
      "pub func QueueCount(l: QueueList): int: ret l.items.len() end",
      "pub func QueueListFree(l &: QueueList): l.items.free() end",
      "pub func Resolve(o: ChainOptions): Credentials:",
      "pub func ResolveConfig(bucket: str, region: str, o: ChainOptions): Config:",
      "pub func ResultErrorCode(body: str): str:",
      "pub func ResultErrorMessage(body: str, status: int): str:",
      "pub func ResultHeader(r: Result, name: str): str:",
      "pub func ResultTag(body: str, tag: str): str:",
      "pub func S3AbortUpload(cfg: Config, u: Upload): Result:",
      "pub func S3AddObjectTag(cfg: Config, key: str, name: str, value: str): Result:",
      "pub func S3BucketCors(cfg: Config, bucket: str): str:",
      "pub func S3BucketExists(cfg: Config, bucket: str): bool:",
      "pub func S3BucketPolicy(cfg: Config, bucket: str): str:",
      "pub func S3BucketRegion(cfg: Config, bucket: str): str:",
      "pub func S3BucketTags(cfg: Config, bucket: str): Headers:",
      "pub func S3ChecksumSha256(body: void*, n: int): str:",
      "pub func S3CompleteUpload(cfg: Config, u: Upload): Result:",
      "pub func S3ContentHash(body: void*, n: int): str:",
      "pub func S3ContentHashMd5(data: void*, n: int): str:",
      "pub func S3ContentMd5(body: void*, n: int): str:",
      "pub func S3Copy(cfg: Config, src_key: str, dst_key: str): Result:",
      "pub func S3CopyLarge(",
      "pub func S3CopyWith(",
      "pub func S3CreateBucket(cfg: Config, bucket: str): Result:",
      "pub func S3CreateBucketAcl(cfg: Config, bucket: str, acl: str): Result:",
      "pub func S3CreateUpload(cfg: Config, key: str, o: PutOptions): Upload:",
      "pub func S3Delete(cfg: Config, key: str): Result:",
      "pub func S3DeleteBucket(cfg: Config, bucket: str): Result:",
      "pub func S3DeleteBucketCors(cfg: Config, bucket: str): Result:",
      "pub func S3DeleteBucketPolicy(cfg: Config, bucket: str): Result:",
      "pub func S3DeleteBucketTags(cfg: Config, bucket: str): Result:",
      "pub func S3DeleteLifecycle(cfg: Config, bucket: str): Result:",
      "pub func S3DeleteMany(cfg: Config, keys: KeyList): Result:",
      "pub func S3DeleteObjectTags(cfg: Config, key: str): Result:",
      "pub func S3DeletePrefix(cfg: Config, prefix: str): Result:",
      "pub func S3DeleteVersion(cfg: Config, key: str, version_id: str): Result:",
      "pub func S3DownloadFile(cfg: Config, key: str, path: str): TransferResult:",
      "pub func S3DownloadPrefix(cfg: Config, prefix: str, dir: str): DirResult:",
      "pub func S3Exists(cfg: Config, key: str): bool:",
      "pub func S3ExpiryRule(prefix: str, days: int, abort_days: int): str:",
      "pub func S3FileEtag(path: str, part_size: int): str:",
      "pub func S3Get(cfg: Config, key: str): Result:",
      "pub func S3GetBytes(cfg: Config, key: str): Bytes:",
      "pub func S3GetBytesWith(cfg: Config, key: str, o: GetOptions): Bytes:",
      "pub func S3GetRange(cfg: Config, key: str, start: i64, stop: i64): Bytes:",
      "pub func S3GetWith(cfg: Config, key: str, o: GetOptions): Result:",
      "pub func S3Head(cfg: Config, key: str): Result:",
      "pub func S3HeadBucket(cfg: Config, bucket: str): Result:",
      "pub func S3Keys(cfg: Config, prefix: str): KeyList:",
      "pub func S3LegalHold(cfg: Config, key: str): bool:",
      "pub func S3Lifecycle(cfg: Config, bucket: str): str:",
      "pub func S3List(cfg: Config, o: ListOptions): ObjectList:",
      "pub func S3ListAll(cfg: Config, prefix: str): ObjectList:",
      "pub func S3ListAllWith(cfg: Config, o: ListOptions): ObjectList:",
      "pub func S3ListBuckets(cfg: Config): BucketList:",
      "pub func S3ListFolder(cfg: Config, prefix: str): ObjectList:",
      "pub func S3ListParts(cfg: Config, key: str, upload_id: str): PartList:",
      "pub func S3ListPrefix(cfg: Config, prefix: str): ObjectList:",
      "pub func S3ListUploads(cfg: Config, prefix: str): UploadList:",
      "pub func S3ListV1(cfg: Config, o: ListOptions, marker: str): ObjectList:",
      "pub func S3ListVersions(",
      "pub func S3MakePrivate(cfg: Config, key: str): Result:",
      "pub func S3MakePublic(cfg: Config, key: str): Result:",
      "pub func S3Move(cfg: Config, src_key: str, dst_key: str): Result:",
      "pub func S3MultipartEtag(data: void*, n: int, part_size: int): str:",
      "pub func S3ObjectAcl(cfg: Config, key: str): str:",
      "pub func S3ObjectChecksum(cfg: Config, key: str): str:",
      "pub func S3ObjectTags(cfg: Config, key: str): Headers:",
      "pub func S3ObjectTagsVersion(cfg: Config, key: str, version_id: str): Headers:",
      "pub func S3Presign(cfg: Config, method: str, key: str, expires: int): str:",
      "pub func S3PresignAt(",
      "pub func S3PresignDownload(",
      "pub func S3PresignGet(cfg: Config, key: str, expires: int): str:",
      "pub func S3PresignPost(cfg: Config, key: str, o: PostOptions): PostForm:",
      "pub func S3PresignPostAt(",
      "pub func S3PresignPut(",
      "pub func S3PresignWith(",
      "pub func S3Put(cfg: Config, key: str, body: str, content_type: str): Result:",
      "pub func S3PutBytes(",
      "pub func S3PutBytesWith(",
      "pub func S3PutLarge(",
      "pub func S3PutWith(cfg: Config, key: str, body: str, o: PutOptions): Result:",
      "pub func S3Restore(cfg: Config, key: str, days: int, tier: str): Result:",
      "pub func S3SetBucketCors(",
      "pub func S3SetBucketPolicy(cfg: Config, bucket: str, policy_json: str): Result:",
      "pub func S3SetBucketTags(cfg: Config, bucket: str, tags: Headers): Result:",
      "pub func S3SetLegalHold(cfg: Config, key: str, held: bool): Result:",
      "pub func S3SetLifecycle(cfg: Config, bucket: str, config_xml: str): Result:",
      "pub func S3SetObjectAcl(cfg: Config, key: str, acl: str): Result:",
      "pub func S3SetObjectTags(cfg: Config, key: str, tags: Headers): Result:",
      "pub func S3SetRetention(",
      "pub func S3SetVersioning(cfg: Config, bucket: str, enabled: bool): Result:",
      "pub func S3Size(cfg: Config, key: str): i64:",
      "pub func S3Stat(cfg: Config, key: str): ObjectInfo:",
      "pub func S3StatVersion(cfg: Config, key: str, version_id: str): ObjectInfo:",
      "pub func S3Touch(cfg: Config, key: str, o: CopyOptions): Result:",
      "pub func S3UploadDir(",
      "pub func S3UploadFile(",
      "pub func S3UploadFileAs(",
      "pub func S3UploadPart(",
      "pub func S3UploadPartCopy(",
      "pub func S3Url(cfg: Config, key: str): str:",
      "pub func S3Versioning(cfg: Config, bucket: str): str:",
      "pub func Scope(date_stamp: str, region: str, service: str): str:",
      "pub func SecondsRemaining(creds: Credentials, now: i64): i64:",
      "pub func ServiceEndpoint(service: str, region: str): str:",
      "pub func ServiceErrorCode(body: str): str:",
      "pub func ServiceErrorMessage(body: str, status: int): str:",
      "pub func SetBody(r &: Request, p: void*, n: int):",
      "pub func SetFlag(r &: Request, name: str):",
      "pub func SetHeader(r &: Request, name: str, value: str):",
      "pub func SetQuery(r &: Request, name: str, value: str):",
      "pub func SetQueryInt(r &: Request, name: str, value: int):",
      "pub func SetText(r &: Request, s: str):",
      "pub func SetUnsignedPayload(r &: Request):",
      "pub func Sha256Bytes(ptr: void*, n: int): str:",
      "pub func SignQuery(",
      "pub func SignQueryHeaders(",
      "pub func SignRequest(",
      "pub func SignString(cfg: Config, date_stamp: str, payload: str): str:",
      "pub func SqsAttributes(cfg: Config, url: str): Headers:",
      "pub func SqsChangeVisibility(",
      "pub func SqsCreateQueue(cfg: Config, name: str, attributes: Headers): str:",
      "pub func SqsDelete(cfg: Config, url: str, receipt: str): Result:",
      "pub func SqsDeleteBatch(cfg: Config, url: str, l: MessageList): Result:",
      "pub func SqsDeleteQueue(cfg: Config, url: str): Result:",
      "pub func SqsDepth(cfg: Config, url: str): int:",
      "pub func SqsListQueues(cfg: Config, prefix: str): QueueList:",
      "pub func SqsPoll(cfg: Config, url: str): MessageList:",
      "pub func SqsPurge(cfg: Config, url: str): Result:",
      "pub func SqsQueueArn(cfg: Config, url: str): str:",
      "pub func SqsQueueUrl(cfg: Config, name: str): str:",
      "pub func SqsReceive(cfg: Config, url: str, o: ReceiveOptions): MessageList:",
      "pub func SqsReceiveBatch(cfg: Config, url: str, count: int): MessageList:",
      "pub func SqsReceiveCall(url: str, o: ReceiveOptions): Call:",
      "pub func SqsRedrivePolicy(dead_letter_arn: str, max_receives: int): str:",
      "pub func SqsRelease(cfg: Config, url: str, receipt: str): Result:",
      "pub func SqsSend(cfg: Config, url: str, body: str): SendResult:",
      "pub func SqsSendCall(url: str, m: OutMessage): Call:",
      "pub func SqsSendWith(cfg: Config, url: str, m: OutMessage): SendResult:",
      "pub func SqsSetAttributes(cfg: Config, url: str, attributes: Headers): Result:",
      "pub func StaticCredentials(access_key: str, secret_key: str): Credentials:",
      "pub func StsEndpoint(region: str): str:",
      "pub func TagSet(h &: Headers, name: str, value: str): HeaderSet(h, name, value) end",
      "pub func TagString(tags: Headers): str:",
      "pub func Unquote(s: str): str:",
      "pub func UploadAt(u: UploadList, i: int): UploadRef:",
      "pub func UploadBytes(u: Upload): i64:",
      "pub func UploadCount(u: UploadList): int: ret u.items.len() end",
      "pub func UploadFreeParts(u &: Upload): u.parts.free() end",
      "pub func UploadParts(u: Upload): int: ret u.parts.len() end",
      "pub func UriEncode(s: str, keep_slash: bool): str:",
      "pub func WithBucket(cfg: Config, bucket: str): Config:",
      "pub func WithCredentials(cfg: Config, access_key: str, secret_key: str): Config:",
      "pub func WithRetry(cfg: Config, attempts: int, base_ms: int): Config:",
      "pub func WithSessionToken(cfg: Config, token: str): Config:",
      "pub struct BucketEntry:",
      "pub struct BucketList:",
      "pub struct Bytes:",
      "pub struct Call:",
      "pub struct ChainOptions:",
      "pub struct Config:",
      "pub struct CopyOptions:",
      "pub struct Credentials:",
      "pub struct DirResult:",
      "pub struct GetOptions:",
      "pub struct Headers:",
      "pub struct Identity:",
      "pub struct KeyList:",
      "pub struct ListOptions:",
      "pub struct Message:",
      "pub struct MessageList:",
      "pub struct ObjectEntry:",
      "pub struct ObjectInfo:",
      "pub struct ObjectList:",
      "pub struct OutMessage:",
      "pub struct PartList:",
      "pub struct PartRef:",
      "pub struct PostForm:",
      "pub struct PostOptions:",
      "pub struct PresignOptions:",
      "pub struct PutOptions:",
      "pub struct QueueList:",
      "pub struct ReceiveOptions:",
      "pub struct Request:",
      "pub struct Result:",
      "pub struct SendResult:",
      "pub struct Signed:",
      "pub struct TransferResult:",
      "pub struct Upload:",
      "pub struct UploadList:",
      "pub struct UploadRef:"
    ],
    "baremetal": [
      "pub func Clear():",
      "pub func Exit(code: int):",
      "pub func ExitQemu(code: int):",
      "pub func Halt():",
      "pub func HeapSize(): u64:",
      "pub func HeapUsed(): u64:",
      "pub func In8(port: u16): u8:",
      "pub func Out8(port: u16, value: u8):",
      "pub func Panic(message: str):",
      "pub func SerialWrite(text: str):",
      "pub func WriteAt(row: int, col: int, text: str, color: u8):"
    ],
    "bidi": [
      "pub const DirAuto := 0",
      "pub const DirLTR := 1",
      "pub const DirRTL := 2",
      "pub func Levels(s: str, dir: int): Vector<int>:",
      "pub func ParagraphLevel(s: str, dir: int): int:",
      "pub func Reorder(s: str, dir: int): str:",
      "pub func VisualOrder(s: str, dir: int): Vector<int>:"
    ],
    "bigint": [
      "pub func Abs(x: Int): Int:",
      "pub func Add(a: Int, b: Int): Int:",
      "pub func AddInt(a: Int, v: i64): Int:",
      "pub func AddIntTo(x &: Int, v: i64): _replace(x, AddInt(x, v)) end",
      "pub func AddTo(x &: Int, y: Int): _replace(x, Add(x, y)) end",
      "pub func And(a: Int, b: Int): Int: ret _bitop(a, b, _OP_AND) end",
      "pub func AndNot(a: Int, b: Int): Int: ret _bitop(a, b, _OP_ANDNOT) end",
      "pub func Bit(x: Int, i: int): int:",
      "pub func BitLen(x: Int): int: ret x.bit_len() end",
      "pub func ByteLen(x: Int): int: ret (x.bit_len() + 7) / 8 end",
      "pub func Clone(x: Int): Int: ret x.clone() end",
      "pub func Cmp(a: Int, b: Int): int:",
      "pub func CmpAbs(a: Int, b: Int): int: ret _ucmp(a, b) end",
      "pub func Div(a: Int, b: Int): Int:",
      "pub func DivMod(a: Int, b: Int, q &: Int, r &: Int): bool:",
      "pub func DivModInt(a: Int, v: i64, rem &: i64): Int:",
      "pub func Equals(a: Int, b: Int): bool: ret Cmp(a, b) == 0 end",
      "pub func EqualsInt(a: Int, v: i64): bool:",
      "pub func ExtGcd(a: Int, b: Int, x &: Int, y &: Int): Int:",
      "pub func Factorial(n: int): Int:",
      "pub func FloorDiv(a: Int, b: Int): Int:",
      "pub func FloorDivMod(a: Int, b: Int, q &: Int, r &: Int): bool:",
      "pub func FloorMod(a: Int, b: Int): Int:",
      "pub func Free(x &: Int): x.mag.free() end",
      "pub func FromBytes(p: void*, n: int): Int:",
      "pub func FromInt(v: i64): Int:",
      "pub func FromUint(v: u64): Int:",
      "pub func Gcd(a: Int, b: Int): Int:",
      "pub func Greater(a: Int, b: Int): bool: ret Cmp(a, b) > 0 end",
      "pub func IsEven(x: Int): bool: ret x.is_even() end",
      "pub func IsOdd(x: Int): bool: ret x.is_odd() end",
      "pub func IsZero(x: Int): bool: ret x.is_zero() end",
      "pub func Lcm(a: Int, b: Int): Int:",
      "pub func Less(a: Int, b: Int): bool: ret Cmp(a, b) < 0 end",
      "pub func Max(a: Int, b: Int): Int:",
      "pub func Min(a: Int, b: Int): Int:",
      "pub func Mod(a: Int, m: Int): Int:",
      "pub func ModExp(base: Int, e: Int, m: Int): Int:",
      "pub func ModInt(a: Int, v: i64): i64:",
      "pub func ModInverse(a: Int, m: Int, ok &: bool): Int:",
      "pub func Mul(a: Int, b: Int): Int:",
      "pub func MulBy(x &: Int, y: Int): _replace(x, Mul(x, y)) end",
      "pub func MulInt(a: Int, v: i64): Int:",
      "pub func MulIntBy(x &: Int, v: i64): _replace(x, MulInt(x, v)) end",
      "pub func Neg(x: Int): Int:",
      "pub func NegateIn(x &: Int):",
      "pub func Not(x: Int): Int:",
      "pub func One(): Int: ret FromInt(1 as i64) end",
      "pub func Or(a: Int, b: Int): Int: ret _bitop(a, b, _OP_OR) end",
      "pub func Parse(s: str, ok &: bool): Int: ret ParseBase(s, 10, ok) end",
      "pub func ParseBase(s: str, base: int, ok &: bool): Int:",
      "pub func ParseOr(s: str, base: int): Int:",
      "pub func PopCount(x: Int): int:",
      "pub func Pow(x: Int, e: int): Int:",
      "pub func Pow10(n: int): Int:",
      "pub func Rem(a: Int, b: Int): Int:",
      "pub func Set(x &: Int, src: Int): _replace(x, src.clone()) end",
      "pub func SetInt(x &: Int, v: i64): _replace(x, FromInt(v)) end",
      "pub func Shl(x: Int, k: int): Int:",
      "pub func ShlBy(x &: Int, k: int): _replace(x, Shl(x, k)) end",
      "pub func Shr(x: Int, k: int): Int:",
      "pub func ShrBy(x &: Int, k: int): _replace(x, Shr(x, k)) end",
      "pub func Sign(x: Int): int: ret x.sign() end",
      "pub func Sqr(x: Int): Int: ret Mul(x, x) end",
      "pub func Sqrt(x: Int): Int:",
      "pub func Sub(a: Int, b: Int): Int:",
      "pub func SubFrom(x &: Int, y: Int): _replace(x, Sub(x, y)) end",
      "pub func SubInt(a: Int, v: i64): Int:",
      "pub func ToBytes(x: Int, out: void*, n: int): bool:",
      "pub func ToFloat(x: Int): f64:",
      "pub func ToHex(x: Int): str: ret ToStrBase(x, 16) end",
      "pub func ToInt(x: Int, ok &: bool): i64:",
      "pub func ToIntClamped(x: Int): i64:",
      "pub func ToStr(x: Int): str: ret ToStrBase(x, 10) end",
      "pub func ToStrBase(x: Int, base: int): str:",
      "pub func TrailingZeros(x: Int): int:",
      "pub func Xor(a: Int, b: Int): Int: ret _bitop(a, b, _OP_XOR) end",
      "pub func Zero(): Int: ret Int {} end",
      "pub func bit_len(): int:",
      "pub func clone(): Int:",
      "pub func free(): this.mag.free() end",
      "pub func is_even(): bool: ret not this.is_odd() end",
      "pub func is_odd(): bool:",
      "pub func is_zero(): bool: ret this.mag.len() == 0 end",
      "pub func limb_count(): int: ret this.mag.len() end",
      "pub func sign(): int:",
      "pub func to_str(): str: ret ToStrBase(this[0], 10) end",
      "pub struct Int:"
    ],
    "calendar": [
      "pub func AddDaysGregorian(d: GregorianDate, n: int): GregorianDate:",
      "pub func AddDaysHijri(d: HijriDate, n: int): HijriDate:",
      "pub func AddDaysJalali(d: JalaliDate, n: int): JalaliDate:",
      "pub func AddMonthsGregorian(d: GregorianDate, n: int): GregorianDate:",
      "pub func AddMonthsHijri(d: HijriDate, n: int): HijriDate:",
      "pub func AddMonthsJalali(d: JalaliDate, n: int): JalaliDate:",
      "pub func AddWeeksGregorian(d: GregorianDate, n: int): GregorianDate:",
      "pub func AddWeeksHijri(d: HijriDate, n: int): HijriDate:",
      "pub func AddWeeksJalali(d: JalaliDate, n: int): JalaliDate:",
      "pub func AddYearsGregorian(d: GregorianDate, n: int): GregorianDate:",
      "pub func AddYearsHijri(d: HijriDate, n: int): HijriDate:",
      "pub func AddYearsJalali(d: JalaliDate, n: int): JalaliDate:",
      "pub func CompareGregorian(a: GregorianDate, b: GregorianDate): int:",
      "pub func CompareHijri(a: HijriDate, b: HijriDate): int:",
      "pub func CompareJalali(a: JalaliDate, b: JalaliDate): int:",
      "pub func ConvertZonedGregorian(d: GregorianDate, t: ClockTime, from: TimeZone, toTz: TimeZone): GregorianDate:",
      "pub func ConvertZonedTime(d: GregorianDate, t: ClockTime, from: TimeZone, toTz: TimeZone): ClockTime:",
      "pub func DaysBetweenGregorian(from: GregorianDate, toDate: GregorianDate): i64:",
      "pub func DaysBetweenHijri(from: HijriDate, toDate: HijriDate): i64:",
      "pub func DaysBetweenJalali(from: JalaliDate, toDate: JalaliDate): i64:",
      "pub func DaysInGregorianMonth(year: int, month: int): int:",
      "pub func DaysInGregorianYear(year: int): int:",
      "pub func DaysInHijriMonth(year: int, month: int): int:",
      "pub func DaysInJalaliMonth(year: int, month: int): int:",
      "pub func DaysInJalaliYear(year: int): int:",
      "pub func EndOfMonthGregorian(d: GregorianDate): GregorianDate:",
      "pub func EndOfMonthHijri(d: HijriDate): HijriDate:",
      "pub func EndOfMonthJalali(d: JalaliDate): JalaliDate:",
      "pub func EpochToClockTime(epoch: i64): ClockTime:",
      "pub func EpochToGregorian(epoch: i64): GregorianDate:",
      "pub func EpochToHijri(epoch: i64): HijriDate: ret GregorianToHijri(EpochToGregorian(epoch)) end",
      "pub func EpochToJalali(epoch: i64): JalaliDate: ret GregorianToJalali(EpochToGregorian(epoch)) end",
      "pub func FixedOffsetZone(name: str, offsetMinutes: int): TimeZone:",
      "pub func FormatClockTime(t: ClockTime): str:",
      "pub func FormatGregorian(d: GregorianDate): str:",
      "pub func FormatGregorianLongEn(d: GregorianDate): str:",
      "pub func FormatHijri(d: HijriDate): str:",
      "pub func FormatHijriLongAr(d: HijriDate): str:",
      "pub func FormatHijriLongFa(d: HijriDate): str:",
      "pub func FormatJalali(d: JalaliDate): str:",
      "pub func FormatJalaliLongFa(d: JalaliDate): str:",
      "pub func FreeZone(z &: Zone):",
      "pub func GregorianMonthNameEn(month: int): str: ret _GREG_MONTH_NAMES_EN[month - 1] end",
      "pub func GregorianToHijri(d: GregorianDate): HijriDate: ret JDNToHijri(GregorianToJDN(d)) end",
      "pub func GregorianToJDN(d: GregorianDate): i64:",
      "pub func GregorianToJalali(d: GregorianDate): JalaliDate: ret JDNToJalali(GregorianToJDN(d)) end",
      "pub func GregorianToUnixUTC(d: GregorianDate, hour: int, minute: int, second: int): i64:",
      "pub func HijriMonthNameAr(month: int): str: ret _HIJRI_MONTH_NAMES_AR[month - 1] end",
      "pub func HijriMonthNameEn(month: int): str: ret _HIJRI_MONTH_NAMES_EN[month - 1] end",
      "pub func HijriMonthNameFa(month: int): str: ret _HIJRI_MONTH_NAMES_FA[month - 1] end",
      "pub func HijriToGregorian(d: HijriDate): GregorianDate: ret JDNToGregorian(HijriToJDN(d)) end",
      "pub func HijriToJDN(d: HijriDate): i64:",
      "pub func HijriToJalali(d: HijriDate): JalaliDate: ret JDNToJalali(HijriToJDN(d)) end",
      "pub func HijriToUnixUTC(d: HijriDate, hour: int, minute: int, second: int): i64:",
      "pub func IsLeapJalali(year: int): bool:",
      "pub func IsValidGregorianDate(year: int, month: int, day: int): bool:",
      "pub func IsValidHijriDate(year: int, month: int, day: int): bool:",
      "pub func IsValidJalaliDate(year: int, month: int, day: int): bool:",
      "pub func JDNToGregorian(jdn: i64): GregorianDate:",
      "pub func JDNToHijri(jdn: i64): HijriDate:",
      "pub func JDNToJalali(jdn: i64): JalaliDate:",
      "pub func JalaliMonthNameEn(month: int): str: ret _JALALI_MONTH_NAMES_EN[month - 1] end",
      "pub func JalaliMonthNameFa(month: int): str: ret _JALALI_MONTH_NAMES_FA[month - 1] end",
      "pub func JalaliToGregorian(d: JalaliDate): GregorianDate: ret JDNToGregorian(JalaliToJDN(d)) end",
      "pub func JalaliToHijri(d: JalaliDate): HijriDate: ret JDNToHijri(JalaliToJDN(d)) end",
      "pub func JalaliToJDN(d: JalaliDate): i64:",
      "pub func JalaliToUnixUTC(d: JalaliDate, hour: int, minute: int, second: int): i64:",
      "pub func JalaliWeekdayNameFa(weekday: int): str: ret _JALALI_WEEKDAY_NAMES_FA[weekday] end",
      "pub func LoadZone(name: str): Zone:",
      "pub func LocalOffsetMinutes(epoch: i64): int:",
      "pub func LocalZone(): Zone:",
      "pub func NextWeekdayOnOrAfter(d: GregorianDate, weekday: int): GregorianDate:",
      "pub func NowClockTime(): ClockTime: ret EpochToClockTime(time.Now()) end",
      "pub func StartOfMonthGregorian(d: GregorianDate): GregorianDate:",
      "pub func StartOfMonthHijri(d: HijriDate): HijriDate:",
      "pub func StartOfMonthJalali(d: JalaliDate): JalaliDate:",
      "pub func TZDubai(): TimeZone: ret TimeZone { name = \"Asia/Dubai\", offset_minutes = 240 } end",
      "pub func TZIstanbul(): TimeZone: ret TimeZone { name = \"Europe/Istanbul\", offset_minutes = 180 } end",
      "pub func TZKabul(): TimeZone: ret TimeZone { name = \"Asia/Kabul\", offset_minutes = 270 } end",
      "pub func TZLocal(epoch: i64): TimeZone:",
      "pub func TZLondon(): TimeZone: ret TimeZone { name = \"Europe/London\", offset_minutes = 0 } end",
      "pub func TZMecca(): TimeZone: ret TimeZone { name = \"Asia/Riyadh\", offset_minutes = 180 } end",
      "pub func TZNewYork(): TimeZone: ret TimeZone { name = \"America/New_York\", offset_minutes = 0 - 300 } end",
      "pub func TZRiyadh(): TimeZone: ret TimeZone { name = \"Asia/Riyadh\", offset_minutes = 180 } end",
      "pub func TZTehran(): TimeZone: ret TimeZone { name = \"Asia/Tehran\", offset_minutes = 210 } end",
      "pub func TZTokyo(): TimeZone: ret TimeZone { name = \"Asia/Tokyo\", offset_minutes = 540 } end",
      "pub func TZUTC(): TimeZone: ret TimeZone { name = \"UTC\", offset_minutes = 0 } end",
      "pub func TimeZoneAt(z: Zone, epoch: i64): TimeZone:",
      "pub func TodayGregorian(): GregorianDate: ret EpochToGregorian(time.Now()) end",
      "pub func TodayHijri(): HijriDate: ret EpochToHijri(time.Now()) end",
      "pub func TodayJalali(): JalaliDate: ret EpochToJalali(time.Now()) end",
      "pub func WallClockGregorian(epoch: i64, tz: TimeZone): GregorianDate:",
      "pub func WallClockHijri(epoch: i64, tz: TimeZone): HijriDate: ret GregorianToHijri(WallClockGregorian(epoch, tz)) end",
      "pub func WallClockJalali(epoch: i64, tz: TimeZone): JalaliDate: ret GregorianToJalali(WallClockGregorian(epoch, tz)) end",
      "pub func WallClockTime(epoch: i64, tz: TimeZone): ClockTime:",
      "pub func WeekdayGregorian(d: GregorianDate): int: ret Weekday(GregorianToJDN(d)) end",
      "pub func WeekdayHijri(d: HijriDate): int: ret Weekday(HijriToJDN(d)) end",
      "pub func WeekdayJalali(d: JalaliDate): int: ret Weekday(JalaliToJDN(d)) end",
      "pub func WeekdayNameAr(weekday: int): str: ret _WEEKDAY_NAMES_AR[weekday] end",
      "pub func WeekdayNameEn(weekday: int): str: ret _WEEKDAY_NAMES_EN[weekday] end",
      "pub func WeekdayNameFa(weekday: int): str: ret _WEEKDAY_NAMES_FA[weekday] end",
      "pub func ZoneAbbrevAt(z: Zone, epoch: i64): str:",
      "pub func ZoneAt(name: str, epoch: i64): TimeZone:",
      "pub func ZoneIsDST(z: Zone, epoch: i64): bool:",
      "pub func ZoneOffsetMinutes(z: Zone, epoch: i64): int:",
      "pub func ZoneOffsetSeconds(z: Zone, epoch: i64): int:",
      "pub func ZonedGregorianToEpoch(d: GregorianDate, t: ClockTime, tz: TimeZone): i64:",
      "pub func ZonedToEpoch(d: GregorianDate, t: ClockTime, z: Zone): i64:",
      "pub inline pure func IsLeapGregorian(year: int): bool:",
      "pub inline pure func IsLeapHijri(year: int): bool:",
      "pub inline pure func JalaliWeekday(jdn: i64): int:",
      "pub inline pure func Weekday(jdn: i64): int:",
      "pub struct ClockTime:",
      "pub struct GregorianDate:",
      "pub struct HijriDate:",
      "pub struct JalaliDate:",
      "pub struct TimeZone:",
      "pub struct Zone:"
    ],
    "chan": [
      "pub func After(ms: i64): Timer:",
      "pub func Capacity<T>(c: Chan<T>): i64:",
      "pub func Close<T>(c: Chan<T>):",
      "pub func Drain<T>(c: Chan<T>): Vector<T>:",
      "pub func IsClosed<T>(c: Chan<T>): bool:",
      "pub func Len<T>(c: Chan<T>): i64:",
      "pub func New<T>(capacity: i64): Chan<T>:",
      "pub func Recv<T>(c: Chan<T>, ok &: bool): T:",
      "pub func RecvTimeout<T>(c: Chan<T>, ok &: bool, ms: i64): T:",
      "pub func Select<T>(cs: Vector<Chan<T>>, v &: T, ms: i64): i64:",
      "pub func SelectRecv<T>(cs: Vector<Chan<T>>, v &: T, ok &: bool, ms: i64): i64:",
      "pub func SelectSend<T>(cs: Vector<Chan<T>>, v: T, ms: i64): i64:",
      "pub func Send<T>(c: Chan<T>, v: T): bool:",
      "pub func SendAll<T>(c: Chan<T>, values: Vector<T>): bool:",
      "pub func SendTimeout<T>(c: Chan<T>, v: T, ms: i64): bool:",
      "pub func StopTimer(t: Timer):",
      "pub func Take<T>(c: Chan<T>, n: i64): Vector<T>:",
      "pub func Tick(ms: i64): Timer:",
      "pub func TryRecv<T>(c: Chan<T>, ok &: bool): T:",
      "pub func TrySelect<T>(cs: Vector<Chan<T>>, v &: T): i64:",
      "pub func TrySelectSend<T>(cs: Vector<Chan<T>>, v: T): i64:",
      "pub func TrySend<T>(c: Chan<T>, v: T): bool:",
      "pub func capacity(): i64: ret this.cap end",
      "pub func close():",
      "pub func free():",
      "pub func init(capacity: i64):",
      "pub func is_closed(): bool:",
      "pub func len(): i64:",
      "pub func recv(ok &: bool): T:",
      "pub func recv_deadline(ok &: bool, ms: i64, timed: bool): T:",
      "pub func recv_timeout(ok &: bool, ms: i64): T:",
      "pub func send(v: T): bool:",
      "pub func send_deadline(v: T, ms: i64, timed: bool): bool:",
      "pub func send_timeout(v: T, ms: i64): bool:",
      "pub func try_recv(ok &: bool): T:",
      "pub func try_send(v: T): bool:",
      "pub struct Chan<T>:",
      "pub struct Timer:"
    ],
    "cli": [
      "pub const CmdHelp := \"__help__\"",
      "pub const CmdUnknown := \"__unknown__\"",
      "pub const CmdVersion := \"__version__\"",
      "pub func CommandDesc(app &: App, name: str): str:",
      "pub func Confirm(question: str): bool:",
      "pub func Dispatch(app &: App, argv: Vector<str>): str:",
      "pub func HasCommand(app &: App, name: str): bool: ret _find_cmd(app, name) >= 0 end",
      "pub func New(name: str, desc: str, version: str): App:",
      "pub func Prompt(question: str): str:",
      "pub func PromptOr(question: str, def: str): str:",
      "pub func Register(app &: App, name: str, desc: str):",
      "pub func RemainingArgs(argv: Vector<str>): Vector<str>:",
      "pub func RequireFlags(fs &: flag.FlagSet, names: Vector<str>): Vector<str>:",
      "pub func Usage(app &: App): str:",
      "pub struct App:"
    ],
    "collections": [
      "pub func _alloc(v: T): int:",
      "pub func _index(k: K): int:",
      "pub func _resize(newcap: int):",
      "pub func _seek():",
      "pub func _shift():",
      "pub func _swap(i: int, j: int):",
      "pub func _to_back(): until this.front.len() > 0: this.back.push(this.front.pop()) end end",
      "pub func _to_front(): until this.back.len() > 0: this.front.push(this.back.pop()) end end",
      "pub func _unlink(n: int):",
      "pub func add(k: K): this.m.put(k, this.count(k) + 1) end",
      "pub func add(x: T): this.items.push(x) end",
      "pub func add(x: T): this.m.put(x, true) end",
      "pub func add_n(k: K, n: int): this.m.put(k, this.count(k) + n) end",
      "pub func advance(): this.rotate(1) end",
      "pub func alloc(n: int):",
      "pub func back_val(): T:",
      "pub func back_val(): T: ret this.vals.get(this.tail) end",
      "pub func cap(): int: ret this.capacity end",
      "pub func clear(): this.count = 0 end",
      "pub func clear(): this.items.clear() end",
      "pub func clone<T>(v: Vector<T>): Vector<T>: out := Vector {} as Vector<T> mut i := 0",
      "pub func clone_keys(): Vector<str>: ret clone(this.keys) end",
      "pub func contains<T>(v: Vector<T>, x: T): bool: repeat v.len() in i: if v.get(i) == x: ret true",
      "pub func count(k: K): int:",
      "pub func count_of<T>(v: Vector<T>, x: T): int: mut n := 0",
      "pub func current(): T: ret this.get(0) end",
      "pub func dequeue(): T:",
      "pub func distinct(): int: ret this.m.size() end",
      "pub func enqueue(x: T): this.inbox.push(x) end",
      "pub func extend<T>(dst &: Vector<T>, src: Vector<T>):",
      "pub func first(): T: ret this.get(0) end",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free(): this.h.free() end",
      "pub func free(): this.items.free() end",
      "pub func free(): this.items.free() end",
      "pub func free(): this.m.free() end",
      "pub func free(): this.m.free() end",
      "pub func front_val(): T:",
      "pub func front_val(): T: ret this.vals.get(this.head) end",
      "pub func get(i: int): T:",
      "pub func get(i: int): T:",
      "pub func get(i: int): T:",
      "pub func get(i: int): T:",
      "pub func get(k: K): V:",
      "pub func get(k: str): str:",
      "pub func get_or(k: K, def: V): V:",
      "pub func get_or(k: str, def: str): str:",
      "pub func has(k: K): bool:",
      "pub func has(k: str): bool: ret this.idx.get(k) > 0 end",
      "pub func has(x: T): bool: ret this.m.has(x) end",
      "pub func has_next(): bool:",
      "pub func has_next(): bool: ret this.inner.has_next() end",
      "pub func has_next(): bool: ret this.inner.has_next() end",
      "pub func has_next(): bool: ret this.pos < this.items.len() end",
      "pub func has_next(): bool: ret this.pos < this.keys.len() end",
      "pub func has_next(): bool: ret this.pos < this.len end",
      "pub func has_next(): bool: ret this.pos < this.outbox.len() + this.inbox.len() end",
      "pub func index_of(k: str): int: ret this.idx.get(k) - 1 end",
      "pub func index_of<T>(v: Vector<T>, x: T): int: repeat v.len() in i: if v.get(i) == x: ret i",
      "pub func insert(i: int, x: T):",
      "pub func insert(k: K, v: V): this.put(k, v) end",
      "pub func is_empty(): bool: ret this.count == 0 end",
      "pub func is_empty(): bool: ret this.count == 0 end",
      "pub func is_empty(): bool: ret this.count == 0 end",
      "pub func is_empty(): bool: ret this.h.len() == 0 end",
      "pub func is_empty(): bool: ret this.items.is_empty() end",
      "pub func is_empty(): bool: ret this.items.is_empty() end",
      "pub func is_empty(): bool: ret this.m.is_empty() end",
      "pub func is_empty(): bool: ret this.size() == 0 end",
      "pub func is_empty(): bool: ret this.size() == 0 end",
      "pub func iter(): CounterIter<K>:",
      "pub func iter(): MapIter<K, V>:",
      "pub func iter(): OrderedMapIter:",
      "pub func iter(): QueueIter<T>:",
      "pub func iter(): SetIter<T>:",
      "pub func iter(): StackIter<T>:",
      "pub func iter(): VectorIter<T>:",
      "pub func key(): K:",
      "pub func key(): K: ret this.inner.key() end",
      "pub func key(): str: ret this.keys.get(this.pos) end",
      "pub func key_at(i: int): str:",
      "pub func last(): T: ret this.get(this.count - 1) end",
      "pub func last_index_of<T>(v: Vector<T>, x: T): int: mut i := v.len() - 1",
      "pub func len(): int: ret this.count end",
      "pub func len(): int: ret this.keys.len() end",
      "pub func next(): this.inner.next() end",
      "pub func next(): this.inner.next() end",
      "pub func next(): this.pos++ end",
      "pub func next(): this.pos++ end",
      "pub func next(): this.pos++ end",
      "pub func next(): this.pos++ end",
      "pub func next(): this.pos++ end",
      "pub func operator_index(i: int): T:",
      "pub func operator_index_set(i: int, x: T):",
      "pub func peek(): T:",
      "pub func peek(): T: ret this.h.get(0) end",
      "pub func peek(): T: ret this.items.last() end",
      "pub func pop(): T:",
      "pub func pop(): T:",
      "pub func pop(): T: ret this.items.pop() end",
      "pub func pop_back(): T:",
      "pub func pop_back(): T:",
      "pub func pop_front(): T:",
      "pub func pop_front(): T:",
      "pub func push(x: T):",
      "pub func push(x: T):",
      "pub func push(x: T): this.items.push(x) end",
      "pub func push_back(v: T):",
      "pub func push_back(x: T): this.back.push(x) end",
      "pub func push_front(v: T):",
      "pub func push_front(x: T): this.front.push(x) end",
      "pub func put(k: K, v: V):",
      "pub func ref(i: int): T*:",
      "pub func remove(k: K): bool:",
      "pub func remove(k: str): int:",
      "pub func remove(x: T): bool: ret this.m.remove(x) end",
      "pub func remove_at(i: int): T:",
      "pub func reserve(need: int):",
      "pub func resize_set(i: int, x: T):",
      "pub func reverse<T>(v: Vector<T>): Vector<T>: mut out := Vector {} as Vector<T> mut i := v.len() - 1",
      "pub func rotate(k: int):",
      "pub func set(i: int, x: T):",
      "pub func set(k: str, v: str): int:",
      "pub func set_at(i: int, v: str):",
      "pub func size(): int: ret this.count end",
      "pub func size(): int: ret this.count end",
      "pub func size(): int: ret this.front.len() + this.back.len() end",
      "pub func size(): int: ret this.h.len() end",
      "pub func size(): int: ret this.inbox.len() + this.outbox.len() end",
      "pub func size(): int: ret this.items.len() end",
      "pub func size(): int: ret this.items.len() end",
      "pub func size(): int: ret this.m.size() end",
      "pub func slice<T>(v: Vector<T>, start: int, count: int): Vector<T>: mut out := Vector {} as Vector<T> mut s := start",
      "pub func swap<T>(v: Vector<T>, i: int, j: int):",
      "pub func to_vector(): Vector<T>:",
      "pub func to_vector(): Vector<T>:",
      "pub func val_at(i: int): str:",
      "pub func value(): T:",
      "pub func value(): T:",
      "pub func value(): T: ret this.inner.key() end",
      "pub func value(): T: ret this.items.get(this.pos) end",
      "pub func value(): V:",
      "pub func value(): int: ret this.inner.value() end",
      "pub func value(): str: ret this.vals.get(this.pos) end",
      "pub func zeros(n: int):",
      "pub struct CircularList<T>:",
      "pub struct Counter<K>:",
      "pub struct CounterIter<K>:",
      "pub struct Deque<T>:",
      "pub struct HashMap<K, V>:",
      "pub struct LinkedList<T>:",
      "pub struct MapIter<K, V>:",
      "pub struct OrderedMap:",
      "pub struct OrderedMapIter:",
      "pub struct Pair<A, B>:",
      "pub struct PriorityQueue<T>:",
      "pub struct Queue<T>:",
      "pub struct QueueIter<T>:",
      "pub struct Set<T>:",
      "pub struct SetIter<T>:",
      "pub struct Stack<T>:",
      "pub struct StackIter<T>:",
      "pub struct Vector<T>:",
      "pub struct VectorIter<T>:"
    ],
    "color": [
      "pub func Argb(c: Color): u32:",
      "pub func Cmyk(c: f64, m: f64, y: f64, k: f64): Color:",
      "pub func Contrast(a: Color, b: Color): f64:",
      "pub func Css(c: Color): str:",
      "pub func Current(): Color:",
      "pub func Dark(c: Color): Color:",
      "pub func Darken(c: Color, amount: f64): Color:",
      "pub func Equal(a: Color, b: Color): bool:",
      "pub func Error(text: str): str:",
      "pub func FromArgb(v: u32): Color:",
      "pub func HasDark(c: Color): bool:",
      "pub func Hex(v: int): Color:",
      "pub func Hsl(h: f64, s: f64, l: f64): Color:",
      "pub func Hwb(h: f64, w: f64, b: f64): Color:",
      "pub func InGamut(c: Color): bool:",
      "pub func Lab(l: f64, a: f64, b: f64): Color:",
      "pub func Lch(l: f64, c: f64, h: f64): Color:",
      "pub func Lerp(a: Color, b: Color, t: f64): Color:",
      "pub func Light(c: Color): Color:",
      "pub func LightDark(light: Color, dark: Color): Color:",
      "pub func Lighten(c: Color, amount: f64): Color:",
      "pub func Luminance(c: Color): f64:",
      "pub func Mix(a: Color, b: Color, amount: f64): Color:",
      "pub func MixIn(a: Color, b: Color, amount: f64, space: str): Color:",
      "pub func New(r: f64, g: f64, b: f64, a: f64): Color:",
      "pub func Oklab(l: f64, a: f64, b: f64): Color:",
      "pub func Oklch(l: f64, c: f64, h: f64): Color:",
      "pub func Parse(text: str, out &: Color): bool:",
      "pub func Rgb(r: int, g: int, b: int): Color:",
      "pub func Rgba(r: int, g: int, b: int, a: f64): Color:",
      "pub func Source(c: Color): str:",
      "pub func WithAlpha(c: Color, a: f64): Color:",
      "pub struct Color:"
    ],
    "compress": [
      "pub const BcjARM := 7",
      "pub const BcjARM64 := 10",
      "pub const BcjARMThumb := 8",
      "pub const BcjIA64 := 6",
      "pub const BcjPowerPC := 5",
      "pub const BcjRISCV := 11",
      "pub const BcjSPARC := 9",
      "pub const BcjX86 := 4",
      "pub const DecodeCorrupt := 1",
      "pub const DecodeIo := 3",
      "pub const DecodeOk := 0",
      "pub const DecodeTooBig := 2",
      "pub const LzmaMaxDictSize := 1073741824",
      "pub const MethodBWT := 6",
      "pub const MethodDeflate := 5",
      "pub const MethodHuffman := 2",
      "pub const MethodLZ77 := 3",
      "pub const MethodLZW := 4",
      "pub const MethodNone := 0",
      "pub const MethodRLE := 1",
      "pub const XzCheckCrc32 := 1",
      "pub const XzCheckCrc64 := 4",
      "pub const XzCheckNone := 0",
      "pub const XzCheckSha256 := 10",
      "pub const ZstdErrChecksum := 4",
      "pub const ZstdErrCorrupt := 3",
      "pub const ZstdErrDict := 6",
      "pub const ZstdErrFormat := 1",
      "pub const ZstdErrTooBig := 5",
      "pub const ZstdErrTruncated := 2",
      "pub const ZstdOk := 0",
      "pub enum Method:",
      "pub func Adler32(p: void*, n: int): u32:",
      "pub func Adler32Buf(b: ByteBuf): u32: ret Adler32(b.data, b.len) end",
      "pub func Adler32Str(s: str): u32: ret Adler32(s as void*, s.len()) end",
      "pub func BWTCompress(p: void*, n: int): ByteBuf:",
      "pub func BWTDecompress(p: void*, n: int): ByteBuf:",
      "pub func BWTDecompressMax(p: void*, n: int, max: int, ok &: bool): ByteBuf:",
      "pub func BWTInverse(p: void*, n: int, primary: int): ByteBuf:",
      "pub func BWTTransform(p: void*, n: int, primary_out &: int): ByteBuf:",
      "pub func BcjDecode(kind: int, p: void*, n: int, start: int): bool:",
      "pub func BcjStep(kind: int, p: void*, n: int, pos: i64, state &: int): int:",
      "pub func BitFlush(w &: BitWriter):",
      "pub func BitReadBit(r &: BitReader): int:",
      "pub func BitReadBits(r &: BitReader, count: int): int:",
      "pub func BitReaderFromBuf(b: ByteBuf): BitReader:",
      "pub func BitWriteBit(w &: BitWriter, bit: int):",
      "pub func BitWriteBits(w &: BitWriter, value: int, count: int):",
      "pub func BitWriterFree(w &: BitWriter): BufFree(w.buf) end",
      "pub func BitWriterLen(w &: BitWriter): int: ret BufLen(w.buf) end",
      "pub func BufClone(b: ByteBuf): ByteBuf:",
      "pub func BufEquals(a: ByteBuf, b: ByteBuf): bool:",
      "pub func BufFree(b &: ByteBuf):",
      "pub func BufFromStr(s: str): ByteBuf:",
      "pub func BufGet(b: ByteBuf, i: int): int:",
      "pub func BufLen(b: ByteBuf): int: ret b.len end",
      "pub func BufPush(b &: ByteBuf, v: int):",
      "pub func BufPushBuf(b &: ByteBuf, src: ByteBuf):",
      "pub func BufPushBytes(b &: ByteBuf, p: void*, n: int):",
      "pub func BufPushU32(b &: ByteBuf, v: int):",
      "pub func BufReset(b &: ByteBuf): b.len = 0 end",
      "pub func BufSet(b &: ByteBuf, i: int, v: int):",
      "pub func BufToBase64(b: ByteBuf): str:",
      "pub func BufToStrUnsafe(b: ByteBuf): str:",
      "pub func Bzip2Compress(p: void*, n: int): ByteBuf:",
      "pub func Bzip2CompressBuf(b: ByteBuf): ByteBuf:",
      "pub func Bzip2CompressFileToSink(fp: void*, off: i64, len: i64, level: int, sink &: FileSink): bool:",
      "pub func Bzip2CompressLevel(p: void*, n: int, level: int): ByteBuf:",
      "pub func Bzip2CompressStr(s: str): ByteBuf:",
      "pub func Bzip2Decompress(p: void*, n: int, ok &: bool): ByteBuf:",
      "pub func Bzip2DecompressBuf(b: ByteBuf, ok &: bool): ByteBuf:",
      "pub func Bzip2DecompressMax(p: void*, n: int, max: int, ok &: bool): ByteBuf:",
      "pub func Bzip2DecompressWhy(p: void*, n: int, max: int, why &: int): ByteBuf:",
      "pub func Bzip2FileToSink(fp: void*, off: i64, len: i64, sink &: FileSink): int:",
      "pub func CRC32(p: void*, n: int): u32:",
      "pub func CRC32Buf(b: ByteBuf): u32: ret CRC32(b.data, b.len) end",
      "pub func CRC32Str(s: str): u32: ret CRC32(s as void*, s.len()) end",
      "pub func CRC32Update(state: u32, p: void*, n: int): u32:",
      "pub func CallbackContext(fp: void*): void*:",
      "pub func CallbackOpenRead(total: i64, read: func (i64, void*, int, void*) int, ctx: void*): void*:",
      "pub func Compress(method: int, p: void*, n: int): ByteBuf:",
      "pub func CompressBest(p: void*, n: int, method_out &: int): ByteBuf:",
      "pub func CompressBuf(method: int, b: ByteBuf): ByteBuf:",
      "pub func CompressStr(method: int, s: str): ByteBuf:",
      "pub func Decompress(method: int, p: void*, n: int): ByteBuf:",
      "pub func DecompressBuf(method: int, b: ByteBuf): ByteBuf:",
      "pub func DecompressMax(method: int, p: void*, n: int, max: int, ok &: bool): ByteBuf:",
      "pub func DeflateCompress(p: void*, n: int): ByteBuf:",
      "pub func DeflateDecompress(p: void*, n: int): ByteBuf:",
      "pub func DeflateDecompressMax(p: void*, n: int, max: int, ok &: bool): ByteBuf:",
      "pub func DeltaDecode(p: void*, n: int, dist: int): bool:",
      "pub func FileBitReaderFree(r &: BitReader):",
      "pub func FileClose(fp: void*):",
      "pub func FileOpenRead(path: str): void*:",
      "pub func FileOpenWrite(path: str): void*:",
      "pub func FileReadAt(fp: void*, off: i64, dst: void*, n: int): int:",
      "pub func FileSeek(fp: void*, off: i64): bool:",
      "pub func FileSize(fp: void*): i64:",
      "pub func GzipCompress(p: void*, n: int): ByteBuf:",
      "pub func GzipCompressBuf(b: ByteBuf): ByteBuf:",
      "pub func GzipCompressStr(s: str): ByteBuf:",
      "pub func GzipDecompress(p: void*, n: int, ok &: bool): ByteBuf:",
      "pub func GzipDecompressBuf(b: ByteBuf, ok &: bool): ByteBuf:",
      "pub func GzipDecompressMax(p: void*, n: int, max: int, ok &: bool): ByteBuf:",
      "pub func GzipDecompressWhy(p: void*, n: int, max: int, why &: int): ByteBuf:",
      "pub func HuffmanCompress(p: void*, n: int): ByteBuf:",
      "pub func HuffmanDecompress(p: void*, n: int): ByteBuf:",
      "pub func HuffmanDecompressMax(p: void*, n: int, max: int, ok &: bool): ByteBuf:",
      "pub func IsZstd(p: void*, n: int): bool:",
      "pub func IsZstdBuf(b: ByteBuf): bool:",
      "pub func LZ77Compress(p: void*, n: int): ByteBuf:",
      "pub func LZ77Decompress(p: void*, n: int): ByteBuf:",
      "pub func LZ77DecompressMax(p: void*, n: int, max: int, ok &: bool): ByteBuf:",
      "pub func LZWCompress(p: void*, n: int): ByteBuf:",
      "pub func LZWDecompress(p: void*, n: int): ByteBuf:",
      "pub func LZWDecompressMax(p: void*, n: int, max: int, ok &: bool): ByteBuf:",
      "pub func Lzma2FileToSink(dict_prop: int, fp: void*, off: i64, len: i64, out_size: i64, sink &: FileSink, memcap: i64): int:",
      "pub func Lzma2RawDecompress(dict_prop: int, p: void*, n: int, out_size: int, max: int, ok &: bool): ByteBuf:",
      "pub func LzmaCompress(p: void*, n: int): ByteBuf:",
      "pub func LzmaCompressBuf(b: ByteBuf): ByteBuf:",
      "pub func LzmaCompressFileToSink(fp: void*, off: i64, len: i64, level: int, with_props: bool, sink &: FileSink): bool:",
      "pub func LzmaCompressLevel(p: void*, n: int, level: int): ByteBuf:",
      "pub func LzmaCompressStr(s: str): ByteBuf:",
      "pub func LzmaDecompress(p: void*, n: int, ok &: bool): ByteBuf:",
      "pub func LzmaDecompressBuf(b: ByteBuf, ok &: bool): ByteBuf:",
      "pub func LzmaDecompressMax(p: void*, n: int, max: int, ok &: bool): ByteBuf:",
      "pub func LzmaDecompressWhy(p: void*, n: int, max: int, why &: int): ByteBuf:",
      "pub func LzmaFileToSink(props: void*, plen: int, fp: void*, off: i64, len: i64, out_size: i64, sink &: FileSink, memcap: i64): int:",
      "pub func LzmaRawDecompress(props: void*, plen: int, p: void*, n: int, out_size: int, max: int, ok &: bool): ByteBuf:",
      "pub func MTFDecode(inbuf: ByteBuf): ByteBuf:",
      "pub func MTFEncode(inbuf: ByteBuf): ByteBuf:",
      "pub func MultiOpenRead(paths: Vector<str>): void*:",
      "pub func NewBitReader(p: void*, n: int): BitReader:",
      "pub func NewBitWriter(): BitWriter:",
      "pub func NewByteBuf(): ByteBuf:",
      "pub func NewByteBufCap(capacity: int): ByteBuf:",
      "pub func NewByteReader(p: void*, n: int): ByteReader:",
      "pub func NewFileBitReader(fp: void*, off: i64, len: i64): BitReader:",
      "pub func RLECompress(p: void*, n: int): ByteBuf:",
      "pub func RLEDecompress(p: void*, n: int): ByteBuf:",
      "pub func RLEDecompressMax(p: void*, n: int, max: int, ok &: bool): ByteBuf:",
      "pub func Ratio(compressed_len: int, original_len: int): f64:",
      "pub func RawDeflate(p: void*, n: int): ByteBuf:",
      "pub func RawDeflateTo(w &: BitWriter, p: void*, n: int, last: bool):",
      "pub func RawInflate(p: void*, n: int, expected_size: int, ok &: bool): ByteBuf:",
      "pub func RawInflate64Max(p: void*, n: int, expected_size: int, max: int, ok &: bool): ByteBuf:",
      "pub func RawInflateMax(p: void*, n: int, expected_size: int, max: int, ok &: bool): ByteBuf:",
      "pub func RawInflateToSink(r &: BitReader, sink &: FileSink, d64: bool): bool:",
      "pub func RdByte(r &: ByteReader): int:",
      "pub func RdBytes(r &: ByteReader, n: int): ByteBuf:",
      "pub func RdLeft(r: ByteReader): int:",
      "pub func RdU32(r &: ByteReader): int:",
      "pub func ReaderFromBuf(b: ByteBuf): ByteReader:",
      "pub func SinkCallback(cap: i64, emit: func (void*, int, void*) bool, ctx: void*): FileSink:",
      "pub func SinkClose(s &: FileSink): bool:",
      "pub func SinkCopyFrom(s &: FileSink, fp: void*, off: i64, len: i64): bool:",
      "pub func SinkOpen(path: str, cap: i64): FileSink:",
      "pub func SinkWrite(s &: FileSink, p: void*, n: int): bool:",
      "pub func SwapDecode(p: void*, n: int, width: int): bool:",
      "pub func XXH64(p: void*, n: int, seed: u64): u64:",
      "pub func XXH64Buf(b: ByteBuf): u64: ret XXH64(b.data, b.len, 0 as u64) end",
      "pub func XXH64Str(s: str): u64: ret XXH64(s as void*, s.len(), 0 as u64) end",
      "pub func XzCompress(p: void*, n: int): ByteBuf:",
      "pub func XzCompressBuf(b: ByteBuf): ByteBuf:",
      "pub func XzCompressCheck(p: void*, n: int, level: int, check: int): ByteBuf:",
      "pub func XzCompressLevel(p: void*, n: int, level: int): ByteBuf:",
      "pub func XzCompressStr(s: str): ByteBuf:",
      "pub func XzDecompress(p: void*, n: int, ok &: bool): ByteBuf:",
      "pub func XzDecompressBuf(b: ByteBuf, ok &: bool): ByteBuf:",
      "pub func XzDecompressMax(p: void*, n: int, max: int, ok &: bool): ByteBuf:",
      "pub func XzDecompressWhy(p: void*, n: int, max: int, why &: int): ByteBuf:",
      "pub func XzFileToSink(fp: void*, off: i64, len: i64, sink &: FileSink, memcap: i64): int:",
      "pub func ZstdCompress(p: void*, n: int): ByteBuf:",
      "pub func ZstdCompressBuf(b: ByteBuf): ByteBuf:",
      "pub func ZstdCompressFileToSink(fp: void*, off: i64, len: i64, level: int, sink &: FileSink): bool:",
      "pub func ZstdCompressLevel(p: void*, n: int, level: int): ByteBuf:",
      "pub func ZstdCompressOpts(p: void*, n: int, level: int, checksum: bool): ByteBuf:",
      "pub func ZstdCompressStr(s: str): ByteBuf:",
      "pub func ZstdContentSize(p: void*, n: int): i64:",
      "pub func ZstdDecompress(p: void*, n: int, ok &: bool): ByteBuf:",
      "pub func ZstdDecompressBuf(b: ByteBuf, ok &: bool): ByteBuf:",
      "pub func ZstdDecompressDict(p: void*, n: int, dict: void*, dn: int, ok &: bool): ByteBuf:",
      "pub func ZstdDecompressEx(p: void*, n: int, max: int, dict: void*, dn: int, status &: int): ByteBuf:",
      "pub func ZstdDecompressMax(p: void*, n: int, max: int, ok &: bool): ByteBuf:",
      "pub func ZstdFileToSink(fp: void*, off: i64, len: i64, sink &: FileSink, memcap: i64): int:",
      "pub func ZstdStatusText(code: int): str:",
      "pub struct BitReader:",
      "pub struct BitWriter:",
      "pub struct ByteBuf:",
      "pub struct ByteReader:",
      "pub struct FileSink:"
    ],
    "config": [
      "pub func FormatEnv(c &: Config): str:",
      "pub func FormatEnvExport(c &: Config): str:",
      "pub func FormatINI(c &: Config): str:",
      "pub func Free(c &: Config):",
      "pub func Get(c &: Config, key: str): str: ret c.m.get(key) end",
      "pub func GetBool(c &: Config, key: str, def: bool): bool:",
      "pub func GetFloat(c &: Config, key: str, def: f64): f64:",
      "pub func GetInt(c &: Config, key: str, def: i64): i64:",
      "pub func GetOr(c &: Config, key: str, def: str): str: ret c.m.get_or(key, def) end",
      "pub func Has(c &: Config, key: str): bool: ret c.m.has(key) end",
      "pub func Keys(c &: Config): Vector<str>:",
      "pub func Len(c &: Config): int: ret c.m.len() end",
      "pub func LoadEnv(path: str): Config:",
      "pub func LoadINI(path: str): Config:",
      "pub func LoadYAML(path: str): Config:",
      "pub func Merge(base &: Config, override &: Config): Config:",
      "pub func New(): Config:",
      "pub func ParseEnv(text: str): Config:",
      "pub func ParseINI(text: str): Config:",
      "pub func ParseYAML(text: str): Config:",
      "pub func Remove(c &: Config, key: str): bool:",
      "pub func Section(c &: Config, name: str): Config:",
      "pub func Set(c &: Config, key: str, val: str):",
      "pub struct Config:"
    ],
    "console": [],
    "conv": [
      "pub func AtoiOr(s: str, fallback: int): int:",
      "pub func FormatFloat(x: f64): str: ret numfmt.FormatFloat(x) end",
      "pub func FormatFloatPrec(x: f64, prec: int): str:",
      "pub func FormatFloatShort(x: f64): str:",
      "pub func FormatHex(x: u64): str:",
      "pub func FormatInt(n: i64): str: ret numfmt.FormatInt(n) end",
      "pub func FormatUint(x: u64): str: ret numfmt.FormatUint(x) end",
      "pub func ParseBool(s: str): bool throws:",
      "pub func ParseBoolOr(s: str, fallback: bool): bool:",
      "pub func ParseFloat(s: str): f64 throws:",
      "pub func ParseFloatOr(s: str, fallback: f64): f64:",
      "pub func ParseHex(s: str): i64 throws:",
      "pub func ParseHexOr(s: str, fallback: i64): i64:",
      "pub func ParseInt(s: str): i64 throws:",
      "pub func ParseIntOr(s: str, fallback: i64): i64:",
      "pub inline func Atoi(s: str): int throws:",
      "pub inline pure func FormatBool(b: bool): str:",
      "pub inline pure func IsNaNF(x: f64): bool: ret x != x end"
    ],
    "conv.numfmt": [
      "pub func FormatFloat(x: f64): str:",
      "pub func FormatInt(n: i64): str:",
      "pub func FormatUint(x: u64): str: ret _format_mag(x, false) end",
      "pub func ScanFloat(s: str): f64:",
      "pub inline pure func FormatBool(b: bool): str:"
    ],
    "core": [
      "pub enum ErrorKind:",
      "pub enum Or2<A, B>:",
      "pub enum Or3<A, B, C>:",
      "pub enum Or4<A, B, C, D>:",
      "pub enum Or5<A, B, C, D, E>:",
      "pub enum Or6<A, B, C, D, E, F>:",
      "pub enum Or7<A, B, C, D, E, F, G>:",
      "pub enum Or8<A, B, C, D, E, F, G, H>:",
      "pub enum Throws<T>:",
      "pub func Expect<T>(o: Option<T>, msg: str): T:",
      "pub func IsNone<T>(o: Option<T>): bool:",
      "pub func IsSome<T>(o: Option<T>): bool:",
      "pub func None<T>(): Option<T>:",
      "pub func Some<T>(x: T): Option<T>:",
      "pub func Unwrap<T>(o: Option<T>): T:",
      "pub func UnwrapOr<T>(o: Option<T>, fallback: T): T:",
      "pub func is(kind: ErrorKind): bool:",
      "pub func is_none(): bool: ret this.present == false",
      "pub func is_some(): bool: ret this.present",
      "pub func kind_name(): str:",
      "pub func locate(text: str): Error:",
      "pub func to_str(): str:",
      "pub func unwrap(): T: if this.present == false: salam_panic(\"called unwrap on a None value\")",
      "pub func unwrap_or(fallback: T): T: if this.present: ret this.value",
      "pub func with_code(code: str): Error:",
      "pub func with_path(path: str): Error:",
      "pub func with_position(offset: int, line: int, column: int): Error:",
      "pub func wrap(message: str): Error:",
      "pub noret func Panic(msg: str): salam_panic(msg) end",
      "pub struct Error:",
      "pub struct Option<T>:",
      "pub struct Tuple2<A, B>:",
      "pub struct Tuple3<A, B, C>:",
      "pub struct Tuple4<A, B, C, D>:",
      "pub struct Tuple5<A, B, C, D, E>:",
      "pub struct Tuple6<A, B, C, D, E, F>:",
      "pub struct Tuple7<A, B, C, D, E, F, G>:",
      "pub struct Tuple8<A, B, C, D, E, F, G, H>:"
    ],
    "cpu": [
      "pub const FEATURE_ARM64 := 4",
      "pub const FEATURE_HW_CRYPTO := 1",
      "pub const FEATURE_X86 := 2",
      "pub func Features(): int:",
      "pub func HasAesNi(): bool:",
      "pub func HasArmCrypto(): bool:",
      "pub func HasHardwareCrypto(): bool:",
      "pub func HasPclmul(): bool:",
      "pub func HwAesEnc(state: u128, key: u128): u128:",
      "pub func HwAesEncLast(state: u128, key: u128): u128:",
      "pub func HwBswap(x: u128): u128:",
      "pub func HwClmul(a: u128, b: u128, imm: int): u128:",
      "pub func HwLoad(p: void*): u128:",
      "pub func HwStore(p: void*, x: u128):",
      "pub func HwSwap64(x: u128): u128:",
      "pub func SetHardware(enable: bool):"
    ],
    "cron": [
      "pub func Add(name: str, spec: str, fn: i64): int:",
      "pub func ConcurrencyLimit(n: int):",
      "pub func Count(): int:",
      "pub func DailyAt(name: str, at: str, fn: i64): int:",
      "pub func Every(name: str, seconds: int, fn: i64): int:",
      "pub func EveryBetween(name: str, lo: int, hi: int, fn: i64): int:",
      "pub func Fail(id: i64):",
      "pub func Failures(id: int): i64: ret _get(id, S_FAILS) end",
      "pub func Find(name: str): int:",
      "pub func FromCompletion(id: int):",
      "pub func HasTag(id: int, tag: str): bool:",
      "pub func IsBusy(id: int): bool:",
      "pub func LastFinished(id: int): i64: ret _get(id, S_FINISHED) end",
      "pub func LastRun(id: int): i64: ret _get(id, S_STARTED) end",
      "pub func Limit(id: int, n: int):",
      "pub func MatchFields(e: Expr, minute: int, hour: int, day: int, month: int, weekday: int): bool:",
      "pub func MatchesLocal(e: Expr, local: i64): bool:",
      "pub func MonthlyAt(name: str, day: int, at: str, fn: i64): int:",
      "pub func Name(id: int): str: ret _job(id).name end",
      "pub func Next(e: Expr, after: i64, zone: str, fallback_minutes: int): i64:",
      "pub func NextRun(id: int, after: i64): i64:",
      "pub func OffsetSeconds(zone: str, fallback_minutes: int, epoch: i64): i64:",
      "pub func OnAfter(fn: i64):",
      "pub func OnBefore(fn: i64):",
      "pub func OnError(fn: i64):",
      "pub func Once(name: str, at: i64, fn: i64): int:",
      "pub func Parse(spec: str): Expr:",
      "pub func Queue(id: int):",
      "pub func Remove(id: int):",
      "pub func RemoveByTag(tag: str): int:",
      "pub func Run():",
      "pub func RunBackground():",
      "pub func RunDue(now: i64): int:",
      "pub func RunNow(id: int): bool:",
      "pub func Runs(id: int): i64: ret _get(id, S_RUNS) end",
      "pub func SetTags(id: int, tags: str):",
      "pub func SetZone(name: str, fallback_minutes: int):",
      "pub func StartAt(id: int, at: i64):",
      "pub func Stop():",
      "pub func StopAt(id: int, at: i64):",
      "pub func StopWait(timeout_ms: int):",
      "pub func Total(): int: ret _n() end",
      "pub func WeeklyAt(name: str, days: str, at: str, fn: i64): int:",
      "pub struct Expr:"
    ],
    "crypto": [
      "pub func BcryptCost(encoded: str): int:",
      "pub func BcryptHash(password: str, cost: int): str:",
      "pub func BcryptHashWithSalt(password: str, cost: int, salt: void*): str:",
      "pub func BcryptVerify(password: str, encoded: str): bool:",
      "pub func HashBytes(p: void*, n: u64): u64: ret salam_hash_bytes(p, n) end",
      "pub func HashInt(x: u64): u64: ret salam_hash_int(x) end",
      "pub func HashPassword(password: str): str:",
      "pub func HashStr(s: str): u64: ret salam_str_hash(s) end",
      "pub func HmacSha1Base64(key: str, msg: str): str:",
      "pub func HmacSha1Bytes(key: str, msg: str, out: void*):",
      "pub func HmacSha1Hex(key: str, msg: str): str:",
      "pub func HmacSha1Raw(key: void*, klen: int, msg: void*, mlen: int, out: void*):",
      "pub func HmacSha256Bytes(key: str, msg: str, out: void*):",
      "pub func HmacSha256Hex(key: str, msg: str): str:",
      "pub func HmacSha256Raw(key: void*, klen: int, msg: void*, mlen: int, out: void*):",
      "pub func HmacSha384Bytes(key: str, msg: str, out: void*):",
      "pub func HmacSha384Hex(key: str, msg: str): str:",
      "pub func HmacSha384Raw(key: void*, klen: int, msg: void*, mlen: int, out: void*):",
      "pub func HmacSha512Bytes(key: str, msg: str, out: void*):",
      "pub func HmacSha512Hex(key: str, msg: str): str:",
      "pub func HmacSha512Raw(key: void*, klen: int, msg: void*, mlen: int, out: void*):",
      "pub func IsBcryptHash(encoded: str): bool:",
      "pub func Md5Bytes(p: void*, n: int, out: void*):",
      "pub func Md5Hex(data: str): str:",
      "pub func Pbkdf2HmacSha256Hex(password: str, salt: str, iterations: int, keylen: int): str:",
      "pub func RandomBytes(p: void*, n: int):",
      "pub func RandomHex(n: int): str:",
      "pub func RandomToken(n: int): str:",
      "pub func SecretEquals(a: str, b: str): bool:",
      "pub func Sha1Base64(data: str): str:",
      "pub func Sha1Bytes(p: void*, n: int, out: void*):",
      "pub func Sha1Hex(data: str): str:",
      "pub func Sha256Bytes(p: void*, n: int, out: void*):",
      "pub func Sha256Final(s: Sha256, out: void*):",
      "pub func Sha256Hex(data: str): str:",
      "pub func Sha256New(): Sha256:",
      "pub func Sha256Update(s &: Sha256, p: void*, n: int):",
      "pub func Sha384Bytes(p: void*, n: int, out: void*):",
      "pub func Sha384New(): Sha512:",
      "pub func Sha512Bytes(p: void*, n: int, out: void*):",
      "pub func Sha512Final(s: Sha512, out: void*):",
      "pub func Sha512Hex(data: str): str:",
      "pub func Sha512New(): Sha512:",
      "pub func Sha512Update(s &: Sha512, p: void*, n: int):",
      "pub func VerifyPassword(password: str, encoded: str): bool:",
      "pub struct Sha256:",
      "pub struct Sha512:"
    ],
    "ctx": [
      "pub func Background(): Context:",
      "pub func Cancel(c: Context):",
      "pub func Deadline(c: Context): i64:",
      "pub func Err(c: Context): str:",
      "pub func Free(c: Context):",
      "pub func IsDone(c: Context): bool:",
      "pub func Wait(c: Context, ms: i64): bool:",
      "pub func WithCancel(parent: Context): Context:",
      "pub func WithDeadline(parent: Context, at_ms: i64): Context:",
      "pub func WithTimeout(parent: Context, ms: i64): Context:",
      "pub struct Context:"
    ],
    "data": [
      "pub const COL_CAT := 2",
      "pub const COL_FLOAT := 0",
      "pub const COL_INT := 1",
      "pub const COL_STR := 3",
      "pub func LoadCsv(text: str, header: bool): Table throws:",
      "pub func LoadCsvFile(path: str, header: bool): Table throws:",
      "pub func LoadIdx(path: str): matrix.Matrix throws:",
      "pub func LoadImageFolder(root: str, width: int, height: int, gray: bool, x &: tensor.Tensor, labels &: Vector<int>, classes &: Vector<str>): bool:",
      "pub func LoadMnist(images_path: str, labels_path: str, x &: matrix.Matrix, y &: matrix.Matrix) throws:",
      "pub func MakeBlobs(n: int, centers: int, p: int, spread: f64, seed: i64, y &: matrix.Matrix): matrix.Matrix:",
      "pub func MakeCircles(n: int, noise: f64, factor: f64, seed: i64, y &: matrix.Matrix): matrix.Matrix:",
      "pub func MakeClassification(n: int, p: int, classes: int, sep: f64, seed: i64, y &: matrix.Matrix): matrix.Matrix:",
      "pub func MakeMoons(n: int, noise: f64, seed: i64, y &: matrix.Matrix): matrix.Matrix:",
      "pub func MakeRegression(n: int, p: int, noise: f64, seed: i64, y &: matrix.Matrix, true_coef &: matrix.Matrix): matrix.Matrix:",
      "pub func ParseIdx(p: void*, n: int): matrix.Matrix throws:",
      "pub func XTensor(x &: matrix.Matrix): tensor.Tensor:",
      "pub func YLabels(y &: matrix.Matrix): Vector<int>:",
      "pub func batches(batch: int, shuffle: bool, seed: i64): BatchIter:",
      "pub func batches_per_epoch(): int:",
      "pub func cat_levels(name: str): Vector<str>:",
      "pub func col_index(name: str): int:",
      "pub func cols(): int: ret this.names.len() end",
      "pub func free():",
      "pub func free():",
      "pub func free(): this.order.free() end",
      "pub func len(): int: ret this.x.rows end",
      "pub func next(x_out &: matrix.Matrix, y_out &: matrix.Matrix): bool:",
      "pub func next_tensor(x_out &: tensor.Tensor, labels_out &: Vector<int>): bool:",
      "pub func reset(epoch: i64):",
      "pub func rows(): int: ret this.cells.rows end",
      "pub func split_xy(label: str, x &: matrix.Matrix, y &: matrix.Matrix): bool:",
      "pub func to_matrix(): matrix.Matrix:",
      "pub struct BatchIter:",
      "pub struct MatrixDataset:",
      "pub struct Table:"
    ],
    "db": [
      "pub const CLICKHOUSE := \"clickhouse\"",
      "pub const ELASTICSEARCH := \"elasticsearch\"",
      "pub const MIGRATION_TABLE := \"schema_migrations\"",
      "pub const MYSQL := \"mysql\"",
      "pub const NO_LEASE := -1",
      "pub const OPENSEARCH := \"opensearch\"",
      "pub const POSTGRES := \"postgres\"",
      "pub const SQLITE := \"sqlite\"",
      "pub const TYPE_BLOB := 4",
      "pub const TYPE_FLOAT := 2",
      "pub const TYPE_INT := 1",
      "pub const TYPE_NULL := 0",
      "pub const TYPE_TEXT := 3",
      "pub func Acquire(p &: Pool): int:",
      "pub func Add(p &: Pool, c: dyn Connection): bool:",
      "pub func AddMigration(m &: Migrator, version: int, name: str, up: str, down: str):",
      "pub func CloseAll(p &: Pool):",
      "pub func Conn(p: Pool, lease: int): dyn Connection:",
      "pub func CountRows(c: dyn Connection, sql: str): int:",
      "pub func DropDead(p &: Pool): int:",
      "pub func EnsureTable(m: Migrator, c: dyn Connection): int:",
      "pub func Free(p &: Pool):",
      "pub func FreeMigrator(m &: Migrator):",
      "pub func Idle(p: Pool): int:",
      "pub func InTx(c: dyn Connection, stmts: Vector<str>): bool:",
      "pub func InUse(p: Pool): int: ret Size(p) - Idle(p) end",
      "pub func IsApplied(m: Migrator, c: dyn Connection, version: int): bool:",
      "pub func Leased(lease: int): bool: ret lease != NO_LEASE end",
      "pub func MigrateTo(m: Migrator, c: dyn Connection, target: int): int:",
      "pub func MigrateUp(m: Migrator, c: dyn Connection): int:",
      "pub func MigrationCount(m: Migrator): int: ret m.items.len() end",
      "pub func NewMigrator(): Migrator:",
      "pub func NewMigratorIn(table: str): Migrator:",
      "pub func NewPool(limit: int): Pool:",
      "pub func PendingCount(m: Migrator, c: dyn Connection): int:",
      "pub func QueryFloat(c: dyn Connection, sql: str): f64:",
      "pub func QueryInt(c: dyn Connection, sql: str): int:",
      "pub func QueryInt64(c: dyn Connection, sql: str): i64:",
      "pub func QueryText(c: dyn Connection, sql: str): str:",
      "pub func QuoteLiteral(s: str): str:",
      "pub func Release(p &: Pool, lease: int):",
      "pub func Rollback(m: Migrator, c: dyn Connection): bool:",
      "pub func Run(c: dyn Connection, sql: str): bool:",
      "pub func RunAll(c: dyn Connection, stmts: Vector<str>): int:",
      "pub func SchemaVersion(m: Migrator, c: dyn Connection): int:",
      "pub func Size(p: Pool): int: ret p.conns.len() end",
      "pub func SplitStatements(sql: str): Vector<str>:",
      "pub struct Migration:",
      "pub struct Migrator:",
      "pub struct Pool:"
    ],
    "db.clickhouse": [
      "pub const DEFAULT_PORT := 8123",
      "pub const DEFAULT_SECURE_PORT := 8443",
      "pub const KIND_ARRAY := 9",
      "pub const KIND_BOOL := 6",
      "pub const KIND_DATE := 7",
      "pub const KIND_DATETIME := 8",
      "pub const KIND_DECIMAL := 4",
      "pub const KIND_FLOAT := 3",
      "pub const KIND_INT := 1",
      "pub const KIND_MAP := 10",
      "pub const KIND_OTHER := 0",
      "pub const KIND_STRING := 5",
      "pub const KIND_TUPLE := 11",
      "pub const KIND_UINT := 2",
      "pub func Abort():",
      "pub func Append(values: Vector<str>): bool:",
      "pub func Args(items: Vector<str>): Vector<str>:",
      "pub func ArrayArg(items: Vector<str>): str:",
      "pub func AsDb(c: Conn): dyn db.Connection:",
      "pub func BaseType(t: str): str:",
      "pub func Begin(): dyn db.Tx:",
      "pub func Bind(sql: str, args: Vector<str>): str:",
      "pub func Bool(col: int): bool:",
      "pub func BoolArg(b: bool): str:",
      "pub func Changes(): i64:",
      "pub func Close():",
      "pub func Close():",
      "pub func Close(): int:",
      "pub func Close(): int:",
      "pub func Code(): int:",
      "pub func ColumnCount(): int:",
      "pub func ColumnCount(): int:",
      "pub func ColumnIndex(name: str): int:",
      "pub func ColumnKind(col: int): int:",
      "pub func ColumnName(col: int): str:",
      "pub func ColumnName(col: int): str:",
      "pub func ColumnType(col: int): int:",
      "pub func ColumnType(col: int): str:",
      "pub func Commit(): int:",
      "pub func DefaultOptions(): Options:",
      "pub func ElementType(t: str): str:",
      "pub func Error(): str:",
      "pub func Error(): str:",
      "pub func Error(): str:",
      "pub func Error(): str:",
      "pub func Exec(sql: str): int:",
      "pub func Exec(sql: str): int:",
      "pub func Exec(sql: str, args: Vector<str>): bool:",
      "pub func ExecFull(sql: str, params: HashMap<str, str>, extra: HashMap<str, str>): bool:",
      "pub func ExecParams(sql: str, params: HashMap<str, str>): bool:",
      "pub func ExecWith(sql: str, args: Vector<str>, settings: HashMap<str, str>): bool:",
      "pub func Float(col: int): f64:",
      "pub func Float(col: int): f64:",
      "pub func FloatArg(x: f64): str:",
      "pub func FloatBy(name: str): f64:",
      "pub func Int(col: int): int:",
      "pub func Int(col: int): int:",
      "pub func Int64(col: int): i64:",
      "pub func Int64(col: int): i64:",
      "pub func Int64By(name: str): i64:",
      "pub func IntArg(n: i64): str:",
      "pub func IsNull(col: int): bool:",
      "pub func IsNull(col: int): bool:",
      "pub func IsNullableType(t: str): bool:",
      "pub func Kind(): str:",
      "pub func LastInsertId(): i64:",
      "pub func Len(): int:",
      "pub func List(col: int): Vector<str>:",
      "pub func MapArg(keys: Vector<str>, values: Vector<str>): str:",
      "pub func Next(): bool:",
      "pub func Next(): bool:",
      "pub func NullArg(): str:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Open(o: Options): Conn:",
      "pub func OpenURL(dsn: str): Conn:",
      "pub func Ping(): bool:",
      "pub func Ping(): bool:",
      "pub func PrepareBatch(sql: str): Batch:",
      "pub func Query(sql: str): dyn db.Rows:",
      "pub func Query(sql: str): dyn db.Rows:",
      "pub func Query(sql: str, args: Vector<str>): Rows:",
      "pub func QueryFull(sql: str, params: HashMap<str, str>, extra: HashMap<str, str>): Rows:",
      "pub func QueryInt(sql: str): i64:",
      "pub func QueryParams(sql: str, params: HashMap<str, str>): Rows:",
      "pub func QueryRow(sql: str, args: Vector<str>): Vector<str>:",
      "pub func QueryText(sql: str): str:",
      "pub func QueryWith(sql: str, args: Vector<str>, settings: HashMap<str, str>): Rows:",
      "pub func Quote(s: str): str:",
      "pub func QuoteIdent(name: str): str:",
      "pub func Raw(col: int): str:",
      "pub func RawArg(sql: str): str:",
      "pub func Rollback(): int:",
      "pub func Row(): Vector<str>:",
      "pub func RowCount(): int:",
      "pub func SendBatch(b: Batch): bool:",
      "pub func ServerVersion(): str:",
      "pub func StrArg(s: str): str:",
      "pub func Text(col: int): str:",
      "pub func Text(col: int): str:",
      "pub func TextBy(name: str): str:",
      "pub func TupleArg(items: Vector<str>): str:",
      "pub func TypeKind(t: str): int:",
      "pub func UInt64(col: int): u64:",
      "pub func UIntArg(n: u64): str:",
      "pub struct Batch:",
      "pub struct Conn:",
      "pub struct Options:",
      "pub struct Rows:"
    ],
    "db.elasticsearch": [
      "pub const DEAD_NODE_MS := 60000",
      "pub const DEFAULT_PORT := 9200",
      "pub const DEFAULT_URL := \"http://localhost:9200\"",
      "pub const REFRESH_FALSE := \"false\"",
      "pub const REFRESH_TRUE := \"true\"",
      "pub const REFRESH_WAIT_FOR := \"wait_for\"",
      "pub func AddAgg(aggs: str, name: str, agg: str): str:",
      "pub func AddMember(obj: str, key: str, raw: str): str:",
      "pub func AggBuckets(res: SearchResult, name: str): Vector<Bucket>:",
      "pub func AggBucketsIn(aggs: str, name: str): Vector<Bucket>:",
      "pub func AggRaw(res: SearchResult, name: str): str:",
      "pub func AggValue(res: SearchResult, name: str): f64:",
      "pub func AggValueIn(aggs: str, name: str): f64:",
      "pub func AliasExists(c: Client, alias: str): bool:",
      "pub func Analyze(c: Client, index: str, analyzer: str, text: str): Vector<str>:",
      "pub func And(clauses: Vector<str>): str:",
      "pub func AuthHeader(c: Client): str:",
      "pub func AvgAgg(field: str): str:",
      "pub func Begin(): dyn db.Tx:",
      "pub func Bool(must: Vector<str>, filter: Vector<str>, should: Vector<str>, must_not: Vector<str>): str:",
      "pub func BulkBody(b: Bulk): str:",
      "pub func BulkCreate(b &: Bulk, index: str, id: str, doc: str):",
      "pub func BulkDelete(b &: Bulk, index: str, id: str):",
      "pub func BulkIndex(b &: Bulk, index: str, id: str, doc: str):",
      "pub func BulkLen(b: Bulk): int:",
      "pub func BulkReset(b &: Bulk):",
      "pub func BulkUpdate(b &: Bulk, index: str, id: str, partial: str):",
      "pub func BulkUpsert(b &: Bulk, index: str, id: str, doc: str):",
      "pub func CancelTask(c: Client, id: str): bool:",
      "pub func CardinalityAgg(field: str): str:",
      "pub func CatIndices(c: Client, pattern: str): Vector<IndexInfo>:",
      "pub func Changes(): i64: ret 0 end",
      "pub func ClearScroll(c: Client, scroll_id: str): bool:",
      "pub func Close(): int:",
      "pub func Close(): int:",
      "pub func Close(c &: Client):",
      "pub func CloseIndex(c: Client, index: str): bool:",
      "pub func ClosePit(c: Client, pit_id: str): bool:",
      "pub func ClusterHealth(c: Client): Health:",
      "pub func ClusterStats(c: Client): str:",
      "pub func ColumnCount(): int:",
      "pub func ColumnName(col: int): str:",
      "pub func ColumnType(col: int): int:",
      "pub func ColumnTypeName(col: int): str:",
      "pub func Commit(): int: ret -1 end",
      "pub func Conn(c: Client): dyn db.Connection:",
      "pub func Connect(url: str): Client:",
      "pub func ConnectApiKey(url: str, api_key: str): Client:",
      "pub func ConnectAuth(url: str, username: str, password: str): Client:",
      "pub func ConnectCloud(cloud_id: str, api_key: str): Client:",
      "pub func ConstantScore(filter: str): str:",
      "pub func Count(c: Client, index: str, query: str): i64:",
      "pub func Create(c: Client, index: str, id: str, doc: str): WriteResult:",
      "pub func CreateDataStream(c: Client, name: str): bool:",
      "pub func CreateIndex(c: Client, index: str, body: str): bool:",
      "pub func CreateSnapshot(c: Client, repository: str, snapshot: str, body: str): bool:",
      "pub func CreateWith(c: Client, index: str, id: str, doc: str, opts: Options): WriteResult:",
      "pub func DateHistogramAgg(field: str, calendar_interval: str): str:",
      "pub func DecodeCloudId(cloud_id: str): str:",
      "pub func DefaultConfig(): Config:",
      "pub func Delete(c: Client, index: str, id: str): WriteResult:",
      "pub func DeleteAlias(c: Client, index: str, alias: str): bool:",
      "pub func DeleteAsyncSearch(c: Client, id: str): bool:",
      "pub func DeleteByQuery(c: Client, index: str, query: str): i64:",
      "pub func DeleteByQueryWith(c: Client, index: str, query: str, opts: Options): i64:",
      "pub func DeleteDataStream(c: Client, name: str): bool:",
      "pub func DeleteIndex(c: Client, index: str): bool:",
      "pub func DeleteIndexTemplate(c: Client, name: str): bool:",
      "pub func DeleteLifecyclePolicy(c: Client, name: str): bool:",
      "pub func DeletePipeline(c: Client, id: str): bool:",
      "pub func DeleteRepository(c: Client, name: str): bool:",
      "pub func DeleteSnapshot(c: Client, repository: str, snapshot: str): bool:",
      "pub func DeleteStoredScript(c: Client, id: str): bool:",
      "pub func DeleteWith(c: Client, index: str, id: str, opts: Options): WriteResult:",
      "pub func Distribution(c: Client): str:",
      "pub func EncodeBasic(username: str, password: str): str:",
      "pub func Error(): str:",
      "pub func Error(): str:",
      "pub func Error(c: Client): str:",
      "pub func ErrorReason(c: Client): str:",
      "pub func ErrorType(c: Client): str:",
      "pub func Exec(_sql: str): int:",
      "pub func Exec(_sql: str): int: ret -1 end",
      "pub func Exists(c: Client, index: str, id: str): bool:",
      "pub func Explain(c: Client, index: str, id: str, query: str): str:",
      "pub func FieldCaps(c: Client, index: str, fields: Vector<str>): str:",
      "pub func FieldExists(field: str): str:",
      "pub func FilterAgg(query: str): str:",
      "pub func Filtered(query: str, filters: Vector<str>): str:",
      "pub func Float(col: int): f64:",
      "pub func Flush(c: Client, index: str): bool:",
      "pub func ForceMerge(c: Client, index: str, max_segments: int): bool:",
      "pub func Fuzzy(field: str, value: str): str:",
      "pub func GeoDistance(field: str, lat: f64, lon: f64, distance: str): str:",
      "pub func Get(c: Client, index: str, id: str): Document:",
      "pub func GetAlias(c: Client, alias: str): Vector<str>:",
      "pub func GetAsyncSearch(c: Client, id: str, wait: str): AsyncSearch:",
      "pub func GetClusterSettings(c: Client): str:",
      "pub func GetDataStream(c: Client, name: str): str:",
      "pub func GetIndex(c: Client, index: str): str:",
      "pub func GetInfo(c: Client): Info:",
      "pub func GetLifecyclePolicy(c: Client, name: str): str:",
      "pub func GetMapping(c: Client, index: str): str:",
      "pub func GetPipeline(c: Client, id: str): str:",
      "pub func GetSettings(c: Client, index: str): str:",
      "pub func GetSource(c: Client, index: str, id: str): str:",
      "pub func GetTask(c: Client, id: str): Task:",
      "pub func GetWith(c: Client, index: str, id: str, opts: Options): Document:",
      "pub func Highlight(fields: Vector<str>): str:",
      "pub func HistogramAgg(field: str, interval: f64): str:",
      "pub func Ids(ids: Vector<str>): str:",
      "pub func Index(c: Client, index: str, id: str, doc: str): WriteResult:",
      "pub func IndexExists(c: Client, index: str): bool:",
      "pub func IndexStats(c: Client, index: str): str:",
      "pub func IndexTemplateExists(c: Client, name: str): bool:",
      "pub func IndexWith(c: Client, index: str, id: str, doc: str, opts: Options): WriteResult:",
      "pub func Int(col: int): int:",
      "pub func Int64(col: int): i64:",
      "pub func IsNull(col: int): bool:",
      "pub func IsOpenSearch(c: Client): bool:",
      "pub func Kind(): str: ret db.ELASTICSEARCH end",
      "pub func Knn(field: str, vector: Vector<f64>, k: int, num_candidates: int): str:",
      "pub func LastInsertId(): i64: ret 0 end",
      "pub func ListSnapshots(c: Client, repository: str): Vector<str>:",
      "pub func MGet(c: Client, index: str, ids: Vector<str>): Vector<Document>:",
      "pub func MSearch(c: Client, index: str, bodies: Vector<str>): Vector<SearchResult>:",
      "pub func Match(field: str, text: str): str:",
      "pub func MatchAll(): str:",
      "pub func MatchAnd(field: str, text: str): str:",
      "pub func MatchFuzzy(field: str, text: str): str:",
      "pub func MatchNone(): str:",
      "pub func MatchPhrase(field: str, text: str): str:",
      "pub func MatchPhrasePrefix(field: str, text: str): str:",
      "pub func MaxAgg(field: str): str:",
      "pub func MinAgg(field: str): str:",
      "pub func MultiMatch(text: str, fields: Vector<str>): str:",
      "pub func Nested(path: str, query: str): str:",
      "pub func NewBulk(): Bulk:",
      "pub func NewClient(cfg: Config): Client:",
      "pub func Next(): bool:",
      "pub func Nodes(c: Client): Vector<str>:",
      "pub func NodesInfo(c: Client): str:",
      "pub func Not(clause: str): str:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool: ret false end",
      "pub func Ok(c: Client): bool:",
      "pub func OpenIndex(c: Client, index: str): bool:",
      "pub func OpenPit(c: Client, index: str, keep_alive: str): str:",
      "pub func Or(clauses: Vector<str>): str:",
      "pub func ParseBulkResult(body: str): BulkResult:",
      "pub func ParseSearchResult(body: str): SearchResult:",
      "pub func Perform(c: Client, method: str, path: str, body: str): Response:",
      "pub func PerformNdjson(c: Client, method: str, path: str, body: str): Response:",
      "pub func Ping(): bool:",
      "pub func Ping(c: Client): bool:",
      "pub func Prefix(field: str, value: str): str:",
      "pub func PutAlias(c: Client, index: str, alias: str): bool:",
      "pub func PutClusterSettings(c: Client, body: str): bool:",
      "pub func PutIndexTemplate(c: Client, name: str, body: str): bool:",
      "pub func PutLifecyclePolicy(c: Client, name: str, body: str): bool:",
      "pub func PutMapping(c: Client, index: str, body: str): bool:",
      "pub func PutPipeline(c: Client, id: str, body: str): bool:",
      "pub func PutRepository(c: Client, name: str, body: str): bool:",
      "pub func PutSettings(c: Client, index: str, body: str): bool:",
      "pub func PutStoredScript(c: Client, id: str, lang: str, source: str): bool:",
      "pub func Query(_sql: str): dyn db.Rows:",
      "pub func Query(sql: str): dyn db.Rows:",
      "pub func QueryString(query: str): str:",
      "pub func Quote(s: str): str:",
      "pub func Range(field: str, low: str, high: str): str:",
      "pub func RangeExclusive(field: str, low: str, high: str): str:",
      "pub func Refresh(c: Client, index: str): bool:",
      "pub func Regexp(field: str, pattern: str): str:",
      "pub func Reindex(c: Client, source: str, dest: str): i64:",
      "pub func RestoreSnapshot(c: Client, repository: str, snapshot: str, body: str): bool:",
      "pub func Rollback(): int: ret -1 end",
      "pub func Rollover(c: Client, target: str, body: str): bool:",
      "pub func RunBulk(c: Client, b: Bulk): BulkResult:",
      "pub func RunBulkWith(c: Client, index: str, b: Bulk, opts: Options): BulkResult:",
      "pub func Script(source: str, params: str): str:",
      "pub func Scroll(c: Client, scroll_id: str, keep_alive: str): SearchResult:",
      "pub func Search(c: Client, index: str, req: SearchRequest): SearchResult:",
      "pub func SearchBody(req: SearchRequest): str:",
      "pub func SearchQuery(c: Client, index: str, query: str, size: int): SearchResult:",
      "pub func SearchRaw(c: Client, index: str, body: str): SearchResult:",
      "pub func SearchScroll(c: Client, index: str, req: SearchRequest, keep_alive: str): SearchResult:",
      "pub func SearchTemplate(c: Client, index: str, id: str, params: str): SearchResult:",
      "pub func SimpleQueryString(query: str, fields: Vector<str>): str:",
      "pub func SimulatePipeline(c: Client, id: str, body: str): str:",
      "pub func SortAsc(field: str): str:",
      "pub func SortDesc(field: str): str:",
      "pub func Sql(c: Client, query: str): SqlRows:",
      "pub func SqlText(c: Client, query: str): str:",
      "pub func SqlTranslate(c: Client, query: str): str:",
      "pub func SqlWith(c: Client, query: str, params: Vector<str>, fetch_size: int): SqlRows:",
      "pub func StartDeleteByQuery(c: Client, index: str, query: str): str:",
      "pub func StartReindex(c: Client, body: str): str:",
      "pub func StartUpdateByQuery(c: Client, index: str, query: str, script: str): str:",
      "pub func StatsAgg(field: str): str:",
      "pub func Status(c: Client): int:",
      "pub func SubAggs(agg: str, aggs: str): str:",
      "pub func SubmitAsyncSearch(c: Client, index: str, req: SearchRequest, wait: str): AsyncSearch:",
      "pub func SumAgg(field: str): str:",
      "pub func SwapAlias(c: Client, alias: str, old_index: str, new_index: str): bool:",
      "pub func Term(field: str, value: str): str:",
      "pub func TermBool(field: str, value: bool): str:",
      "pub func TermInt(field: str, value: i64): str:",
      "pub func TermVectors(c: Client, index: str, id: str, fields: Vector<str>): str:",
      "pub func Terms(field: str, values: Vector<str>): str:",
      "pub func TermsAgg(field: str, size: int): str:",
      "pub func Text(col: int): str:",
      "pub func TopHitsAgg(size: int): str:",
      "pub func Update(c: Client, index: str, id: str, partial: str): WriteResult:",
      "pub func UpdateAliases(c: Client, actions: str): bool:",
      "pub func UpdateByQuery(c: Client, index: str, query: str, script: str): i64:",
      "pub func UpdateByQueryWith(c: Client, index: str, query: str, script: str, opts: Options): i64:",
      "pub func UpdateScript(c: Client, index: str, id: str, source: str, params: str): WriteResult:",
      "pub func UpdateWith(c: Client, index: str, id: str, partial: str, opts: Options): WriteResult:",
      "pub func Upsert(c: Client, index: str, id: str, doc: str): WriteResult:",
      "pub func ValidateQuery(c: Client, index: str, query: str): bool:",
      "pub func ValueCountAgg(field: str): str:",
      "pub func WaitForStatus(c: Client, status: str, timeout: str): Health:",
      "pub func Wildcard(field: str, pattern: str): str:",
      "pub struct AsyncSearch:",
      "pub struct Bucket:",
      "pub struct Bulk:",
      "pub struct BulkItem:",
      "pub struct BulkResult:",
      "pub struct Client:",
      "pub struct Config:",
      "pub struct Database:",
      "pub struct Document:",
      "pub struct Health:",
      "pub struct Hit:",
      "pub struct IndexInfo:",
      "pub struct Info:",
      "pub struct Options:",
      "pub struct Response:",
      "pub struct SearchRequest:",
      "pub struct SearchResult:",
      "pub struct SqlRows:",
      "pub struct Task:",
      "pub struct Txn:",
      "pub struct WriteResult:"
    ],
    "db.meilisearch": [
      "pub const MATCH_ALL := \"all\"",
      "pub const MATCH_FREQUENCY := \"frequency\"",
      "pub const MATCH_LAST := \"last\"",
      "pub const STATUS_CANCELED := \"canceled\"",
      "pub const STATUS_ENQUEUED := \"enqueued\"",
      "pub const STATUS_FAILED := \"failed\"",
      "pub const STATUS_PROCESSING := \"processing\"",
      "pub const STATUS_SUCCEEDED := \"succeeded\"",
      "pub const VERSION := \"1.0.0\"",
      "pub func AddDocuments(c: Client, uid: str, documents: str, primary_key: str, err &: Error): TaskInfo:",
      "pub func AddDocumentsCsv(c: Client, uid: str, documents: str, primary_key: str, delimiter: str, err &: Error): TaskInfo:",
      "pub func AddDocumentsInBatches(c: Client, uid: str, documents: Vector<str>, batch_size: int, primary_key: str, err &: Error): Vector<TaskInfo>:",
      "pub func AddDocumentsNdjson(c: Client, uid: str, documents: str, primary_key: str, err &: Error): TaskInfo:",
      "pub func AddDocumentsOf<T>(c: Client, uid: str, documents: Vector<T>, primary_key: str, err &: Error): TaskInfo:",
      "pub func AddDocumentsWith(c: Client, uid: str, documents: str, o: DocumentOptions, err &: Error): TaskInfo:",
      "pub func CancelTasks(c: Client, q: TaskQuery, err &: Error): TaskInfo:",
      "pub func ChatCompletion(c: Client, workspace: str, request: str, err &: Error): str:",
      "pub func CompactIndex(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func CompactTasks(c: Client, err &: Error): TaskCompaction:",
      "pub func CreateDump(c: Client, err &: Error): TaskInfo:",
      "pub func CreateIndex(c: Client, uid: str, primary_key: str, err &: Error): TaskInfo:",
      "pub func CreateKey(c: Client, r: KeyRequest, err &: Error): Key:",
      "pub func CreateSnapshot(c: Client, err &: Error): TaskInfo:",
      "pub func CreateWebhook(c: Client, url: str, headers: str, err &: Error): Webhook:",
      "pub func DeleteAllDocuments(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func DeleteAllSearchRules(c: Client, err &: Error): TaskInfo:",
      "pub func DeleteChatWorkspace(c: Client, workspace: str, err &: Error): bool:",
      "pub func DeleteDocument(c: Client, uid: str, id: str, err &: Error): TaskInfo:",
      "pub func DeleteDocuments(c: Client, uid: str, ids: Vector<str>, err &: Error): TaskInfo:",
      "pub func DeleteDocumentsByFilter(c: Client, uid: str, filter: str, err &: Error): TaskInfo:",
      "pub func DeleteIndex(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func DeleteKey(c: Client, key_or_uid: str, err &: Error): bool:",
      "pub func DeleteSearchRule(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func DeleteTasks(c: Client, q: TaskQuery, err &: Error): TaskInfo:",
      "pub func DeleteWebhook(c: Client, uuid: str, err &: Error): bool:",
      "pub func DocumentsAs<T>(p: Page, out &: Vector<T>, err &: Error): bool:",
      "pub func ErrorString(err: Error): str:",
      "pub func Export(c: Client, request: str, err &: Error): TaskInfo:",
      "pub func FacetSearch(c: Client, uid: str, r: FacetSearchRequest, err &: Error): FacetSearchResult:",
      "pub func FederatedSearch(c: Client, queries: Vector<MultiQuery>, f: Federation, err &: Error): SearchResult:",
      "pub func GetBatch(c: Client, uid: i64, err &: Error): Batch:",
      "pub func GetBatches(c: Client, q: TaskQuery, err &: Error): BatchPage:",
      "pub func GetChat(c: Client, uid: str, err &: Error): str:",
      "pub func GetChatSettings(c: Client, workspace: str, err &: Error): str:",
      "pub func GetChatWorkspace(c: Client, workspace: str, err &: Error): str:",
      "pub func GetDictionary(c: Client, uid: str, err &: Error): Vector<str>:",
      "pub func GetDisplayedAttributes(c: Client, uid: str, err &: Error): Vector<str>:",
      "pub func GetDistinctAttribute(c: Client, uid: str, err &: Error): str:",
      "pub func GetDocument(c: Client, uid: str, id: str, fields: Vector<str>, err &: Error): str:",
      "pub func GetDocumentAs<T>(c: Client, uid: str, id: str, out &: T, err &: Error): bool:",
      "pub func GetDocumentWith(c: Client, uid: str, id: str, q: DocumentsQuery, err &: Error): str:",
      "pub func GetDocuments(c: Client, uid: str, q: DocumentsQuery, err &: Error): Page:",
      "pub func GetEmbedders(c: Client, uid: str, err &: Error): str:",
      "pub func GetExperimentalFeatures(c: Client, err &: Error): str:",
      "pub func GetFacetSearch(c: Client, uid: str, err &: Error): bool:",
      "pub func GetFaceting(c: Client, uid: str, err &: Error): str:",
      "pub func GetFilterableAttributes(c: Client, uid: str, err &: Error): Vector<str>:",
      "pub func GetForeignKeys(c: Client, uid: str, err &: Error): str:",
      "pub func GetIndex(c: Client, uid: str, err &: Error): Index:",
      "pub func GetIndexStats(c: Client, uid: str, err &: Error): IndexStats:",
      "pub func GetKey(c: Client, key_or_uid: str, err &: Error): Key:",
      "pub func GetKeys(c: Client, offset: int, limit: int, err &: Error): KeyPage:",
      "pub func GetLocalizedAttributes(c: Client, uid: str, err &: Error): str:",
      "pub func GetMetrics(c: Client, err &: Error): str:",
      "pub func GetNetwork(c: Client, err &: Error): str:",
      "pub func GetNonSeparatorTokens(c: Client, uid: str, err &: Error): Vector<str>:",
      "pub func GetPagination(c: Client, uid: str, err &: Error): str:",
      "pub func GetPrefixSearch(c: Client, uid: str, err &: Error): str:",
      "pub func GetProximityPrecision(c: Client, uid: str, err &: Error): str:",
      "pub func GetRankingRules(c: Client, uid: str, err &: Error): Vector<str>:",
      "pub func GetSearchCutoffMs(c: Client, uid: str, err &: Error): i64:",
      "pub func GetSearchRule(c: Client, uid: str, err &: Error): SearchRule:",
      "pub func GetSearchableAttributes(c: Client, uid: str, err &: Error): Vector<str>:",
      "pub func GetSeparatorTokens(c: Client, uid: str, err &: Error): Vector<str>:",
      "pub func GetSetting(c: Client, uid: str, name: str, err &: Error): str:",
      "pub func GetSettings(c: Client, uid: str, err &: Error): str:",
      "pub func GetSortableAttributes(c: Client, uid: str, err &: Error): Vector<str>:",
      "pub func GetStats(c: Client, err &: Error): Stats:",
      "pub func GetStopWords(c: Client, uid: str, err &: Error): Vector<str>:",
      "pub func GetSynonyms(c: Client, uid: str, err &: Error): str:",
      "pub func GetTask(c: Client, uid: i64, err &: Error): Task:",
      "pub func GetTaskDocuments(c: Client, uid: i64, err &: Error): str:",
      "pub func GetTasks(c: Client, q: TaskQuery, err &: Error): TaskPage:",
      "pub func GetTypoTolerance(c: Client, uid: str, err &: Error): str:",
      "pub func GetVersion(c: Client, err &: Error): Version:",
      "pub func GetWebhook(c: Client, uuid: str, err &: Error): Webhook:",
      "pub func Health(c: Client, err &: Error): str:",
      "pub func HitsAs<T>(r: SearchResult, out &: Vector<T>, err &: Error): bool:",
      "pub func IsHealthy(c: Client): bool:",
      "pub func ListChatWorkspaces(c: Client, offset: int, limit: int, err &: Error): ChatWorkspacePage:",
      "pub func ListFields(c: Client, uid: str, q: FieldsQuery, err &: Error): FieldPage:",
      "pub func ListIndexes(c: Client, offset: int, limit: int, err &: Error): IndexPage:",
      "pub func ListSearchRules(c: Client, q: SearchRuleQuery, err &: Error): SearchRulePage:",
      "pub func ListWebhooks(c: Client, err &: Error): Vector<Webhook>:",
      "pub func MultiSearch(c: Client, queries: Vector<MultiQuery>, err &: Error): Vector<SearchResult>:",
      "pub func NetworkControl(c: Client, change: str, err &: Error): str:",
      "pub func New(host: str, api_key: str): Client:",
      "pub func Ok(err: Error): bool:",
      "pub func Query(c: Client, uid: str, q: str, err &: Error): SearchResult:",
      "pub func RenameIndex(c: Client, uid: str, new_uid: str, err &: Error): TaskInfo:",
      "pub func RenderTemplate(c: Client, query: str, err &: Error): str:",
      "pub func Request(c: Client, method: str, path: str, body: str, err &: Error): str:",
      "pub func RequestAs(c: Client, method: str, path: str, content_type: str, body: str, err &: Error): str:",
      "pub func ResetChat(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetChatSettings(c: Client, workspace: str, err &: Error): str:",
      "pub func ResetDictionary(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetDisplayedAttributes(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetDistinctAttribute(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetEmbedders(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetFacetSearch(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetFaceting(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetFilterableAttributes(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetForeignKeys(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetLocalizedAttributes(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetNonSeparatorTokens(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetPagination(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetPrefixSearch(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetProximityPrecision(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetRankingRules(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetSearchCutoffMs(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetSearchableAttributes(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetSeparatorTokens(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetSetting(c: Client, uid: str, name: str, err &: Error): TaskInfo:",
      "pub func ResetSettings(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetSortableAttributes(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetStopWords(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetSynonyms(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func ResetTypoTolerance(c: Client, uid: str, err &: Error): TaskInfo:",
      "pub func Search(c: Client, uid: str, r: SearchRequest, err &: Error): SearchResult:",
      "pub func SetStderrLogs(c: Client, target: str, err &: Error): bool:",
      "pub func SimilarDocuments(c: Client, uid: str, r: SimilarRequest, err &: Error): SearchResult:",
      "pub func SwapIndexes(c: Client, swaps: Vector<IndexSwap>, err &: Error): TaskInfo:",
      "pub func TenantToken(api_key_uid: str, api_key: str, search_rules: str, expires_at: i64, err &: Error): str:",
      "pub func UpdateChat(c: Client, uid: str, value: str, err &: Error): TaskInfo:",
      "pub func UpdateChatSettings(c: Client, workspace: str, settings: str, err &: Error): str:",
      "pub func UpdateDictionary(c: Client, uid: str, items: Vector<str>, err &: Error): TaskInfo:",
      "pub func UpdateDisplayedAttributes(c: Client, uid: str, items: Vector<str>, err &: Error): TaskInfo:",
      "pub func UpdateDistinctAttribute(c: Client, uid: str, value: str, err &: Error): TaskInfo:",
      "pub func UpdateDocuments(c: Client, uid: str, documents: str, primary_key: str, err &: Error): TaskInfo:",
      "pub func UpdateDocumentsByFunction(c: Client, uid: str, function: str, filter: str, context: str, err &: Error): TaskInfo:",
      "pub func UpdateDocumentsCsv(c: Client, uid: str, documents: str, primary_key: str, delimiter: str, err &: Error): TaskInfo:",
      "pub func UpdateDocumentsNdjson(c: Client, uid: str, documents: str, primary_key: str, err &: Error): TaskInfo:",
      "pub func UpdateEmbedders(c: Client, uid: str, value: str, err &: Error): TaskInfo:",
      "pub func UpdateExperimentalFeatures(c: Client, features: str, err &: Error): str:",
      "pub func UpdateFacetSearch(c: Client, uid: str, value: bool, err &: Error): TaskInfo:",
      "pub func UpdateFaceting(c: Client, uid: str, value: str, err &: Error): TaskInfo:",
      "pub func UpdateFilterableAttributes(c: Client, uid: str, items: Vector<str>, err &: Error): TaskInfo:",
      "pub func UpdateForeignKeys(c: Client, uid: str, value: str, err &: Error): TaskInfo:",
      "pub func UpdateIndex(c: Client, uid: str, primary_key: str, err &: Error): TaskInfo:",
      "pub func UpdateKey(c: Client, key_or_uid: str, name: str, description: str, err &: Error): Key:",
      "pub func UpdateLocalizedAttributes(c: Client, uid: str, value: str, err &: Error): TaskInfo:",
      "pub func UpdateNetwork(c: Client, network: str, err &: Error): str:",
      "pub func UpdateNonSeparatorTokens(c: Client, uid: str, items: Vector<str>, err &: Error): TaskInfo:",
      "pub func UpdatePagination(c: Client, uid: str, value: str, err &: Error): TaskInfo:",
      "pub func UpdatePrefixSearch(c: Client, uid: str, value: str, err &: Error): TaskInfo:",
      "pub func UpdateProximityPrecision(c: Client, uid: str, value: str, err &: Error): TaskInfo:",
      "pub func UpdateRankingRules(c: Client, uid: str, items: Vector<str>, err &: Error): TaskInfo:",
      "pub func UpdateSearchCutoffMs(c: Client, uid: str, value: i64, err &: Error): TaskInfo:",
      "pub func UpdateSearchRule(c: Client, uid: str, rule: str, err &: Error): TaskInfo:",
      "pub func UpdateSearchableAttributes(c: Client, uid: str, items: Vector<str>, err &: Error): TaskInfo:",
      "pub func UpdateSeparatorTokens(c: Client, uid: str, items: Vector<str>, err &: Error): TaskInfo:",
      "pub func UpdateSetting(c: Client, uid: str, name: str, value: str, err &: Error): TaskInfo:",
      "pub func UpdateSettings(c: Client, uid: str, settings: str, err &: Error): TaskInfo:",
      "pub func UpdateSortableAttributes(c: Client, uid: str, items: Vector<str>, err &: Error): TaskInfo:",
      "pub func UpdateStopWords(c: Client, uid: str, items: Vector<str>, err &: Error): TaskInfo:",
      "pub func UpdateSynonyms(c: Client, uid: str, value: str, err &: Error): TaskInfo:",
      "pub func UpdateTypoTolerance(c: Client, uid: str, value: str, err &: Error): TaskInfo:",
      "pub func UpdateWebhook(c: Client, uuid: str, url: str, headers: str, err &: Error): Webhook:",
      "pub func Wait(c: Client, info: TaskInfo, err &: Error): Task:",
      "pub func WaitForTask(c: Client, uid: i64, timeout_ms: int, interval_ms: int, err &: Error): Task:",
      "pub func WithAgent(c: Client, agent: str): Client:",
      "pub func WithMetadata(c: Client, metadata: str): Client:",
      "pub func WithTimeout(c: Client, timeout_ms: int): Client:",
      "pub struct Batch:",
      "pub struct BatchPage:",
      "pub struct ChatWorkspacePage:",
      "pub struct Client:",
      "pub struct DocumentOptions:",
      "pub struct DocumentsQuery:",
      "pub struct Error:",
      "pub struct FacetHit:",
      "pub struct FacetSearchRequest:",
      "pub struct FacetSearchResult:",
      "pub struct Federation:",
      "pub struct Field:",
      "pub struct FieldPage:",
      "pub struct FieldsQuery:",
      "pub struct Index:",
      "pub struct IndexPage:",
      "pub struct IndexStats:",
      "pub struct IndexSwap:",
      "pub struct Key:",
      "pub struct KeyPage:",
      "pub struct KeyRequest:",
      "pub struct MultiQuery:",
      "pub struct Page:",
      "pub struct SearchRequest:",
      "pub struct SearchResult:",
      "pub struct SearchRule:",
      "pub struct SearchRulePage:",
      "pub struct SearchRuleQuery:",
      "pub struct SimilarRequest:",
      "pub struct Stats:",
      "pub struct Task:",
      "pub struct TaskCompaction:",
      "pub struct TaskInfo:",
      "pub struct TaskPage:",
      "pub struct TaskQuery:",
      "pub struct Version:",
      "pub struct Webhook:"
    ],
    "db.mysql": [
      "pub func AffectedRows(db: Database): i64:",
      "pub func Autocommit(db: Database, enabled: bool): int:",
      "pub func Available(): bool:",
      "pub func Begin(): dyn db.Tx:",
      "pub func Begin(db: Database): int:",
      "pub func Changes(): i64:",
      "pub func Changes(db: Database): i64:",
      "pub func ClientVersion(): str:",
      "pub func Close(): int:",
      "pub func Close(): int:",
      "pub func Close(db: Database):",
      "pub func ColumnCount(): int:",
      "pub func ColumnCount(res: Result): int:",
      "pub func ColumnKind(res: Result, col: int): int:",
      "pub func ColumnName(col: int): str:",
      "pub func ColumnName(res: Result, col: int): str:",
      "pub func ColumnType(col: int): int:",
      "pub func Commit(): int:",
      "pub func Commit(db: Database): int:",
      "pub func Conn(d: Database): dyn db.Connection:",
      "pub func Errno(db: Database): int:",
      "pub func Error(): str:",
      "pub func Error(db: Database): str:",
      "pub func Escape(db: Database, s: str): str:",
      "pub func Exec(db: Database, sql: str): int:",
      "pub func Exec(sql: str): int:",
      "pub func Exec(sql: str): int:",
      "pub func FieldKind(res: Result, col: int): int:",
      "pub func FieldType(res: Result, col: int): int:",
      "pub func Finish(res: Result):",
      "pub func Float(col: int): f64:",
      "pub func Float(res: Result, col: int): f64:",
      "pub func Int(col: int): int: ret this.Int64(col) as int end",
      "pub func Int(res: Result, col: int): int:",
      "pub func Int64(col: int): i64:",
      "pub func Int64(res: Result, col: int): i64:",
      "pub func IsNull(col: int): bool:",
      "pub func IsNull(res: Result, col: int): bool:",
      "pub func Kind(): str: ret db.MYSQL end",
      "pub func LastInsertId(): i64:",
      "pub func LastInsertId(db: Database): i64:",
      "pub func LibraryEnd():",
      "pub func LibraryInit(): bool:",
      "pub func Next(): bool:",
      "pub func Next(res &: Result): bool:",
      "pub func Ok(): bool: ret this.handle != null end",
      "pub func Ok(): bool: ret this.handle != null end",
      "pub func Ok(): bool: ret this.handle != null end",
      "pub func Ok(db: Database): bool:",
      "pub func Open(host: str, user: str, pass: str, dbname: str, port: int): Database:",
      "pub func OpenFull(host: str, user: str, pass: str, dbname: str, port: int, socket: str, flags: u64): Database:",
      "pub func Ping(): bool:",
      "pub func Ping(db: Database): bool:",
      "pub func Query(db: Database, sql: str): Result:",
      "pub func Query(sql: str): dyn db.Rows:",
      "pub func Query(sql: str): dyn db.Rows:",
      "pub func QueryInt(db: Database, sql: str): int:",
      "pub func QueryOk(res: Result): bool:",
      "pub func QueryText(db: Database, sql: str): str:",
      "pub func Quote(s: str): str:",
      "pub func Rollback(): int:",
      "pub func Rollback(db: Database): int:",
      "pub func RowCount(res: Result): i64:",
      "pub func SelectDB(db: Database, name: str): int:",
      "pub func ServerVersion(db: Database): str:",
      "pub func SetCharset(db: Database, charset: str): int:",
      "pub func Text(col: int): str:",
      "pub func Text(res: Result, col: int): str:",
      "pub func ThreadEnd():",
      "pub func ThreadInit(): bool:",
      "pub struct Database:",
      "pub struct Result:",
      "pub struct Txn:"
    ],
    "db.opensearch": [
      "pub const DEAD_NODE_MS := 60000",
      "pub const DEFAULT_PORT := 9200",
      "pub const DEFAULT_URL := \"http://localhost:9200\"",
      "pub const REFRESH_FALSE := \"false\"",
      "pub const REFRESH_TRUE := \"true\"",
      "pub const REFRESH_WAIT_FOR := \"wait_for\"",
      "pub const SERVICE_AOSS := \"aoss\"",
      "pub const SERVICE_ES := \"es\"",
      "pub const VERSION := \"1.0.0\"",
      "pub func AddAgg(aggs: str, name: str, agg: str): str:",
      "pub func AddMember(obj: str, key: str, raw: str): str:",
      "pub func AddPolicy(c: Client, index: str, policy_id: str): int:",
      "pub func AggField(aggregations: str, name: str, field: str): f64:",
      "pub func AggPercentile(aggregations: str, name: str, percent: f64): f64:",
      "pub func AggRaw(aggregations: str, name: str): str:",
      "pub func AggValue(aggregations: str, name: str): f64:",
      "pub func AliasAction(action: str, index: str, alias: str): str:",
      "pub func AliasExists(c: Client, alias: str): bool:",
      "pub func AliasIndices(c: Client, alias: str): Vector<str>:",
      "pub func AllocationExplain(c: Client, body: str): str:",
      "pub func Analyze(c: Client, index: str, analyzer: str, text: str): Vector<str>:",
      "pub func And(clauses: Vector<str>): str:",
      "pub func AuthHeader(c: Client): str:",
      "pub func AvgAgg(field: str): str:",
      "pub func Begin(): dyn db.Tx:",
      "pub func Bool(must: Vector<str>, filter: Vector<str>, should: Vector<str>, must_not: Vector<str>): str:",
      "pub func BoolOf(q: BoolQuery): str:",
      "pub func Boosting(positive: str, negative: str, negative_boost: f64): str:",
      "pub func Buckets(aggregations: str, name: str): Vector<Bucket>:",
      "pub func BulkBody(b: Bulk): str:",
      "pub func BulkCreate(b &: Bulk, index: str, id: str, doc: str):",
      "pub func BulkDelete(b &: Bulk, index: str, id: str):",
      "pub func BulkFree(b &: Bulk):",
      "pub func BulkIndex(b &: Bulk, index: str, id: str, doc: str):",
      "pub func BulkIndexRouted(b &: Bulk, index: str, id: str, routing: str, doc: str):",
      "pub func BulkLen(b: Bulk): int:",
      "pub func BulkReset(b &: Bulk):",
      "pub func BulkSend(c: Client, b: Bulk): BulkResult:",
      "pub func BulkSendWith(c: Client, b: Bulk, refresh: str): BulkResult:",
      "pub func BulkUpdate(b &: Bulk, index: str, id: str, partial: str):",
      "pub func BulkUpsert(b &: Bulk, index: str, id: str, doc: str):",
      "pub func CancelTask(c: Client, task_id: str): bool:",
      "pub func CardinalityAgg(field: str): str:",
      "pub func Cat(c: Client, what: str): Vector<str>:",
      "pub func CatIndices(c: Client, pattern: str): Vector<IndexInfo>:",
      "pub func CatText(c: Client, what: str): str:",
      "pub func ChangePassword(c: Client, current: str, password: str): bool:",
      "pub func ChangePolicy(c: Client, index: str, policy_id: str, state: str): int:",
      "pub func Changes(): i64:",
      "pub func ClearCache(c: Client, index: str): bool:",
      "pub func ClearScroll(c: Client, scroll_id: str): bool:",
      "pub func CloneIndex(c: Client, source: str, target: str, body: str): bool:",
      "pub func Close(): int:",
      "pub func Close(): int:",
      "pub func Close(c &: Client):",
      "pub func CloseIndex(c: Client, index: str): bool:",
      "pub func ClusterHealth(c: Client): Health:",
      "pub func ClusterState(c: Client, metrics: str): str:",
      "pub func ClusterStats(c: Client): str:",
      "pub func Collapse(field: str): str:",
      "pub func ColumnCount(): int:",
      "pub func ColumnName(col: int): str:",
      "pub func ColumnType(col: int): int:",
      "pub func ColumnTypeName(col: int): str:",
      "pub func Commit(): int: ret -1 end",
      "pub func CompletionSuggest(name: str, prefix: str, field: str, size: int): str:",
      "pub func CompositeAgg(fields: Vector<str>, size: int): str:",
      "pub func Conn(c: Client): dyn db.Connection:",
      "pub func Connect(url: str): Client:",
      "pub func ConnectAWS(",
      "pub func ConnectAuth(url: str, username: str, password: str): Client:",
      "pub func ConnectInsecure(url: str, username: str, password: str): Client:",
      "pub func ConstantScore(filter: str, boost: f64): str:",
      "pub func Count(c: Client, index: str, query: str): i64:",
      "pub func Create(c: Client, index: str, id: str, doc: str): WriteResult:",
      "pub func CreateDataStream(c: Client, name: str): bool:",
      "pub func CreateIndex(c: Client, name: str, body: str): bool:",
      "pub func CreateIndexWith(c: Client, name: str, shards: int, replicas: int, properties: str): bool:",
      "pub func CreateMonitor(c: Client, body: str): str:",
      "pub func CreatePit(c: Client, index: str, keep_alive: str): str:",
      "pub func CreateSnapshot(c: Client, repo: str, snapshot: str, indices: str, wait: bool): bool:",
      "pub func CreateWith(c: Client, index: str, id: str, doc: str, o: Options): WriteResult:",
      "pub func DataStreams(c: Client): Vector<str>:",
      "pub func DateHistogramAgg(field: str, calendar_interval: str): str:",
      "pub func DateRange(field: str, low: str, high: str, format: str, time_zone: str): str:",
      "pub func DefaultConfig(): Config:",
      "pub func Delete(c: Client, index: str, id: str): WriteResult:",
      "pub func DeleteAfterPolicy(description: str, min_index_age: str, patterns: Vector<str>): str:",
      "pub func DeleteAlias(c: Client, index: str, alias: str): bool:",
      "pub func DeleteAllPits(c: Client): bool:",
      "pub func DeleteByQuery(c: Client, index: str, query: str): ByQueryResult:",
      "pub func DeleteByQueryWith(c: Client, index: str, query: str, o: Options): ByQueryResult:",
      "pub func DeleteComponentTemplate(c: Client, name: str): bool:",
      "pub func DeleteDataStream(c: Client, name: str): bool:",
      "pub func DeleteIndex(c: Client, name: str): bool:",
      "pub func DeleteIndexIfExists(c: Client, name: str): bool:",
      "pub func DeleteIndexTemplate(c: Client, name: str): bool:",
      "pub func DeleteMonitor(c: Client, id: str): bool:",
      "pub func DeletePipeline(c: Client, id: str): bool:",
      "pub func DeletePit(c: Client, pit_id: str): bool:",
      "pub func DeletePolicy(c: Client, id: str): bool:",
      "pub func DeleteRepository(c: Client, name: str): bool:",
      "pub func DeleteRole(c: Client, name: str): bool:",
      "pub func DeleteRoleMapping(c: Client, role: str): bool:",
      "pub func DeleteScript(c: Client, id: str): bool:",
      "pub func DeleteSearchPipeline(c: Client, id: str): bool:",
      "pub func DeleteSnapshot(c: Client, repo: str, snapshot: str): bool:",
      "pub func DeleteUser(c: Client, name: str): bool:",
      "pub func DeleteWith(c: Client, index: str, id: str, o: Options): WriteResult:",
      "pub func DisMax(queries: Vector<str>, tie_breaker: f64): str:",
      "pub func EncodeBasic(username: str, password: str): str:",
      "pub func Error(): str:",
      "pub func Error(): str:",
      "pub func Error(c: Client): str:",
      "pub func ErrorReason(c: Client): str:",
      "pub func ErrorType(c: Client): str:",
      "pub func Exec(_sql: str): int: ret -1 end",
      "pub func Exec(sql: str): int:",
      "pub func ExecuteMonitor(c: Client, id: str, dry_run: bool): str:",
      "pub func Exists(c: Client, index: str, id: str): bool:",
      "pub func Explain(c: Client, index: str, id: str, query: str): str:",
      "pub func ExplainPolicy(c: Client, index: str): str:",
      "pub func ExtendedStatsAgg(field: str): str:",
      "pub func FieldCaps(c: Client, index: str, fields: Vector<str>): str:",
      "pub func FieldExists(field: str): str:",
      "pub func FieldValueFactor(field: str, factor: f64, modifier: str): str:",
      "pub func FilterAgg(query: str): str:",
      "pub func Filtered(query: str, filters: Vector<str>): str:",
      "pub func Float(col: int): f64:",
      "pub func Flush(c: Client, index: str): bool:",
      "pub func ForceMerge(c: Client, index: str, max_segments: int): bool:",
      "pub func FunctionScore(query: str, functions: Vector<str>, score_mode: str, boost_mode: str): str:",
      "pub func Fuzzy(field: str, value: str): str:",
      "pub func GeoBoundingBox(field: str, top: f64, left: f64, bottom: f64, right: f64): str:",
      "pub func GeoDistance(field: str, lat: f64, lon: f64, distance: str): str:",
      "pub func Get(c: Client, index: str, id: str): Document:",
      "pub func GetAliases(c: Client, index: str): str:",
      "pub func GetClusterSettings(c: Client): str:",
      "pub func GetComponentTemplate(c: Client, name: str): str:",
      "pub func GetFields(c: Client, index: str, id: str, includes: Vector<str>, routing: str): Document:",
      "pub func GetIndex(c: Client, name: str): str:",
      "pub func GetIndexTemplate(c: Client, name: str): str:",
      "pub func GetInfo(c: Client): Info:",
      "pub func GetMapping(c: Client, index: str): str:",
      "pub func GetMonitor(c: Client, id: str): str:",
      "pub func GetPipeline(c: Client, id: str): str:",
      "pub func GetPolicy(c: Client, id: str): str:",
      "pub func GetRepository(c: Client, name: str): str:",
      "pub func GetRole(c: Client, name: str): str:",
      "pub func GetRoleMapping(c: Client, role: str): str:",
      "pub func GetScript(c: Client, id: str): str:",
      "pub func GetSearchPipeline(c: Client, id: str): str:",
      "pub func GetSetting(c: Client, index: str, name: str): str:",
      "pub func GetSettings(c: Client, index: str): str:",
      "pub func GetSnapshot(c: Client, repo: str, snapshot: str): str:",
      "pub func GetSource(c: Client, index: str, id: str): str:",
      "pub func GetTask(c: Client, task_id: str): TaskInfo:",
      "pub func GetUser(c: Client, name: str): str:",
      "pub func HasChild(child_type: str, query: str): str:",
      "pub func HasParent(parent_type: str, query: str): str:",
      "pub func HasPlugin(c: Client, name: str): bool:",
      "pub func Highlight(fields: Vector<str>): str:",
      "pub func HighlightTags(fields: Vector<str>, pre: str, post: str): str:",
      "pub func HistogramAgg(field: str, interval: f64): str:",
      "pub func HotThreads(c: Client): str:",
      "pub func Hybrid(queries: Vector<str>): str:",
      "pub func Ids(ids: Vector<str>): str:",
      "pub func Index(c: Client, index: str, id: str, doc: str): WriteResult:",
      "pub func IndexExists(c: Client, name: str): bool:",
      "pub func IndexStats(c: Client, index: str): str:",
      "pub func IndexTemplate(patterns: Vector<str>, settings: str, properties: str, priority: int): str:",
      "pub func IndexTemplateExists(c: Client, name: str): bool:",
      "pub func IndexWith(c: Client, index: str, id: str, doc: str, o: Options): WriteResult:",
      "pub func Int(col: int): int:",
      "pub func Int64(col: int): i64:",
      "pub func IsNull(col: int): bool:",
      "pub func JsonItems(raw: str): Vector<str>:",
      "pub func JsonPath(text: str, path: str): str:",
      "pub func JsonPathRaw(text: str, path: str): str:",
      "pub func Kind(): str: ret db.OPENSEARCH end",
      "pub func Knn(field: str, vector: Vector<f64>, k: int): str:",
      "pub func KnnClearCache(c: Client, index: str): bool:",
      "pub func KnnDeleteModel(c: Client, model_id: str): bool:",
      "pub func KnnFiltered(field: str, vector: Vector<f64>, k: int, filter: str): str:",
      "pub func KnnGetModel(c: Client, model_id: str): str:",
      "pub func KnnIndexBody(field: str, dimension: int, method: KnnMethod, extra_properties: Vector<str>): str:",
      "pub func KnnIndexSettings(shards: int, replicas: int): str:",
      "pub func KnnMinScore(field: str, vector: Vector<f64>, min_score: f64): str:",
      "pub func KnnRadial(field: str, vector: Vector<f64>, max_distance: f64): str:",
      "pub func KnnStats(c: Client): str:",
      "pub func KnnTrainModel(c: Client, model_id: str, body: str): bool:",
      "pub func KnnVector(values: Vector<f64>): str:",
      "pub func KnnVectorField(dimension: int, method: KnnMethod): str:",
      "pub func KnnWarmup(c: Client, index: str): bool:",
      "pub func LastInsertId(): i64: ret 0 end",
      "pub func ListPits(c: Client): Vector<str>:",
      "pub func ListTasks(c: Client, actions: str): str:",
      "pub func MGet(c: Client, index: str, ids: Vector<str>): Vector<Document>:",
      "pub func MSearch(c: Client, index: str, bodies: Vector<str>): Vector<SearchResult>:",
      "pub func Match(field: str, text: str): str:",
      "pub func MatchAll(): str:",
      "pub func MatchAnd(field: str, text: str): str:",
      "pub func MatchBoolPrefix(field: str, text: str): str:",
      "pub func MatchFuzzy(field: str, text: str): str:",
      "pub func MatchNone(): str:",
      "pub func MatchPhrase(field: str, text: str): str:",
      "pub func MatchPhrasePrefix(field: str, text: str): str:",
      "pub func MatchPhraseSlop(field: str, text: str, slop: int): str:",
      "pub func MaxAgg(field: str): str:",
      "pub func MinAgg(field: str): str:",
      "pub func MissingAgg(field: str): str:",
      "pub func MlDeleteModel(c: Client, model_id: str): bool:",
      "pub func MlDeployModel(c: Client, model_id: str): str:",
      "pub func MlGetModel(c: Client, model_id: str): str:",
      "pub func MlGetTask(c: Client, task_id: str): str:",
      "pub func MlPredict(c: Client, algorithm: str, model_id: str, body: str): str:",
      "pub func MlRegisterModel(c: Client, body: str): str:",
      "pub func MlUndeployModel(c: Client, model_id: str): bool:",
      "pub func MoreLikeThis(fields: Vector<str>, like: str): str:",
      "pub func MultiMatch(text: str, fields: Vector<str>): str:",
      "pub func MultiMatchType(text: str, fields: Vector<str>, kind: str): str:",
      "pub func Nested(path: str, query: str): str:",
      "pub func NestedAgg(path: str): str:",
      "pub func Neural(field: str, query_text: str, model_id: str, k: int): str:",
      "pub func NeuralSparse(field: str, query_text: str, model_id: str): str:",
      "pub func NewBulk(): Bulk:",
      "pub func NewClient(cfg: Config): Client:",
      "pub func Next(): bool:",
      "pub func Nodes(c: Client): Vector<str>:",
      "pub func NodesInfo(c: Client, metrics: str): str:",
      "pub func NodesStats(c: Client, metrics: str): str:",
      "pub func NormalizationPipeline(normalization: str, combination: str, weights: Vector<f64>): str:",
      "pub func Not(clause: str): str:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool: ret false end",
      "pub func Ok(c: Client): bool:",
      "pub func OpenIndex(c: Client, index: str): bool:",
      "pub func Or(clauses: Vector<str>): str:",
      "pub func ParseBulk(body: str): BulkResult:",
      "pub func ParseSearch(body: str): SearchResult:",
      "pub func PercentilesAgg(field: str, percents: Vector<f64>): str:",
      "pub func Perform(c: Client, method: str, path: str, body: str): Response:",
      "pub func PerformNdjson(c: Client, method: str, path: str, body: str): Response:",
      "pub func PerformText(c: Client, method: str, path: str, body: str, content_type: str): Response:",
      "pub func Ping(): bool:",
      "pub func Ping(c: Client): bool:",
      "pub func Pipeline(description: str, processors: Vector<str>): str:",
      "pub func Plugins(c: Client): Vector<str>:",
      "pub func PolicyIdOf(c: Client, index: str): str:",
      "pub func Ppl(c: Client, query: str): SqlRows:",
      "pub func PplExplain(c: Client, query: str): str:",
      "pub func PplFormat(c: Client, query: str, format: str): str:",
      "pub func Prefix(field: str, value: str): str:",
      "pub func Processor(kind: str, config: str): str:",
      "pub func Properties(props: Vector<str>): str:",
      "pub func Property(name: str, kind: str): str:",
      "pub func PropertyWith(name: str, kind: str, extra: str): str:",
      "pub func PutAlias(c: Client, index: str, alias: str): bool:",
      "pub func PutAliasFiltered(c: Client, index: str, alias: str, filter: str, is_write_index: bool): bool:",
      "pub func PutClusterSettings(c: Client, persistent: str, transient: str): bool:",
      "pub func PutComponentTemplate(c: Client, name: str, body: str): bool:",
      "pub func PutIndexTemplate(c: Client, name: str, body: str): bool:",
      "pub func PutMapping(c: Client, index: str, properties: str): bool:",
      "pub func PutMappingBody(c: Client, index: str, body: str): bool:",
      "pub func PutPipeline(c: Client, id: str, body: str): bool:",
      "pub func PutPolicy(c: Client, id: str, policy: str): bool:",
      "pub func PutRepository(c: Client, name: str, kind: str, settings: str): bool:",
      "pub func PutRole(c: Client, name: str, body: str): bool:",
      "pub func PutRoleMapping(c: Client, role: str, users: Vector<str>, backend_roles: Vector<str>): bool:",
      "pub func PutScript(c: Client, id: str, source: str): bool:",
      "pub func PutSearchPipeline(c: Client, id: str, body: str): bool:",
      "pub func PutSearchTemplate(c: Client, id: str, source: str): bool:",
      "pub func PutSettings(c: Client, index: str, settings: str): bool:",
      "pub func PutUser(c: Client, name: str, password: str, backend_roles: Vector<str>, attributes: str): bool:",
      "pub func Query(_sql: str): dyn db.Rows:",
      "pub func Query(sql: str): dyn db.Rows:",
      "pub func QueryString(query: str): str:",
      "pub func QueryStringFields(query: str, fields: Vector<str>, default_operator: str): str:",
      "pub func Quote(s: str): str:",
      "pub func Range(field: str, low: str, high: str): str:",
      "pub func RangeAgg(field: str, bounds: Vector<f64>): str:",
      "pub func RangeExclusive(field: str, low: str, high: str): str:",
      "pub func RangeInt(field: str, low: i64, high: i64): str:",
      "pub func RangeNum(field: str, low: f64, high: f64): str:",
      "pub func RangeOp(field: str, op: str, value: str): str:",
      "pub func Raw(col: int): str:",
      "pub func Refresh(c: Client, index: str): bool:",
      "pub func Regexp(field: str, pattern: str): str:",
      "pub func Reindex(c: Client, source: str, dest: str): ByQueryResult:",
      "pub func ReindexBody(c: Client, body: str, wait: bool): ByQueryResult:",
      "pub func RemovePolicy(c: Client, index: str): int:",
      "pub func RenderTemplate(c: Client, source: str, params: str): str:",
      "pub func RestoreSnapshot(c: Client, repo: str, snapshot: str, body: str, wait: bool): bool:",
      "pub func RetryPolicy(c: Client, index: str): int:",
      "pub func RoleBody(cluster_permissions: Vector<str>, index_patterns: Vector<str>, allowed_actions: Vector<str>): str:",
      "pub func Rollback(): int: ret -1 end",
      "pub func Rollover(c: Client, alias: str, conditions: str): str:",
      "pub func Script(source: str, params: str): str:",
      "pub func ScriptQuery(source: str, params: str): str:",
      "pub func ScriptScore(query: str, source: str, params: str): str:",
      "pub func Scroll(c: Client, scroll_id: str, keep_alive: str): SearchResult:",
      "pub func Search(c: Client, index: str, query: str): SearchResult:",
      "pub func SearchBody(req: SearchRequest): str:",
      "pub func SearchInlineTemplate(c: Client, index: str, source: str, params: str): SearchResult:",
      "pub func SearchMonitors(c: Client, query: str): SearchResult:",
      "pub func SearchParamsWith(c: Client, index: str, body: str, p: SearchParams): SearchResult:",
      "pub func SearchRaw(c: Client, index: str, body: str): SearchResult:",
      "pub func SearchScroll(c: Client, index: str, req: SearchRequest, keep_alive: str): SearchResult:",
      "pub func SearchTemplate(c: Client, index: str, template_id: str, params: str): SearchResult:",
      "pub func SearchWith(c: Client, index: str, req: SearchRequest): SearchResult:",
      "pub func SecurityHealth(c: Client): str:",
      "pub func SetSigningTime(c: Client, epoch: i64):",
      "pub func ShrinkIndex(c: Client, source: str, target: str, body: str): bool:",
      "pub func SignRequest(",
      "pub func SimpleQueryString(query: str, fields: Vector<str>): str:",
      "pub func SimulatePipeline(c: Client, id: str, docs: Vector<str>): Vector<str>:",
      "pub func SnapshotStatus(c: Client, repo: str, snapshot: str): str:",
      "pub func Snapshots(c: Client, repo: str): Vector<str>:",
      "pub func SortAsc(field: str): str:",
      "pub func SortDesc(field: str): str:",
      "pub func SortGeo(field: str, lat: f64, lon: f64, unit: str): str:",
      "pub func SortScore(): str:",
      "pub func SplitIndex(c: Client, source: str, target: str, body: str): bool:",
      "pub func Sql(c: Client, query: str): SqlRows:",
      "pub func SqlExplain(c: Client, query: str): str:",
      "pub func SqlFormat(c: Client, query: str, format: str): str:",
      "pub func SqlParam(kind: str, value: str): str:",
      "pub func SqlWith(c: Client, query: str, params: Vector<str>, fetch_size: int): SqlRows:",
      "pub func StatsAgg(field: str): str:",
      "pub func Status(c: Client): int:",
      "pub func SubAggs(agg: str, aggs: str): str:",
      "pub func Suggestions(suggest: str, name: str): Vector<str>:",
      "pub func SumAgg(field: str): str:",
      "pub func SwapAlias(c: Client, alias: str, old_index: str, new_index: str): bool:",
      "pub func Term(field: str, value: str): str:",
      "pub func TermBool(field: str, value: bool): str:",
      "pub func TermCaseInsensitive(field: str, value: str): str:",
      "pub func TermInt(field: str, value: i64): str:",
      "pub func TermSuggest(name: str, text: str, field: str): str:",
      "pub func Terms(field: str, values: Vector<str>): str:",
      "pub func TermsAgg(field: str, size: int): str:",
      "pub func TermsInt(field: str, values: Vector<i64>): str:",
      "pub func TermsLookup(field: str, index: str, id: str, path: str): str:",
      "pub func TermsSet(field: str, values: Vector<str>, minimum_field: str): str:",
      "pub func Text(col: int): str:",
      "pub func TopHitsAgg(size: int): str:",
      "pub func Total(): i64:",
      "pub func Update(c: Client, index: str, id: str, partial: str): WriteResult:",
      "pub func UpdateAliases(c: Client, actions: Vector<str>): bool:",
      "pub func UpdateByQuery(c: Client, index: str, query: str, script: str): ByQueryResult:",
      "pub func UpdateByQueryWith(c: Client, index: str, query: str, script: str, o: Options): ByQueryResult:",
      "pub func UpdateMonitor(c: Client, id: str, body: str): bool:",
      "pub func UpdatePolicy(c: Client, id: str, policy: str, seq_no: i64, primary_term: i64): bool:",
      "pub func UpdateScript(c: Client, index: str, id: str, script: str, upsert: str): WriteResult:",
      "pub func UpdateWith(c: Client, index: str, id: str, body: str, o: Options): WriteResult:",
      "pub func Upsert(c: Client, index: str, id: str, doc: str): WriteResult:",
      "pub func Users(c: Client): Vector<str>:",
      "pub func Validate(c: Client, index: str, query: str): bool:",
      "pub func ValueCountAgg(field: str): str:",
      "pub func VerifyRepository(c: Client, name: str): bool:",
      "pub func WaitForStatus(c: Client, index: str, status: str, timeout: str): Health:",
      "pub func WaitTask(c: Client, task_id: str, timeout: str): TaskInfo:",
      "pub func WhoAmI(c: Client): AuthInfo:",
      "pub func Wildcard(field: str, pattern: str): str:",
      "pub struct AuthInfo:",
      "pub struct BoolQuery:",
      "pub struct Bucket:",
      "pub struct Bulk:",
      "pub struct BulkItem:",
      "pub struct BulkResult:",
      "pub struct ByQueryResult:",
      "pub struct Client:",
      "pub struct Config:",
      "pub struct Database:",
      "pub struct Document:",
      "pub struct Health:",
      "pub struct Hit:",
      "pub struct IndexInfo:",
      "pub struct Info:",
      "pub struct KnnMethod:",
      "pub struct Options:",
      "pub struct Response:",
      "pub struct SearchParams:",
      "pub struct SearchRequest:",
      "pub struct SearchResult:",
      "pub struct SqlRows:",
      "pub struct TaskInfo:",
      "pub struct Txn:",
      "pub struct WriteResult:"
    ],
    "db.postgres": [
      "pub func Available(): bool: ret true end",
      "pub func Begin(): dyn db.Tx:",
      "pub func Changes(): i64: ret this.affected end",
      "pub func ClientVersion(): int: ret _pq_lib_version() end",
      "pub func Close(): int:",
      "pub func Close(): int:",
      "pub func Close(d: Database): int: ret d.Close() end",
      "pub func ColumnCount(): int:",
      "pub func ColumnName(col: int): str:",
      "pub func ColumnType(col: int): int:",
      "pub func Commit(): int:",
      "pub func Conn(d: Database): dyn db.Connection:",
      "pub func DatabaseName(d: Database): str:",
      "pub func Error(): str:",
      "pub func Error(d: Database): str: ret d.Error() end",
      "pub func Exec(d: Database, sql: str): int: ret d.Exec(sql) end",
      "pub func Exec(sql: str): int:",
      "pub func Exec(sql: str): int:",
      "pub func ExecCount(d: Database, sql: str): i64:",
      "pub func Float(col: int): f64:",
      "pub func HostName(d: Database): str:",
      "pub func Int(col: int): int: ret this.Int64(col) as int end",
      "pub func Int64(col: int): i64:",
      "pub func IsNull(col: int): bool:",
      "pub func Kind(): str: ret db.POSTGRES end",
      "pub func LastInsertId(): i64:",
      "pub func Next(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool: ret this.handle != null end",
      "pub func Ok(): bool: ret this.handle != null end",
      "pub func Ok(d: Database): bool: ret d.Ok() end",
      "pub func Open(conninfo: str): Database:",
      "pub func OpenFull(host: str, port: int, user: str, pass: str, dbname: str): Database:",
      "pub func Ping(): bool:",
      "pub func Ping(d: Database): bool: ret d.Ping() end",
      "pub func Port(d: Database): str:",
      "pub func Query(d: Database, sql: str): Rows:",
      "pub func Query(sql: str): dyn db.Rows:",
      "pub func Query(sql: str): dyn db.Rows:",
      "pub func QueryInt(d: Database, sql: str): int:",
      "pub func QueryText(d: Database, sql: str): str:",
      "pub func Quote(d: Database, s: str): str: ret d.Quote(s) end",
      "pub func Quote(s: str): str:",
      "pub func Reset(d: Database):",
      "pub func Rollback(): int:",
      "pub func RowCount(): int: ret this.count end",
      "pub func ServerVersion(d: Database): int:",
      "pub func Text(col: int): str:",
      "pub func UserName(d: Database): str:",
      "pub struct Database:",
      "pub struct Rows:",
      "pub struct Txn:"
    ],
    "db.redis": [
      "pub const REPLY_ARRAY := 2",
      "pub const REPLY_DOUBLE := 7",
      "pub const REPLY_ERROR := 6",
      "pub const REPLY_INTEGER := 3",
      "pub const REPLY_NIL := 4",
      "pub const REPLY_STATUS := 5",
      "pub const REPLY_STRING := 1",
      "pub func Append(c: Client, key: str, val: str): i64:",
      "pub func Auth(c: Client, password: str): bool:",
      "pub func Close(c: Client):",
      "pub func Command(c: Client, args: Vector<str>): Reply:",
      "pub func Connect(host: str, port: int): Client:",
      "pub func Decr(c: Client, key: str): i64:",
      "pub func Del(c: Client, key: str): bool:",
      "pub func Error(c: Client): str:",
      "pub func Exists(c: Client, key: str): bool:",
      "pub func Expire(c: Client, key: str, seconds: int): bool:",
      "pub func FlushDB(c: Client): bool:",
      "pub func FreeReply(r: Reply):",
      "pub func Get(c: Client, key: str): str:",
      "pub func HDel(c: Client, key: str, field: str): bool:",
      "pub func HExists(c: Client, key: str, field: str): bool:",
      "pub func HGet(c: Client, key: str, field: str): str:",
      "pub func HGetAll(c: Client, key: str): HashMap<str, str>:",
      "pub func HLen(c: Client, key: str): i64:",
      "pub func HSet(c: Client, key: str, field: str, val: str): bool:",
      "pub func Incr(c: Client, key: str): i64:",
      "pub func IncrBy(c: Client, key: str, delta: i64): i64:",
      "pub func Keys(c: Client, pattern: str): Vector<str>:",
      "pub func LLen(c: Client, key: str): i64:",
      "pub func LPop(c: Client, key: str): str:",
      "pub func LPush(c: Client, key: str, val: str): i64:",
      "pub func LRange(c: Client, key: str, start: int, stop: int): Vector<str>:",
      "pub func Ok(c: Client): bool:",
      "pub func Ping(c: Client): bool:",
      "pub func Publish(c: Client, channel: str, message: str): i64:",
      "pub func RPop(c: Client, key: str): str:",
      "pub func RPush(c: Client, key: str, val: str): i64:",
      "pub func ReplyArrayGet(r: Reply, i: int): Reply:",
      "pub func ReplyArrayLen(r: Reply): int:",
      "pub func ReplyInt(r: Reply): i64:",
      "pub func ReplyIsError(r: Reply): bool:",
      "pub func ReplyIsNil(r: Reply): bool:",
      "pub func ReplyOk(r: Reply): bool:",
      "pub func ReplyStr(r: Reply): str:",
      "pub func ReplyType(r: Reply): int:",
      "pub func SAdd(c: Client, key: str, member: str): i64:",
      "pub func SCard(c: Client, key: str): i64:",
      "pub func SIsMember(c: Client, key: str, member: str): bool:",
      "pub func SMembers(c: Client, key: str): Vector<str>:",
      "pub func SRem(c: Client, key: str, member: str): i64:",
      "pub func Select(c: Client, index: int): bool:",
      "pub func Set(c: Client, key: str, val: str): bool:",
      "pub func SetEx(c: Client, key: str, val: str, seconds: int): bool:",
      "pub func StrLen(c: Client, key: str): i64:",
      "pub func TTL(c: Client, key: str): i64:",
      "pub func Type(c: Client, key: str): str:",
      "pub struct Client:",
      "pub struct Reply:"
    ],
    "db.sql": [
      "pub const ERROR := 0",
      "pub const MARIADB := 2",
      "pub const MYSQL := 1",
      "pub const NOTE := 2",
      "pub const POSTGRES := 3",
      "pub const Q_EXEC := 2",
      "pub const Q_EXECROWS := 3",
      "pub const Q_MANY := 1",
      "pub const Q_ONE := 0",
      "pub const SQLITE := 0",
      "pub const STMT_DDL := 5",
      "pub const STMT_DELETE := 4",
      "pub const STMT_INSERT := 2",
      "pub const STMT_SELECT := 1",
      "pub const STMT_UNKNOWN := 0",
      "pub const STMT_UPDATE := 3",
      "pub const TYPE_BLOB := 4",
      "pub const TYPE_BOOL := 5",
      "pub const TYPE_FLOAT := 2",
      "pub const TYPE_INT := 1",
      "pub const TYPE_NULL := 0",
      "pub const TYPE_TEXT := 3",
      "pub const TYPE_TIME := 6",
      "pub const TYPE_UNKNOWN := 7",
      "pub const WARNING := 1",
      "pub func AddBool(a &: Args, v: bool):",
      "pub func AddFloat(a &: Args, v: f64):",
      "pub func AddInt(a &: Args, v: i64):",
      "pub func AddNull(a &: Args):",
      "pub func AddText(a &: Args, v: str):",
      "pub func Analyze(sql: str, c: Catalog): Analysis:",
      "pub func Apply(c &: Catalog, ddl: str): Report:",
      "pub func ArgCount(a: Args): int:",
      "pub func Check(sql: str, c: Catalog): Report:",
      "pub func ColumnAt(c: Catalog, table: str, i: int): Column:",
      "pub func ColumnCount(c: Catalog, table: str): int:",
      "pub func DiagText(d: Diag): str:",
      "pub func DialectNamed(name: str): Dialect:",
      "pub func DialectOf(id: int): Dialect:",
      "pub func Fill(query: str, a: Args, d: Dialect, err &: Report): str:",
      "pub func FreeAnalysis(a &: Analysis):",
      "pub func FreeArgs(a &: Args):",
      "pub func FreeCatalog(c &: Catalog):",
      "pub func FreeQueries(v &: Vector<Query>):",
      "pub func FreeReport(r &: Report):",
      "pub func Generate(pkg: str, queries: Vector<Query>, c: Catalog, err &: Report): str:",
      "pub func HasColumn(c: Catalog, table: str, column: str): bool:",
      "pub func HasTable(c: Catalog, name: str): bool:",
      "pub func KindName(k: int): str:",
      "pub func Lint(sql: str, d: Dialect): Report:",
      "pub func NewArgs(): Args:",
      "pub func NewCatalog(d: Dialect): Catalog:",
      "pub func ParamCount(sql: str, d: Dialect): int:",
      "pub func ParseQueries(src: str, err &: Report): Vector<Query>:",
      "pub func Placeholders(sql: str, d: Dialect): Vector<str>:",
      "pub func ReportText(r: Report): str:",
      "pub func SalamType(k: int, not_null: bool): str:",
      "pub func StmtKindName(k: int): str:",
      "pub func TableCount(c: Catalog): int:",
      "pub func TableName(c: Catalog, i: int): str:",
      "pub struct Analysis:",
      "pub struct Args:",
      "pub struct Catalog:",
      "pub struct Column:",
      "pub struct Diag:",
      "pub struct Dialect:",
      "pub struct Param:",
      "pub struct Query:",
      "pub struct Report:",
      "pub struct ResultCol:",
      "pub struct Table:"
    ],
    "db.sqlite": [
      "pub func Available(): bool:",
      "pub func Begin(): dyn db.Tx:",
      "pub func Begin(db: Database): int:",
      "pub func BindFloat(rows: Rows, idx: int, val: f64): int:",
      "pub func BindInt(rows: Rows, idx: int, val: i64): int:",
      "pub func BindNull(rows: Rows, idx: int): int:",
      "pub func BindText(rows: Rows, idx: int, val: str): int:",
      "pub func Changes(): i64:",
      "pub func Changes(db: Database): int:",
      "pub func Close(): int:",
      "pub func Close(): int:",
      "pub func Close(db: Database): int:",
      "pub func ColumnCount(): int:",
      "pub func ColumnCount(rows: Rows): int:",
      "pub func ColumnName(col: int): str:",
      "pub func ColumnName(rows: Rows, col: int): str:",
      "pub func ColumnType(col: int): int:",
      "pub func ColumnType(rows: Rows, col: int): int:",
      "pub func Commit(): int:",
      "pub func Commit(db: Database): int:",
      "pub func Conn(d: Database): dyn db.Connection:",
      "pub func Error(): str:",
      "pub func Error(db: Database): str:",
      "pub func Exec(db: Database, sql: str): int:",
      "pub func Exec(sql: str): int:",
      "pub func Exec(sql: str): int:",
      "pub func Finish(rows: Rows): int:",
      "pub func Float(col: int): f64:",
      "pub func Float(rows: Rows, col: int): f64:",
      "pub func Int(col: int): int:",
      "pub func Int(rows: Rows, col: int): int:",
      "pub func Int64(col: int): i64:",
      "pub func Int64(rows: Rows, col: int): i64:",
      "pub func IsNull(col: int): bool:",
      "pub func IsNull(rows: Rows, col: int): bool:",
      "pub func Kind(): str: ret db.SQLITE end",
      "pub func LastInsertId(): i64:",
      "pub func LastInsertId(db: Database): i64:",
      "pub func Next(): bool:",
      "pub func Next(rows: Rows): bool:",
      "pub func Ok(): bool: ret this.handle != null end",
      "pub func Ok(): bool: ret this.handle != null end",
      "pub func Ok(): bool: ret this.handle != null end",
      "pub func Ok(db: Database): bool:",
      "pub func Open(path: str): Database:",
      "pub func Ping(): bool: ret this.handle != null end",
      "pub func Prepare(db: Database, sql: str): Rows:",
      "pub func Query(db: Database, sql: str): Rows:",
      "pub func Query(sql: str): dyn db.Rows:",
      "pub func Query(sql: str): dyn db.Rows:",
      "pub func QueryInt(db: Database, sql: str): int:",
      "pub func QueryText(db: Database, sql: str): str:",
      "pub func Quote(s: str): str: ret db.QuoteLiteral(s) end",
      "pub func Reset(rows: Rows): int:",
      "pub func Rollback(): int:",
      "pub func Rollback(db: Database): int:",
      "pub func StmtOk(rows: Rows): bool:",
      "pub func Text(col: int): str:",
      "pub func Text(rows: Rows, col: int): str:",
      "pub func TotalChanges(db: Database): int:",
      "pub func Version(): str:",
      "pub struct Database:",
      "pub struct Rows:",
      "pub struct Txn:"
    ],
    "db.typesense": [
      "pub const ACTION_CREATE := \"create\"",
      "pub const ACTION_EMPLACE := \"emplace\"",
      "pub const ACTION_UPDATE := \"update\"",
      "pub const ACTION_UPSERT := \"upsert\"",
      "pub const DIRTY_COERCE_OR_DROP := \"coerce_or_drop\"",
      "pub const DIRTY_COERCE_OR_REJECT := \"coerce_or_reject\"",
      "pub const DIRTY_DROP := \"drop\"",
      "pub const DIRTY_REJECT := \"reject\"",
      "pub const EVENT_CLICK := \"click\"",
      "pub const EVENT_CONVERSION := \"conversion\"",
      "pub const EVENT_CUSTOM := \"custom\"",
      "pub const EVENT_SEARCH := \"search\"",
      "pub const EVENT_VISIT := \"visit\"",
      "pub const KEY_ACTION_ALL := \"*\"",
      "pub const KEY_ACTION_SEARCH := \"documents:search\"",
      "pub const KIND_DECODE := \"decode\"",
      "pub const KIND_HTTP := \"http\"",
      "pub const KIND_INVALID := \"invalid\"",
      "pub const KIND_NETWORK := \"network\"",
      "pub const MATCH_CONTAINS := \"contains\"",
      "pub const MATCH_EXACT := \"exact\"",
      "pub const MAX_GET_QUERY := 4000",
      "pub const RULE_COUNTER := \"counter\"",
      "pub const RULE_LOG := \"log\"",
      "pub const RULE_NOHITS_QUERIES := \"nohits_queries\"",
      "pub const RULE_POPULAR_QUERIES := \"popular_queries\"",
      "pub const TYPE_AUTO := \"auto\"",
      "pub const TYPE_BOOL := \"bool\"",
      "pub const TYPE_BOOL_ARRAY := \"bool[]\"",
      "pub const TYPE_FLOAT := \"float\"",
      "pub const TYPE_FLOAT_ARRAY := \"float[]\"",
      "pub const TYPE_GEOPOINT := \"geopoint\"",
      "pub const TYPE_GEOPOINT_ARRAY := \"geopoint[]\"",
      "pub const TYPE_GEOPOLYGON := \"geopolygon\"",
      "pub const TYPE_IMAGE := \"image\"",
      "pub const TYPE_INT32 := \"int32\"",
      "pub const TYPE_INT32_ARRAY := \"int32[]\"",
      "pub const TYPE_INT64 := \"int64\"",
      "pub const TYPE_INT64_ARRAY := \"int64[]\"",
      "pub const TYPE_OBJECT := \"object\"",
      "pub const TYPE_OBJECT_ARRAY := \"object[]\"",
      "pub const TYPE_STRING := \"string\"",
      "pub const TYPE_STRING_ANY := \"string*\"",
      "pub const TYPE_STRING_ARRAY := \"string[]\"",
      "pub const VERSION := \"1.0.0\"",
      "pub func AddFields(c: Client, name: str, fields: Vector<Field>, err &: Error): str:",
      "pub func AddHeader(c &: Client, name: str, value: str):",
      "pub func AddNode(c &: Client, url: str):",
      "pub func AnalyticsRuleJSON(r: AnalyticsRule): str:",
      "pub func AnalyticsStatus(c: Client, err &: Error): str:",
      "pub func ClearCache(c: Client, err &: Error): bool:",
      "pub func CloneCollection(c: Client, source: str, name: str, err &: Error): Collection:",
      "pub func CollectionExists(c: Client, name: str, err &: Error): bool:",
      "pub func CompactDB(c: Client, err &: Error): bool:",
      "pub func ConversationModelJSON(m: ConversationModel): str:",
      "pub func CreateAnalyticsRule(c: Client, r: AnalyticsRule, err &: Error): AnalyticsRule:",
      "pub func CreateAnalyticsRuleJSON(c: Client, rule: str, err &: Error): str:",
      "pub func CreateCollection(c: Client, schema: Schema, err &: Error): Collection:",
      "pub func CreateCollectionJSON(c: Client, schema: str, err &: Error): Collection:",
      "pub func CreateConversationModel(c: Client, m: ConversationModel, err &: Error): str:",
      "pub func CreateDocument(c: Client, collection: str, document: str, err &: Error): str:",
      "pub func CreateDocumentOf<T>(c: Client, collection: str, document: T, err &: Error): str:",
      "pub func CreateKey(c: Client, spec: KeySpec, err &: Error): Key:",
      "pub func CreateNLSearchModel(c: Client, model: str, err &: Error): str:",
      "pub func CreateSnapshot(c: Client, snapshot_path: str, err &: Error): bool:",
      "pub func CurationJSON(r: CurationRule): str:",
      "pub func Debug(c: Client, err &: Error): str:",
      "pub func DecodeDocument<T>(document: str, out &: T, err &: Error): bool:",
      "pub func DecodeDocuments<T>(documents: Vector<str>, out &: Vector<T>, err &: Error): bool:",
      "pub func DeleteAlias(c: Client, name: str, err &: Error): Alias:",
      "pub func DeleteAnalyticsRule(c: Client, name: str, err &: Error): str:",
      "pub func DeleteByFilter(c: Client, collection: str, filter_by: str, batch_size: int, err &: Error): i64:",
      "pub func DeleteCollection(c: Client, name: str, err &: Error): Collection:",
      "pub func DeleteConversationModel(c: Client, id: str, err &: Error): str:",
      "pub func DeleteCurationItem(c: Client, set: str, id: str, err &: Error): str:",
      "pub func DeleteCurationSet(c: Client, name: str, err &: Error): str:",
      "pub func DeleteDocument(c: Client, collection: str, id: str, err &: Error): str:",
      "pub func DeleteKey(c: Client, id: i64, err &: Error): i64:",
      "pub func DeleteNLSearchModel(c: Client, id: str, err &: Error): str:",
      "pub func DeleteOverride(c: Client, collection: str, id: str, err &: Error): str:",
      "pub func DeletePreset(c: Client, name: str, err &: Error): str:",
      "pub func DeleteStemmingDictionary(c: Client, id: str, err &: Error): str:",
      "pub func DeleteStopwords(c: Client, id: str, err &: Error): str:",
      "pub func DeleteSynonym(c: Client, collection: str, id: str, err &: Error): str:",
      "pub func DeleteSynonymItem(c: Client, set: str, id: str, err &: Error): str:",
      "pub func DeleteSynonymSet(c: Client, name: str, err &: Error): str:",
      "pub func DocumentExists(c: Client, collection: str, id: str, err &: Error): bool:",
      "pub func DropFields(c: Client, name: str, fields: Vector<str>, err &: Error): str:",
      "pub func EmbeddingField(name: str, from: Vector<str>, model_name: str): Field:",
      "pub func EmplaceDocument(c: Client, collection: str, document: str, err &: Error): str:",
      "pub func ErrorString(err: Error): str:",
      "pub func ExportDocuments(c: Client, collection: str, opts: ExportOptions, err &: Error): Vector<str>:",
      "pub func ExportJSONL(c: Client, collection: str, opts: ExportOptions, err &: Error): str:",
      "pub func FacetField(name: str, kind: str): Field:",
      "pub func FieldJSON(f: Field): str:",
      "pub func FlushAnalytics(c: Client, err &: Error): bool:",
      "pub func Free(c &: Client):",
      "pub func FreeResult(r &: SearchResult):",
      "pub func GenerateScopedSearchKey(search_key: str, embedded_params: str): str:",
      "pub func GetAlias(c: Client, name: str, err &: Error): Alias:",
      "pub func GetAnalyticsRule(c: Client, name: str, err &: Error): AnalyticsRule:",
      "pub func GetCollection(c: Client, name: str, err &: Error): Collection:",
      "pub func GetConversationModel(c: Client, id: str, err &: Error): str:",
      "pub func GetCurationItem(c: Client, set: str, id: str, err &: Error): CurationRule:",
      "pub func GetCurationSet(c: Client, name: str, err &: Error): CurationSet:",
      "pub func GetDocument(c: Client, collection: str, id: str, err &: Error): str:",
      "pub func GetDocumentAs<T>(c: Client, collection: str, id: str, out &: T, err &: Error): bool:",
      "pub func GetEvents(c: Client, user_id: str, name: str, n: int, err &: Error): Vector<str>:",
      "pub func GetKey(c: Client, id: i64, err &: Error): Key:",
      "pub func GetNLSearchModel(c: Client, id: str, err &: Error): str:",
      "pub func GetOverride(c: Client, collection: str, id: str, err &: Error): CurationRule:",
      "pub func GetPreset(c: Client, name: str, err &: Error): Preset:",
      "pub func GetStemmingDictionary(c: Client, id: str, err &: Error): StemmingDictionary:",
      "pub func GetStopwords(c: Client, id: str, err &: Error): Stopwords:",
      "pub func GetSynonym(c: Client, collection: str, id: str, err &: Error): Synonym:",
      "pub func GetSynonymItem(c: Client, set: str, id: str, err &: Error): Synonym:",
      "pub func GetSynonymSet(c: Client, name: str, err &: Error): SynonymSet:",
      "pub func Health(c: Client, err &: Error): bool:",
      "pub func Highlight(h: Hit, field: str): str:",
      "pub func HitsAs<T>(r: SearchResult, out &: Vector<T>, err &: Error): bool:",
      "pub func ImportDocuments(c: Client, collection: str, documents: Vector<str>, opts: WriteOptions, err &: Error): ImportResult:",
      "pub func ImportJSONL(c: Client, collection: str, jsonl: str, opts: WriteOptions, err &: Error): ImportResult:",
      "pub func ImportOf<T>(c: Client, collection: str, documents: Vector<T>, opts: WriteOptions, err &: Error): ImportResult:",
      "pub func ImportStemmingDictionary(c: Client, id: str, words: Vector<StemWord>, err &: Error): bool:",
      "pub func ImportStemmingJSONL(c: Client, id: str, jsonl: str, err &: Error): bool:",
      "pub func IndexDocument(c: Client, collection: str, document: str, opts: WriteOptions, err &: Error): str:",
      "pub func IsConflict(err: Error): bool:",
      "pub func IsHealthy(c: Client): bool:",
      "pub func IsNotFound(err: Error): bool:",
      "pub func KeySpecJSON(spec: KeySpec): str:",
      "pub func ListAliases(c: Client, err &: Error): Vector<Alias>:",
      "pub func ListAnalyticsRules(c: Client, rule_tag: str, err &: Error): Vector<AnalyticsRule>:",
      "pub func ListCollections(c: Client, err &: Error): Vector<Collection>:",
      "pub func ListCollectionsPage(c: Client, offset: int, limit: int, exclude_fields: Vector<str>, err &: Error): Vector<Collection>:",
      "pub func ListConversationModels(c: Client, err &: Error): Vector<str>:",
      "pub func ListCurationItems(c: Client, set: str, err &: Error): Vector<CurationRule>:",
      "pub func ListCurationSets(c: Client, err &: Error): Vector<CurationSet>:",
      "pub func ListKeys(c: Client, err &: Error): Vector<Key>:",
      "pub func ListNLSearchModels(c: Client, err &: Error): Vector<str>:",
      "pub func ListOverrides(c: Client, collection: str, err &: Error): Vector<CurationRule>:",
      "pub func ListPresets(c: Client, err &: Error): Vector<Preset>:",
      "pub func ListStemmingDictionaries(c: Client, err &: Error): Vector<str>:",
      "pub func ListStopwords(c: Client, err &: Error): Vector<Stopwords>:",
      "pub func ListSynonymItems(c: Client, set: str, err &: Error): Vector<Synonym>:",
      "pub func ListSynonymSets(c: Client, err &: Error): Vector<SynonymSet>:",
      "pub func ListSynonyms(c: Client, collection: str, err &: Error): Vector<Synonym>:",
      "pub func Metrics(c: Client, err &: Error): str:",
      "pub func MultiSearch(c: Client, searches: Vector<SearchRequest>, common: SearchParams, err &: Error): Vector<SearchResult>:",
      "pub func MultiSearchRaw(c: Client, searches: Vector<SearchRequest>, common: SearchParams, err &: Error): str:",
      "pub func New(url: str, api_key: str): Client:",
      "pub func NewCluster(urls: Vector<str>, api_key: str): Client:",
      "pub func NewField(name: str, kind: str): Field:",
      "pub func NewSearch(q: str, query_by: str): SearchParams:",
      "pub func NodeHealthy(c: Client, index: int): bool:",
      "pub func Ok(err: Error): bool:",
      "pub func ParseSearchResult(body: str): SearchResult:",
      "pub func Request(c: Client, method: str, path: str, body: str, err &: Error): str:",
      "pub func RequestAs(c: Client, method: str, path: str, content_type: str, body: str, err &: Error): str:",
      "pub func ResetPeers(c: Client, err &: Error): bool:",
      "pub func SchemaChanges(c: Client, err &: Error): Vector<str>:",
      "pub func SchemaJSON(s: Schema): str:",
      "pub func ScopedSearchKey(search_key: str, p: SearchParams, expires_at: i64): str:",
      "pub func Search(c: Client, collection: str, p: SearchParams, err &: Error): SearchResult:",
      "pub func SearchOnlyKey(c: Client, description: str, collections: Vector<str>, err &: Error): Key:",
      "pub func SearchParamsJSON(p: SearchParams): str:",
      "pub func SearchQuery(p: SearchParams): str:",
      "pub func SearchRaw(c: Client, collection: str, p: SearchParams, err &: Error): str:",
      "pub func SendEvent(c: Client, name: str, event_type: str, data: str, err &: Error): bool:",
      "pub func SendEventJSON(c: Client, event: str, err &: Error): bool:",
      "pub func ServerVersion(c: Client, err &: Error): str:",
      "pub func Set(p &: SearchParams, key: str, value: str):",
      "pub func SetCollectionMetadata(c: Client, name: str, metadata: str, err &: Error): str:",
      "pub func SetNearestNode(c &: Client, url: str):",
      "pub func SetSlowRequestLog(c: Client, millis: int, err &: Error): bool:",
      "pub func Stats(c: Client, err &: Error): str:",
      "pub func Status(c: Client, err &: Error): ClusterStatus:",
      "pub func SynonymJSON(s: Synonym): str:",
      "pub func TruncateCollection(c: Client, name: str, err &: Error): i64:",
      "pub func UnionSearch(c: Client, searches: Vector<SearchRequest>, common: SearchParams, err &: Error): SearchResult:",
      "pub func UpdateByFilter(c: Client, collection: str, filter_by: str, partial: str, err &: Error): i64:",
      "pub func UpdateCollection(c: Client, name: str, changes: str, err &: Error): str:",
      "pub func UpdateConfig(c: Client, config: str, err &: Error): bool:",
      "pub func UpdateConversationModel(c: Client, id: str, m: ConversationModel, err &: Error): str:",
      "pub func UpdateDocument(c: Client, collection: str, id: str, partial: str, err &: Error): str:",
      "pub func UpdateDocumentWith(c: Client, collection: str, id: str, partial: str, dirty_values: str, err &: Error): str:",
      "pub func UpdateNLSearchModel(c: Client, id: str, model: str, err &: Error): str:",
      "pub func UpsertAlias(c: Client, name: str, collection: str, err &: Error): Alias:",
      "pub func UpsertAnalyticsRule(c: Client, r: AnalyticsRule, err &: Error): AnalyticsRule:",
      "pub func UpsertAnalyticsRuleJSON(c: Client, name: str, rule: str, err &: Error): str:",
      "pub func UpsertCurationItem(c: Client, set: str, r: CurationRule, err &: Error): CurationRule:",
      "pub func UpsertCurationSet(c: Client, name: str, items: Vector<CurationRule>, err &: Error): CurationSet:",
      "pub func UpsertDocument(c: Client, collection: str, document: str, err &: Error): str:",
      "pub func UpsertDocumentOf<T>(c: Client, collection: str, document: T, err &: Error): str:",
      "pub func UpsertOverride(c: Client, collection: str, r: CurationRule, err &: Error): CurationRule:",
      "pub func UpsertPreset(c: Client, name: str, value: str, err &: Error): Preset:",
      "pub func UpsertSearchPreset(c: Client, name: str, p: SearchParams, err &: Error): Preset:",
      "pub func UpsertStopwords(c: Client, id: str, words: Vector<str>, locale: str, err &: Error): Stopwords:",
      "pub func UpsertSynonym(c: Client, collection: str, s: Synonym, err &: Error): Synonym:",
      "pub func UpsertSynonymItem(c: Client, set: str, item: Synonym, err &: Error): Synonym:",
      "pub func UpsertSynonymSet(c: Client, name: str, items: Vector<Synonym>, err &: Error): SynonymSet:",
      "pub func VectorField(name: str, num_dim: int): Field:",
      "pub func Vote(c: Client, err &: Error): bool:",
      "pub struct Alias:",
      "pub struct AnalyticsRule:",
      "pub struct Client:",
      "pub struct ClusterStatus:",
      "pub struct Collection:",
      "pub struct ConversationModel:",
      "pub struct CurationRule:",
      "pub struct CurationSet:",
      "pub struct Error:",
      "pub struct ExportOptions:",
      "pub struct Facet:",
      "pub struct FacetCount:",
      "pub struct Field:",
      "pub struct Group:",
      "pub struct Hit:",
      "pub struct ImportError:",
      "pub struct ImportResult:",
      "pub struct Key:",
      "pub struct KeySpec:",
      "pub struct Pin:",
      "pub struct Preset:",
      "pub struct Schema:",
      "pub struct SearchParams:",
      "pub struct SearchRequest:",
      "pub struct SearchResult:",
      "pub struct StemWord:",
      "pub struct StemmingDictionary:",
      "pub struct Stopwords:",
      "pub struct Synonym:",
      "pub struct SynonymSet:",
      "pub struct WriteOptions:"
    ],
    "debug": [
      "pub func Assert(cond: bool, msg: str):",
      "pub func AssertNotNil(p: void*, msg: str): Assert(p != null, msg) end",
      "pub func Break():",
      "pub func Depth(): int: ret _frames.len() end",
      "pub func EnableTrace(enabled: bool): _trace_enabled = enabled end",
      "pub func Enter(frame: str):",
      "pub func Exit():",
      "pub func MemStats(): str:",
      "pub func Stack(): str:",
      "pub func StartTimer(name: str):",
      "pub func StopTimer(name: str): f64:",
      "pub func Trace(msg: str):",
      "pub func TraceEnabled(): bool: ret _trace_enabled end"
    ],
    "decimal": [
      "pub enum Rounding:",
      "pub func Abs(d: Dec): Dec: ret _adopt(bigint.Abs(d.unscaled), d.scale) end",
      "pub func Add(a: Dec, b: Dec): Dec:",
      "pub func AddInt(d: Dec, v: i64): Dec:",
      "pub func Allocate(total: Dec, ratios: Vector<i64>): Vector<Dec>:",
      "pub func Clone(d: Dec): Dec: ret d.clone() end",
      "pub func Cmp(a: Dec, b: Dec): int:",
      "pub func Div(a: Dec, b: Dec, scale: int, mode: Rounding): Dec:",
      "pub func DivInt(d: Dec, v: i64, scale: int, mode: Rounding): Dec:",
      "pub func DivRound(a: Dec, b: Dec, scale: int): Dec:",
      "pub func Equals(a: Dec, b: Dec): bool: ret Cmp(a, b) == 0 end",
      "pub func FormatGrouped(d: Dec, scale: int, group: str, point: str): str:",
      "pub func Free(d &: Dec): d.unscaled.free() end",
      "pub func FreeAll(v &: Vector<Dec>):",
      "pub func FromFloat(f: f64, scale: int): Dec:",
      "pub func FromInt(v: i64): Dec: ret _adopt(bigint.FromInt(v), 0) end",
      "pub func FromScaled(unscaled: i64, scale: int): Dec:",
      "pub func Greater(a: Dec, b: Dec): bool: ret Cmp(a, b) > 0 end",
      "pub func IsNegative(d: Dec): bool: ret d.unscaled.sign() < 0 end",
      "pub func IsZero(d: Dec): bool: ret d.unscaled.is_zero() end",
      "pub func Less(a: Dec, b: Dec): bool: ret Cmp(a, b) < 0 end",
      "pub func Max(a: Dec, b: Dec): Dec:",
      "pub func Min(a: Dec, b: Dec): Dec:",
      "pub func Mul(a: Dec, b: Dec): Dec:",
      "pub func MulInt(d: Dec, v: i64): Dec:",
      "pub func Neg(d: Dec): Dec: ret _adopt(bigint.Neg(d.unscaled), d.scale) end",
      "pub func New(unscaled: bigint.Int, scale: int): Dec:",
      "pub func Parse(s: str, ok &: bool): Dec:",
      "pub func ParseOr(s: str): Dec:",
      "pub func Percent(d: Dec, pct: Dec, scale: int): Dec:",
      "pub func Pow(d: Dec, n: int): Dec:",
      "pub func Rescale(d: Dec, scale: int, mode: Rounding): Dec:",
      "pub func Round(d: Dec, scale: int): Dec: ret Rescale(d, scale, Rounding.HalfEven) end",
      "pub func RoundHalfUp(d: Dec, scale: int): Dec: ret Rescale(d, scale, Rounding.HalfUp) end",
      "pub func Scale(d: Dec): int: ret d.scale end",
      "pub func Sign(d: Dec): int: ret d.unscaled.sign() end",
      "pub func Split(total: Dec, n: int): Vector<Dec>:",
      "pub func Sub(a: Dec, b: Dec): Dec:",
      "pub func SubInt(d: Dec, v: i64): Dec:",
      "pub func Sum(items: Vector<Dec>): Dec:",
      "pub func ToFloat(d: Dec): f64:",
      "pub func ToInt(d: Dec, ok &: bool): i64:",
      "pub func ToStr(d: Dec): str:",
      "pub func ToStrFixed(d: Dec, scale: int): str:",
      "pub func Trim(d: Dec): Dec:",
      "pub func Truncate(d: Dec, scale: int): Dec: ret Rescale(d, scale, Rounding.Down) end",
      "pub func Unscaled(d: Dec): bigint.Int: ret d.unscaled.clone() end",
      "pub func Zero(): Dec: ret Dec {} end",
      "pub func clone(): Dec:",
      "pub func free(): this.unscaled.free() end",
      "pub func is_zero(): bool: ret this.unscaled.is_zero() end",
      "pub func sign(): int: ret this.unscaled.sign() end",
      "pub func to_str(): str: ret ToStr(this[0]) end",
      "pub struct Dec:"
    ],
    "dependency": [
      "pub func Bind(c: Container, iface: str, concrete: str):",
      "pub func Build(c: Container): str:",
      "pub func Built(c: Container): Vector<str>:",
      "pub func Close(c: Container):",
      "pub func Count(c: Container): int:",
      "pub func Error(c: Container): str:",
      "pub func Get<T>(c: Container, name: str, out &: T): bool:",
      "pub func New(): Container:",
      "pub func OnClose<T>(c: Container, name: str, _witness: T, f: func (T)):",
      "pub func Provide<T>(c: Container, name: str, needs: str, _witness: T, factory: func (Container) T):",
      "pub func Value<T>(c: Container, name: str, v: T):",
      "pub struct Container:"
    ],
    "dom": [
      "pub func AddClass(el: i64, name: str): salam_js_add_class(el, name) end",
      "pub func Alert(msg: str): salam_js_alert(msg) end",
      "pub func Append(parent: i64, child: i64): salam_js_append(parent, child) end",
      "pub func Body(): i64: ret salam_js_body() end",
      "pub func ById(id: str): i64: ret salam_js_by_id(id) end",
      "pub func Call0(obj: i64, method: str): i64: ret salam_js_call(obj, method) end",
      "pub func Call1(obj: i64, method: str, a: f64): i64: ret salam_js_call(obj, method, a) end",
      "pub func Call2(obj: i64, method: str, a: f64, b: f64): i64: ret salam_js_call(obj, method, a, b) end",
      "pub func Call3(obj: i64, method: str, a: f64, b: f64, c: f64): i64: ret salam_js_call(obj, method, a, b, c) end",
      "pub func Call4(obj: i64, method: str, a: f64, b: f64, c: f64, d: f64): i64: ret salam_js_call(obj, method, a, b, c, d) end",
      "pub func CallS1(obj: i64, method: str, a: str): i64: ret salam_js_call(obj, method, a) end",
      "pub func CallS2(obj: i64, method: str, a: str, b: str): i64: ret salam_js_call(obj, method, a, b) end",
      "pub func ClearInterval(id: i64): salam_js_clear_interval(id) end",
      "pub func ClearTimeout(id: i64): salam_js_clear_timeout(id) end",
      "pub func Confirm(msg: str): bool: ret salam_js_confirm(msg) end",
      "pub func CountOf(listobj: i64): i64: ret salam_js_count_of(listobj) end",
      "pub func Create(tag: str): i64: ret salam_js_create(tag) end",
      "pub func DocHeight(): f64: ret salam_js_doc_height() end",
      "pub func DocWidth(): f64: ret salam_js_doc_width() end",
      "pub func Document(): i64: ret salam_js_document() end",
      "pub func EventKey(ev: i64): str: ret salam_js_event_key(ev) end",
      "pub func EventTarget(ev: i64): i64: ret salam_js_event_target(ev) end",
      "pub func EventX(ev: i64): f64: ret salam_js_event_x(ev) end",
      "pub func EventY(ev: i64): f64: ret salam_js_event_y(ev) end",
      "pub func EveryFrame(handler: func (f64)): salam_js_every_frame(handler) end",
      "pub func Exists(id: str): bool: ret salam_js_id_exists(id) end",
      "pub func GetAttr(el: i64, name: str): str: ret salam_js_get_attr(el, name) end",
      "pub func GetBool(obj: i64, name: str): bool: ret salam_js_get_bool(obj, name) end",
      "pub func GetContext(canvas: i64, kind: str): i64: ret salam_js_get_context(canvas, kind) end",
      "pub func GetNum(obj: i64, name: str): f64: ret salam_js_get_num(obj, name) end",
      "pub func GetProp(obj: i64, name: str): i64: ret salam_js_get_prop(obj, name) end",
      "pub func GetStr(obj: i64, name: str): str: ret salam_js_get_str(obj, name) end",
      "pub func GetStyle(el: i64, prop: str): str: ret salam_js_get_style(el, prop) end",
      "pub func GetText(el: i64): str: ret salam_js_get_text(el) end",
      "pub func GetValue(el: i64): str: ret salam_js_get_value(el) end",
      "pub func Global(name: str): i64: ret salam_js_global(name) end",
      "pub func ImageReady(img: i64): bool: ret salam_js_img_ready(img) end",
      "pub func ItemAt(listobj: i64, idx: i64): i64: ret salam_js_item_at(listobj, idx) end",
      "pub func LoadImage(src: str): i64: ret salam_js_load_image(src) end",
      "pub func Now(): f64: ret salam_js_now() end",
      "pub func OffEvent(el: i64, event: str, handler: func ()): salam_js_off(el, event, handler) end",
      "pub func OnEvent(el: i64, event: str, handler: func ()): salam_js_on(el, event, handler) end",
      "pub func OnEventE(el: i64, event: str, handler: func (i64)): salam_js_on_e(el, event, handler) end",
      "pub func OnReady(handler: func ()): salam_js_on_ready(handler) end",
      "pub func OnResize(handler: func ()): salam_js_on_resize(handler) end",
      "pub func OnWindow(event: str, handler: func ()): salam_js_on_window(event, handler) end",
      "pub func OnWindowE(event: str, handler: func (i64)): salam_js_on_window_e(event, handler) end",
      "pub func PreventDefault(ev: i64): salam_js_prevent_default(ev) end",
      "pub func Prompt(msg: str): str: ret salam_js_prompt(msg) end",
      "pub func Query(sel: str): i64: ret salam_js_query(sel) end",
      "pub func QueryAll(sel: str): i64: ret salam_js_query_all(sel) end",
      "pub func Random(): f64: ret salam_js_random() end",
      "pub func RandomInt(n: i64): i64: ret (salam_js_random() * (n as f64)) as i64 end",
      "pub func Remove(el: i64): salam_js_remove(el) end",
      "pub func RemoveClass(el: i64, name: str): salam_js_remove_class(el, name) end",
      "pub func RequestFrame(handler: func (f64)): salam_js_raf(handler) end",
      "pub func ScrollX(): f64: ret salam_js_scroll_x() end",
      "pub func ScrollY(): f64: ret salam_js_scroll_y() end",
      "pub func SetAttr(el: i64, name: str, value: str): salam_js_set_attr(el, name, value) end",
      "pub func SetBool(obj: i64, name: str, value: bool): salam_js_set_prop(obj, name, value) end",
      "pub func SetHtml(el: i64, html: str): salam_js_set_html(el, html) end",
      "pub func SetInterval(handler: func (), ms: i64): i64: ret salam_js_set_interval(handler, ms) end",
      "pub func SetNum(obj: i64, name: str, value: f64): salam_js_set_prop(obj, name, value) end",
      "pub func SetProp(obj: i64, name: str, value: i64): salam_js_set_prop(obj, name, value) end",
      "pub func SetStr(obj: i64, name: str, value: str): salam_js_set_prop(obj, name, value) end",
      "pub func SetStyle(el: i64, prop: str, value: str): salam_js_set_style(el, prop, value) end",
      "pub func SetText(el: i64, text: str): salam_js_set_text(el, text) end",
      "pub func SetTimeout(handler: func (), ms: i64): i64: ret salam_js_set_timeout(handler, ms) end",
      "pub func SetTitle(title: str): salam_js_set_title(title) end",
      "pub func SetValue(el: i64, value: str): salam_js_set_value(el, value) end",
      "pub func StopPropagation(ev: i64): salam_js_stop_propagation(ev) end",
      "pub func StoreGetInt(key: str): i64: ret salam_js_lsget_i(key) end",
      "pub func StoreGetStr(key: str): str: ret salam_js_lsget_s(key) end",
      "pub func StoreSetInt(key: str, v: i64): salam_js_lsset_i(key, v) end",
      "pub func StoreSetStr(key: str, v: str): salam_js_lsset_s(key, v) end",
      "pub func ToggleClass(el: i64, name: str): salam_js_toggle_class(el, name) end",
      "pub func Tone(freq: f64, ms: f64): salam_js_tone(freq, ms) end",
      "pub func TouchX(ev: i64): f64: ret salam_js_touch_x(ev) end",
      "pub func TouchY(ev: i64): f64: ret salam_js_touch_y(ev) end",
      "pub func WinHeight(): f64: ret salam_js_win_height() end",
      "pub func WinWidth(): f64: ret salam_js_win_width() end",
      "pub func Window(): i64: ret salam_js_window() end"
    ],
    "encoding": [
      "pub func Base64Decode(s: str): str throws:",
      "pub func Base64DecodeBytes(s: str, out: void*, cap: int): int throws:",
      "pub func Base64Encode(data: str): str:",
      "pub func Base64EncodeBytes(data: void*, n: int): str:",
      "pub func HexDecode(s: str): str throws:",
      "pub func HexEncode(data: str): str:",
      "pub func URLDecode(s: str): str throws:",
      "pub func URLEncode(s: str): str:",
      "pub inline pure func HexVal(c: str): int: ret _hexval(char_code(c)) end"
    ],
    "encoding.binary": [
      "pub func CStringAt(v: View, off: int): str:",
      "pub func FixedStringAt(v: View, off: int, width: int): str:",
      "pub func GetU16BE(v: View, off: int): int: ret _vget(v, off, 2, true) as int end",
      "pub func GetU16LE(v: View, off: int): int: ret _vget(v, off, 2, false) as int end",
      "pub func GetU32BE(v: View, off: int): i64: ret _vget(v, off, 4, true) end",
      "pub func GetU32LE(v: View, off: int): i64: ret _vget(v, off, 4, false) end",
      "pub func GetU64BE(v: View, off: int): i64: ret _vget(v, off, 8, true) end",
      "pub func GetU64LE(v: View, off: int): i64: ret _vget(v, off, 8, false) end",
      "pub func GetU8(v: View, off: int): int: ret _vget(v, off, 1, false) as int end",
      "pub func Has(v: View, off: int, n: int): bool:",
      "pub func NewView(p: void*, n: int): View:",
      "pub func PutU16BE(v: View, off: int, x: i64): bool: ret _vput(v, off, 2, true, x) end",
      "pub func PutU16LE(v: View, off: int, x: i64): bool: ret _vput(v, off, 2, false, x) end",
      "pub func PutU32BE(v: View, off: int, x: i64): bool: ret _vput(v, off, 4, true, x) end",
      "pub func PutU32LE(v: View, off: int, x: i64): bool: ret _vput(v, off, 4, false, x) end",
      "pub func PutU64BE(v: View, off: int, x: i64): bool: ret _vput(v, off, 8, true, x) end",
      "pub func PutU64LE(v: View, off: int, x: i64): bool: ret _vput(v, off, 8, false, x) end",
      "pub func PutU8(v: View, off: int, x: i64): bool: ret _vput(v, off, 1, false, x) end",
      "pub func ReadF32(r &: compress.ByteReader, big_endian: bool): f64 throws:",
      "pub func ReadF64(r &: compress.ByteReader, big_endian: bool): f64 throws:",
      "pub func ReadI16BE(r &: compress.ByteReader): int throws:",
      "pub func ReadI16LE(r &: compress.ByteReader): int throws:",
      "pub func ReadI32BE(r &: compress.ByteReader): int throws: ret try ReadU32BE(r) end",
      "pub func ReadI32LE(r &: compress.ByteReader): int throws: ret try ReadU32LE(r) end",
      "pub func ReadI64BE(r &: compress.ByteReader): i64 throws: ret try ReadU64BE(r) end",
      "pub func ReadI64LE(r &: compress.ByteReader): i64 throws: ret try ReadU64LE(r) end",
      "pub func ReadU16BE(r &: compress.ByteReader): int throws:",
      "pub func ReadU16LE(r &: compress.ByteReader): int throws:",
      "pub func ReadU32BE(r &: compress.ByteReader): int throws:",
      "pub func ReadU32LE(r &: compress.ByteReader): int throws:",
      "pub func ReadU64BE(r &: compress.ByteReader): i64 throws:",
      "pub func ReadU64LE(r &: compress.ByteReader): i64 throws:",
      "pub func ReadU8(r &: compress.ByteReader): int throws:",
      "pub func ViewOf(b: compress.ByteBuf): View:",
      "pub func WriteF32(b &: compress.ByteBuf, v: f64, big_endian: bool):",
      "pub func WriteF64(b &: compress.ByteBuf, v: f64, big_endian: bool):",
      "pub func WriteI16BE(b &: compress.ByteBuf, v: int): WriteU16BE(b, v) end",
      "pub func WriteI16LE(b &: compress.ByteBuf, v: int): WriteU16LE(b, v) end",
      "pub func WriteI32BE(b &: compress.ByteBuf, v: int): WriteU32BE(b, v) end",
      "pub func WriteI32LE(b &: compress.ByteBuf, v: int): WriteU32LE(b, v) end",
      "pub func WriteI64BE(b &: compress.ByteBuf, v: i64): WriteU64BE(b, v) end",
      "pub func WriteI64LE(b &: compress.ByteBuf, v: i64): WriteU64LE(b, v) end",
      "pub func WriteU16BE(b &: compress.ByteBuf, v: int):",
      "pub func WriteU16LE(b &: compress.ByteBuf, v: int):",
      "pub func WriteU32BE(b &: compress.ByteBuf, v: int): compress.BufPushU32(b, v) end",
      "pub func WriteU32LE(b &: compress.ByteBuf, v: int):",
      "pub func WriteU64BE(b &: compress.ByteBuf, v: i64):",
      "pub func WriteU64LE(b &: compress.ByteBuf, v: i64):",
      "pub func WriteU8(b &: compress.ByteBuf, v: int): compress.BufPush(b, v & 255) end",
      "pub struct BinaryOptions:",
      "pub struct View:"
    ],
    "encoding.csv": [
      "pub func FreeTable(t &: CSVTable):",
      "pub func FromValue(v: value.Value): str:",
      "pub func FromValueWith(v: value.Value, opts: CSVOptions): str:",
      "pub func ReadAll(text: str): CSVTable throws:",
      "pub func ReadAllWith(text: str, opts: CSVOptions): CSVTable throws:",
      "pub func ReadLine(line: str): Vector<str> throws:",
      "pub func ReadLineWith(line: str, opts: CSVOptions): Vector<str> throws:",
      "pub func ToValue(text: str): value.Value throws:",
      "pub func ToValueWith(text: str, opts: CSVOptions): value.Value throws:",
      "pub func WriteAll(table: CSVTable): str:",
      "pub func WriteAllWith(table: CSVTable, opts: CSVOptions): str:",
      "pub func WriteLine(fields: Vector<str>): str:",
      "pub func WriteLineWith(fields: Vector<str>, opts: CSVOptions): str:",
      "pub struct CSVOptions:",
      "pub struct CSVRow:",
      "pub struct CSVTable:"
    ],
    "encoding.envfile": [
      "pub func Expand(raw: str, d &: Doc, base &: Doc): str:",
      "pub func ExpandDoc(d &: Doc, base &: Doc): Doc:",
      "pub func Format(d &: Doc): str:",
      "pub func FormatExport(d &: Doc): str:",
      "pub func Free(d &: Doc):",
      "pub func Get(d &: Doc, key: str): str: ret d.m.get(key) end",
      "pub func GetOr(d &: Doc, key: str, def: str): str: ret d.m.get_or(key, def) end",
      "pub func Has(d &: Doc, key: str): bool: ret d.m.has(key) end",
      "pub func KeyAt(d &: Doc, i: int): str: ret d.m.key_at(i) end",
      "pub func Keys(d &: Doc): Vector<str>:",
      "pub func Len(d &: Doc): int: ret d.m.len() end",
      "pub func MergeInto(dst &: Doc, src &: Doc):",
      "pub func New(): Doc:",
      "pub func Parse(text: str): Doc:",
      "pub func ParseRaw(text: str): Doc:",
      "pub func ParseScalar(raw: str): str:",
      "pub func ParseScalarEx(raw: str, semi: bool): str:",
      "pub func ParseStrict(text: str): Doc throws:",
      "pub func Quote(v: str): str:",
      "pub func RefNames(d &: Doc): Vector<str>:",
      "pub func RefNamesIn(raw: str): Vector<str>:",
      "pub func Remove(d &: Doc, key: str): bool:",
      "pub func Set(d &: Doc, key: str, val: str):",
      "pub func Valid(text: str): bool:",
      "pub func ValueAt(d &: Doc, i: int): str: ret d.m.val_at(i) end",
      "pub struct Doc:"
    ],
    "encoding.html": [
      "pub func Escape(s: str): str:",
      "pub func EscapeText(s: str): str:",
      "pub func Unescape(s: str): str:"
    ],
    "encoding.json": [
      "pub func Array(items: Vector<str>): str:",
      "pub func Close():",
      "pub func Decode(): value.Value throws:",
      "pub func Decode(text: str): value.Value throws:",
      "pub func Encode(v: value.Value): bool:",
      "pub func Encode(v: value.Value, opts: JSONOptions): str:",
      "pub func EncodeDefault(v: value.Value): str:",
      "pub func Escape(s: str): str:",
      "pub func Get(text: str, key: str): str:",
      "pub func GetFloat(text: str, key: str): f64:",
      "pub func GetInt(text: str, key: str): int:",
      "pub func GetPath(text: str, path: str): str:",
      "pub func Has(text: str, key: str): bool:",
      "pub func Indent(text: str): str:",
      "pub func Indent4(text: str): str:",
      "pub func IndentTabs(text: str): str:",
      "pub func IndentWith(text: str, unit: str): str:",
      "pub func Items(text: str): Vector<str>:",
      "pub func Keys(text: str): Vector<str>:",
      "pub func Marshal<T>(v: T): str:",
      "pub func MarshalIndent<T>(v: T, unit: str): str:",
      "pub func Member(key: str, value: str): str:",
      "pub func MemberBool(key: str, value: bool): str:",
      "pub func MemberFloat(key: str, value: f64): str:",
      "pub func MemberInt(key: str, value: i64): str:",
      "pub func MemberRaw(key: str, raw: str): str:",
      "pub func Minify(text: str): str:",
      "pub func More(): bool:",
      "pub func NewBufDecoder(s: str): JSONDecoder:",
      "pub func NewBufEncoder(): JSONEncoder:",
      "pub func NewBufEncoderIndent(unit: str): JSONEncoder:",
      "pub func NewDecoder(f: File*): JSONDecoder:",
      "pub func NewEncoder(f: File*): JSONEncoder:",
      "pub func NewEncoderIndent(f: File*, unit: str): JSONEncoder:",
      "pub func Object(members: Vector<str>): str:",
      "pub func Schema<T>(v: T): str:",
      "pub func SchemaEnvelope<T>(v: T): str:",
      "pub func SchemaMerge(envelope: str): str:",
      "pub func Str(value: str): str:",
      "pub func String(): str: ret str.BufStr(this.buf) end",
      "pub func Unmarshal<T>(text: str, out &: T) throws:",
      "pub func UnmarshalLenient<T>(text: str, out &: T) throws:",
      "pub func Unquote(raw: str): str:",
      "pub pure func Valid(text: str): bool:",
      "pub struct JSONDecoder:",
      "pub struct JSONEncoder:",
      "pub struct JSONOptions:"
    ],
    "encoding.msgpack": [
      "pub func Marshal(v: value.Value): compress.ByteBuf:",
      "pub func MarshalWith(v: value.Value, opts: MsgpackOptions): compress.ByteBuf:",
      "pub func Unmarshal(b: compress.ByteBuf): value.Value throws:",
      "pub func UnmarshalBytes(p: void*, n: int): value.Value throws:",
      "pub struct MsgpackOptions:"
    ],
    "encoding.protobuf": [
      "pub const FK_BOOL := 13",
      "pub const FK_BYTES := 15",
      "pub const FK_DOUBLE := 1",
      "pub const FK_ENUM := 17",
      "pub const FK_FIXED32 := 9",
      "pub const FK_FIXED64 := 10",
      "pub const FK_FLOAT := 2",
      "pub const FK_INT32 := 3",
      "pub const FK_INT64 := 4",
      "pub const FK_MAP := 18",
      "pub const FK_MESSAGE := 16",
      "pub const FK_SFIXED32 := 11",
      "pub const FK_SFIXED64 := 12",
      "pub const FK_SINT32 := 7",
      "pub const FK_SINT64 := 8",
      "pub const FK_STRING := 14",
      "pub const FK_UINT32 := 5",
      "pub const FK_UINT64 := 6",
      "pub const PTK_COMMA := 15",
      "pub const PTK_DOT := 16",
      "pub const PTK_EOF := 0",
      "pub const PTK_EQ := 14",
      "pub const PTK_ERROR := 18",
      "pub const PTK_FLOAT := 3",
      "pub const PTK_IDENT := 1",
      "pub const PTK_INT := 2",
      "pub const PTK_LANGLE := 12",
      "pub const PTK_LBRACE := 6",
      "pub const PTK_LBRACKET := 10",
      "pub const PTK_LPAREN := 8",
      "pub const PTK_MINUS := 17",
      "pub const PTK_RANGLE := 13",
      "pub const PTK_RBRACE := 7",
      "pub const PTK_RBRACKET := 11",
      "pub const PTK_RPAREN := 9",
      "pub const PTK_SEMI := 5",
      "pub const PTK_STRING := 4",
      "pub const WT_END_GROUP := 4",
      "pub const WT_FIXED32 := 5",
      "pub const WT_FIXED64 := 1",
      "pub const WT_LEN := 2",
      "pub const WT_START_GROUP := 3",
      "pub const WT_VARINT := 0",
      "pub func FieldKindName(k: int): str:",
      "pub func GenerateServices(f: PFile): str:",
      "pub func GenerateSingle(protoSource: str): str throws:",
      "pub func GenerateWithServices(protoSource: str): str throws:",
      "pub func MakeTag(fieldNum: int, wireType: int): u64:",
      "pub func ParseFile(source: str): PFile throws:",
      "pub func ReadDouble(r &: compress.ByteReader): f64 throws:",
      "pub func ReadFixed32(r &: compress.ByteReader): u32 throws:",
      "pub func ReadFixed64(r &: compress.ByteReader): u64 throws:",
      "pub func ReadFloat(r &: compress.ByteReader): f64 throws:",
      "pub func ReadLenPrefixedBuf(r &: compress.ByteReader): compress.ByteBuf throws:",
      "pub func ReadLenPrefixedStr(r &: compress.ByteReader): str throws:",
      "pub func ReadTag(r &: compress.ByteReader, fieldNum &: int, wireType &: int) throws:",
      "pub func ReadVarint(r &: compress.ByteReader): u64 throws:",
      "pub func ScalarKindFromName(name: str): int:",
      "pub func ServiceCount(f: PFile): int:",
      "pub func ServiceMethodCount(f: PFile, i: int): int:",
      "pub func ServiceMethodSignature(f: PFile, si: int, mi: int): str:",
      "pub func ServiceNameAt(f: PFile, i: int): str:",
      "pub func ServiceSummary(protoSource: str): str throws:",
      "pub func SkipField(r &: compress.ByteReader, wireType: int) throws:",
      "pub func SkipFieldFor(r &: compress.ByteReader, fieldNum: int, wireType: int) throws:",
      "pub func Tokenize(source: str): PTokenStream throws:",
      "pub func WriteDouble(buf &: compress.ByteBuf, v: f64): binary.WriteF64(buf, v, false) end",
      "pub func WriteEndGroup(buf &: compress.ByteBuf, fieldNum: int):",
      "pub func WriteFixed32(buf &: compress.ByteBuf, v: u32): binary.WriteU32LE(buf, v as int) end",
      "pub func WriteFixed64(buf &: compress.ByteBuf, v: u64): binary.WriteU64LE(buf, v as i64) end",
      "pub func WriteFloat(buf &: compress.ByteBuf, v: f64): binary.WriteF32(buf, v, false) end",
      "pub func WriteLenPrefixedBytes(buf &: compress.ByteBuf, p: void*, n: int):",
      "pub func WriteLenPrefixedStr(buf &: compress.ByteBuf, s: str):",
      "pub func WriteStartGroup(buf &: compress.ByteBuf, fieldNum: int):",
      "pub func WriteTag(buf &: compress.ByteBuf, fieldNum: int, wireType: int):",
      "pub func WriteVarint(buf &: compress.ByteBuf, n: u64):",
      "pub func ZigZagDecode32(n: u32): i32:",
      "pub func ZigZagDecode64(n: u64): i64:",
      "pub func ZigZagEncode32(n: i32): u32: ret ((n << 1) ^ (n >> 31)) as u32 end",
      "pub func ZigZagEncode64(n: i64): u64: ret ((n << 1) ^ (n >> 63)) as u64 end",
      "pub struct PEnum:",
      "pub struct PEnumValue:",
      "pub struct PField:",
      "pub struct PFile:",
      "pub struct PMessage:",
      "pub struct PMethod:",
      "pub struct POneof:",
      "pub struct PService:",
      "pub struct PToken:",
      "pub struct PTokenStream:"
    ],
    "encoding.query": [
      "pub func Add(values &: QueryMap, key: str, val: str):",
      "pub func Decode(qs: str): QueryMap throws:",
      "pub func DecodeWith(qs: str, opts: QueryOptions): QueryMap throws:",
      "pub func Encode(values: QueryMap): str:",
      "pub func EncodeWith(values: QueryMap, opts: QueryOptions): str:",
      "pub func Get(qs: str, key: str): str:",
      "pub func GetAll(qs: str, key: str): Vector<str>:",
      "pub func Has(qs: str, key: str): bool:",
      "pub func Keys(values: QueryMap): Vector<str>:",
      "pub func NewQueryMap(): QueryMap: ret QueryMap {} end",
      "pub func Remove(values &: QueryMap, key: str): bool:",
      "pub func Retain(values &: QueryMap, keep: Vector<str>):",
      "pub func Set(values &: QueryMap, key: str, val: str):",
      "pub func Size(m: QueryMap): int: ret m.data.size() end",
      "pub struct QueryMap:",
      "pub struct QueryOptions:",
      "pub struct QueryValues:"
    ],
    "encoding.serde": [
      "pub const FormatCSV := 5",
      "pub const FormatJSON := 1",
      "pub const FormatTOML := 3",
      "pub const FormatUnknown := 0",
      "pub const FormatXML := 4",
      "pub const FormatYAML := 2",
      "pub func Detect(text: str): str:",
      "pub func DetectFormat(text: str): int:",
      "pub func Transcode(data: str, from: str, dest: str): str:",
      "pub func TranscodeStrict(data: str, from: str, dest: str): str throws:"
    ],
    "encoding.toml": [
      "pub func Decode(text: str): value.Value throws:",
      "pub func Encode(v: value.Value): str throws:",
      "pub func Valid(text: str): bool:"
    ],
    "encoding.url": [
      "pub func ClearQuery(u &: URL):",
      "pub func DecodedPath(u: URL): str throws:",
      "pub func DecodedUserinfo(u: URL): str throws:",
      "pub func Domain(u: URL): str:",
      "pub func EncodePathSegment(s: str): str:",
      "pub func HostPort(u: URL): str:",
      "pub func Hostname(u: URL): str:",
      "pub func IsIP(u: URL): bool:",
      "pub func Join(base: URL, ref: str): URL throws:",
      "pub func KeepParams(u &: URL, keep: Vector<str>) throws:",
      "pub func Labels(u: URL): Vector<str>:",
      "pub func ParamNames(u: URL): Vector<str> throws:",
      "pub func Parse(raw: str): URL throws:",
      "pub func PublicSuffix(u: URL): str:",
      "pub func Query(u: URL): query.QueryMap throws:",
      "pub func RemoveParam(u &: URL, key: str): bool throws:",
      "pub func SetParam(u &: URL, key: str, val: str) throws:",
      "pub func SetQuery(u &: URL, q: query.QueryMap):",
      "pub func String(u: URL): str:",
      "pub func Subdomain(u: URL): str:",
      "pub struct URL:"
    ],
    "encoding.value": [
      "pub const KindArray := 5",
      "pub const KindBool := 1",
      "pub const KindBytes := 7",
      "pub const KindExt := 8",
      "pub const KindFloat := 3",
      "pub const KindInt := 2",
      "pub const KindNull := 0",
      "pub const KindObject := 6",
      "pub const KindString := 4",
      "pub func ArrayGet(v: Value, i: int): Value: ret v.arr.get(i) end",
      "pub func ArrayLen(v: Value): int: ret v.arr.len() end",
      "pub func ArrayPush(v &: Value, item: Value): v.arr.push(item) end",
      "pub func ArraySet(v &: Value, i: int, item: Value): v.arr.set(i, item) end",
      "pub func AsBool(v: Value): bool: ret v.b end",
      "pub func AsFloat(v: Value): f64:",
      "pub func AsInt(v: Value): i64:",
      "pub func AsString(v: Value): str: ret v.s end",
      "pub func BytesGet(v: Value, i: int): int:",
      "pub func BytesLen(v: Value): int: ret v.bin.len() end",
      "pub func BytesToBuf(v: Value): compress.ByteBuf:",
      "pub func BytesToStr(v: Value): str:",
      "pub func Equal(a: Value, b: Value): bool:",
      "pub func ExtDataGet(v: Value, i: int): int:",
      "pub func ExtDataLen(v: Value): int: ret v.bin.len() end",
      "pub func ExtDataToBuf(v: Value): compress.ByteBuf:",
      "pub func ExtDataToStr(v: Value): str:",
      "pub func ExtType(v: Value): int: ret v.i as int end",
      "pub func IsArray(v: Value): bool: ret v.kind == KindArray end",
      "pub func IsBool(v: Value): bool: ret v.kind == KindBool end",
      "pub func IsBytes(v: Value): bool: ret v.kind == KindBytes end",
      "pub func IsExt(v: Value): bool: ret v.kind == KindExt end",
      "pub func IsFloat(v: Value): bool: ret v.kind == KindFloat end",
      "pub func IsInt(v: Value): bool: ret v.kind == KindInt end",
      "pub func IsNull(v: Value): bool: ret v.kind == KindNull end",
      "pub func IsNumber(v: Value): bool: ret v.kind == KindInt or v.kind == KindFloat end",
      "pub func IsObject(v: Value): bool: ret v.kind == KindObject end",
      "pub func IsString(v: Value): bool: ret v.kind == KindString end",
      "pub func NewValueArray(): Value:",
      "pub func NewValueObject(): Value:",
      "pub func ObjectDelete(v &: Value, key: str): bool:",
      "pub func ObjectGet(v: Value, key: str): Value:",
      "pub func ObjectGetOk(v: Value, key: str, ok &: bool): Value:",
      "pub func ObjectHas(v: Value, key: str): bool: ret v.obj.has(key) end",
      "pub func ObjectKeys(v: Value): Vector<str>:",
      "pub func ObjectLen(v: Value): int: ret v.obj.size() end",
      "pub func ObjectSet(v &: Value, key: str, item: Value):",
      "pub func ToDebugString(v: Value): str:",
      "pub func ValueArray(items: Vector<Value>): Value:",
      "pub func ValueBinary(p: void*, n: int): Value:",
      "pub func ValueBinaryStr(s: str): Value:",
      "pub func ValueBool(b: bool): Value: ret Value { kind = KindBool, b = b } end",
      "pub func ValueClone(v: Value): Value:",
      "pub func ValueExt(typeId: int, p: void*, n: int): Value:",
      "pub func ValueExtStr(typeId: int, s: str): Value:",
      "pub func ValueFloat(n: f64): Value: ret Value { kind = KindFloat, n = n } end",
      "pub func ValueFree(v &: Value):",
      "pub func ValueInt(i: i64): Value: ret Value { kind = KindInt, i = i } end",
      "pub func ValueNull(): Value: ret Value { kind = KindNull } end",
      "pub func ValueObject(fields: HashMap<str, Value>): Value:",
      "pub func ValueString(s: str): Value: ret Value { kind = KindString, s = s } end",
      "pub func at(index: int): Value throws:",
      "pub func bool(): bool throws:",
      "pub func field(key: str): Value throws:",
      "pub func float(): f64 throws:",
      "pub func int(): i64 throws:",
      "pub func str(): str throws:",
      "pub struct Value:"
    ],
    "encoding.xml": [
      "pub const AttrCData := 0",
      "pub const AttrEntities := 5",
      "pub const AttrEntity := 4",
      "pub const AttrEnumeration := 8",
      "pub const AttrId := 1",
      "pub const AttrIdRef := 2",
      "pub const AttrIdRefs := 3",
      "pub const AttrNmToken := 6",
      "pub const AttrNmTokens := 7",
      "pub const AttrNotation := 9",
      "pub const ContentAny := 1",
      "pub const ContentChildren := 3",
      "pub const ContentEmpty := 0",
      "pub const ContentMixed := 2",
      "pub const DefaultFixed := 2",
      "pub const DefaultImplied := 1",
      "pub const DefaultRequired := 0",
      "pub const DefaultValue := 3",
      "pub const EntityDepthLimit := 32",
      "pub const EntityExpansionLimit := 262144",
      "pub const KindCData := 3",
      "pub const KindComment := 4",
      "pub const KindDoctype := 6",
      "pub const KindDocument := 0",
      "pub const KindElement := 1",
      "pub const KindProcessingInstruction := 5",
      "pub const KindText := 2",
      "pub const ValueBoolean := 3",
      "pub const ValueNodeSet := 0",
      "pub const ValueNumber := 2",
      "pub const ValueString := 1",
      "pub const XMLNSNamespaceURI := \"http://www.w3.org/2000/xmlns/\"",
      "pub const XMLNamespaceURI := \"http://www.w3.org/XML/1998/namespace\"",
      "pub const XMLTokCData := 5",
      "pub const XMLTokComment := 4",
      "pub const XMLTokEOF := 6",
      "pub const XMLTokEndElement := 2",
      "pub const XMLTokError := 7",
      "pub const XMLTokStartElement := 1",
      "pub const XMLTokText := 3",
      "pub func Ancestors(d: Document, id: int): NodeList:",
      "pub func Append(d &: Document, parent: int, child: int):",
      "pub func AppendChild(node &: XMLNode, child: XMLNode):",
      "pub func ApplyDefaults(d &: Document, dtd: DTD): int:",
      "pub func Attr(node: XMLNode, name: str): str:",
      "pub func AttributeAt(d: Document, id: int, index: int): Attribute:",
      "pub func AttributeCount(d: Document, id: int): int: ret node_at(d, id).attrs.len() end",
      "pub func AttributeRef(aid: int): int: ret attr_ref(aid) end",
      "pub func AttributeValue(d: Document, id: int, name: str): str:",
      "pub func AttributeValueNS(d: Document, id: int, uri: str, local: str): str:",
      "pub func Canonical(d: Document): str:",
      "pub func CanonicalNode(d: Document, id: int): str:",
      "pub func CheckNamespaces(d: Document): Report:",
      "pub func Child(node: XMLNode, tag: str): XMLNode:",
      "pub func ChildAt(d: Document, id: int, index: int): int:",
      "pub func ChildCount(d: Document, id: int): int: ret node_at(d, id).children.len() end",
      "pub func ChildNodes(d: Document, id: int): NodeList:",
      "pub func Children(node: XMLNode, tag: str): XMLNodeList:",
      "pub func Column(d: Document, id: int): int: ret node_at(d, id).col end",
      "pub func CreateCData(d &: Document, text: str): int:",
      "pub func CreateComment(d &: Document, text: str): int:",
      "pub func CreateElement(d &: Document, name: str): int:",
      "pub func CreateProcessingInstruction(d &: Document, target: str, data: str): int:",
      "pub func CreateText(d &: Document, text: str): int:",
      "pub func DeclaredAttributeCount(dtd: DTD): int: ret dtd.attributes.len() end",
      "pub func DeclaredElementCount(dtd: DTD): int: ret dtd.elements.len() end",
      "pub func Decode(text: str): XMLNode throws:",
      "pub func DefaultOptions(): ParseOptions:",
      "pub func DefaultWriteOptions(): WriteOptions:",
      "pub func Depth(d: Document, id: int): int:",
      "pub func Descendants(d: Document, id: int): NodeList:",
      "pub func DirectText(d: Document, id: int): str:",
      "pub func DocumentNode(d: Document): int:",
      "pub func Elements(d: Document, id: int): NodeList:",
      "pub func ElementsNamed(d: Document, id: int, name: str): NodeList:",
      "pub func Encode(node: XMLNode): str:",
      "pub func EncodeDeclaration(node: XMLNode): str:",
      "pub func EncodeIndent(node: XMLNode, unit: str): str:",
      "pub func EntityCount(d: Document): int: ret d.entity_names.len() end",
      "pub func EntityValue(d: Document, name: str): str:",
      "pub func EscapeAttr(s: str): str: ret _escape_attr(s) end",
      "pub func EscapeText(s: str): str: ret _escape_text(s) end",
      "pub func Evaluate(d: Document, context: int, expression: str): XPathValue throws:",
      "pub func EvaluateWith(d: Document, context: int, expression: str, variables: XPathVariables): XPathValue throws:",
      "pub func Exists(d: Document, id: int): bool:",
      "pub func FirstElementNamed(d: Document, id: int, name: str): int:",
      "pub func Found(n: XMLNode): bool: ret n.tag != \"\" end",
      "pub func Free(d &: Document):",
      "pub func FreeDTD(dtd &: DTD):",
      "pub func FreeList(list &: NodeList):",
      "pub func FreeReport(r &: Report):",
      "pub func FreeValue(v &: XPathValue):",
      "pub func FromValue(v: value.Value, rootTag: str): XMLNode:",
      "pub func HasAttr(node: XMLNode, name: str): bool: ret node.attrs.has(name) end",
      "pub func HasAttribute(d: Document, id: int, name: str): bool:",
      "pub func InsertBefore(d &: Document, parent: int, child: int, before: int):",
      "pub func IsAttributeRef(id: int): bool: ret is_attr_ref(id) end",
      "pub func IsElement(d: Document, id: int): bool: ret node_at(d, id).kind == KindElement end",
      "pub func Kind(d: Document, id: int): int: ret node_at(d, id).kind end",
      "pub func Line(d: Document, id: int): int: ret node_at(d, id).line end",
      "pub func LocalName(d: Document, id: int): str: ret node_at(d, id).local end",
      "pub func Name(d: Document, id: int): str: ret node_at(d, id).name end",
      "pub func NamespaceURI(d: Document, id: int): str: ret node_at(d, id).uri end",
      "pub func NewDocument(): Document:",
      "pub func NewXMLNode(tag: str): XMLNode:",
      "pub func NewXMLTokenizer(text: str): XMLTokenizer:",
      "pub func NextSibling(d: Document, id: int): int:",
      "pub func NextToken(tz &: XMLTokenizer): XMLToken:",
      "pub func NodeCount(d: Document): int: ret d.nodes.len() end",
      "pub func NodeName(d: Document, id: int): str:",
      "pub func Parent(d: Document, id: int): int: ret node_at(d, id).parent end",
      "pub func Parse(text: str): Document throws:",
      "pub func ParseDTD(text: str): DTD:",
      "pub func ParseWith(text: str, opts: ParseOptions): Document throws:",
      "pub func Path(d: Document, id: int): str:",
      "pub func Prefix(d: Document, id: int): str: ret node_at(d, id).prefix end",
      "pub func PreviousSibling(d: Document, id: int): int:",
      "pub func ReferencedAttribute(d: Document, id: int): Attribute:",
      "pub func RemoveAttribute(d &: Document, id: int, name: str): bool:",
      "pub func RemoveChild(d &: Document, parent: int, child: int): bool:",
      "pub func ReportText(r: Report): str:",
      "pub func Root(d: Document): int:",
      "pub func Select(d: Document, context: int, expression: str): NodeList throws:",
      "pub func SelectBoolean(d: Document, context: int, expression: str): bool throws:",
      "pub func SelectBooleanWith(d: Document, context: int, expression: str, variables: XPathVariables): bool throws:",
      "pub func SelectFirst(d: Document, context: int, expression: str): int throws:",
      "pub func SelectFirstWith(d: Document, context: int, expression: str, variables: XPathVariables): int throws:",
      "pub func SelectNumber(d: Document, context: int, expression: str): f64 throws:",
      "pub func SelectNumberWith(d: Document, context: int, expression: str, variables: XPathVariables): f64 throws:",
      "pub func SelectString(d: Document, context: int, expression: str): str throws:",
      "pub func SelectStringWith(d: Document, context: int, expression: str, variables: XPathVariables): str throws:",
      "pub func SelectWith(d: Document, context: int, expression: str, variables: XPathVariables): NodeList throws:",
      "pub func SetAttr(node &: XMLNode, name: str, value: str):",
      "pub func SetAttribute(d &: Document, id: int, name: str, value: str):",
      "pub func SetText(d &: Document, id: int, text: str):",
      "pub func StringValue(d: Document, id: int): str:",
      "pub func Text(d: Document, id: int): str:",
      "pub func ToValue(node: XMLNode): value.Value:",
      "pub func UnescapeEntities(s: str): str: ret _unescape(s) end",
      "pub func Valid(text: str): bool:",
      "pub func Validate(d: Document, dtd: DTD): Report:",
      "pub func ValidateInternalSubset(d: Document): Report:",
      "pub func Value(d: Document, id: int): str: ret node_at(d, id).value end",
      "pub func WellFormed(text: str): bool:",
      "pub func Write(d: Document): str:",
      "pub func WriteDocument(d: Document): str:",
      "pub func WriteIndent(d: Document, unit: str): str:",
      "pub func WriteNode(d: Document, id: int): str:",
      "pub func WriteNodeIndent(d: Document, id: int, unit: str): str:",
      "pub func WriteWith(d: Document, opts: WriteOptions): str:",
      "pub func free():",
      "pub func index_of(name: str): int:",
      "pub func set(name: str, value: XPathValue):",
      "pub func set_boolean(name: str, flag: bool):",
      "pub func set_nodes(name: str, nodes: NodeList):",
      "pub func set_number(name: str, number: f64):",
      "pub func set_string(name: str, text: str):",
      "pub struct AttrDecl:",
      "pub struct Attribute:",
      "pub struct DTD:",
      "pub struct Document:",
      "pub struct ElementDecl:",
      "pub struct Node:",
      "pub struct NodeList:",
      "pub struct ParseOptions:",
      "pub struct Report:",
      "pub struct Violation:",
      "pub struct WriteOptions:",
      "pub struct XMLNode:",
      "pub struct XMLNodeList:",
      "pub struct XMLToken:",
      "pub struct XMLTokenizer:",
      "pub struct XPathValue:",
      "pub struct XPathVariables:"
    ],
    "encoding.yaml": [
      "pub func Array(items: Vector<str>): str:",
      "pub func Decode(text: str): value.Value throws:",
      "pub func Dump(text: str): str:",
      "pub func DumpTabs(text: str): str:",
      "pub func DumpWith(text: str, unit: str): str:",
      "pub func Encode(v: value.Value): str:",
      "pub func Escape(s: str): str:",
      "pub func Get(text: str, path: str): str:",
      "pub func GetBool(text: str, path: str): bool:",
      "pub func GetFloat(text: str, path: str): f64:",
      "pub func GetInt(text: str, path: str): int:",
      "pub func Has(text: str, path: str): bool:",
      "pub func HasKeys(text: str, required: Vector<str>): bool:",
      "pub func Keys(text: str, path: str): Vector<str>:",
      "pub func Len(text: str, path: str): int:",
      "pub func Member(key: str, value: str): str:",
      "pub func MemberBool(key: str, value: bool): str:",
      "pub func MemberFloat(key: str, value: f64): str:",
      "pub func MemberInt(key: str, value: i64): str:",
      "pub func MemberRaw(key: str, raw: str): str:",
      "pub func Object(members: Vector<str>): str:",
      "pub func Parse(text: str): str:",
      "pub func SplitDocuments(text: str): Vector<str>:",
      "pub func Str(value: str): str:",
      "pub func ToJSON(text: str): str:",
      "pub func TypeOf(text: str, path: str): str:",
      "pub func Valid(text: str): bool:"
    ],
    "env": [
      "pub func Expand(text: str): str:",
      "pub func Get(name: str): str:",
      "pub func GetBool(name: str, def: bool): bool:",
      "pub func GetFloat(name: str, def: f64): f64:",
      "pub func GetInt(name: str, def: i64): i64:",
      "pub func GetMasked(name: str): str: ret Mask(Get(name)) end",
      "pub func GetOr(name: str, def: str): str:",
      "pub func Has(name: str): bool: ret getenv(name) != null end",
      "pub func IsDevelopment(): bool: ret Profile() == \"development\" or Profile() == \"dev\" end",
      "pub func IsProduction(): bool: ret Profile() == \"production\" or Profile() == \"prod\" end",
      "pub func IsStaging(): bool: ret Profile() == \"staging\" end",
      "pub func IsTest(): bool: ret Profile() == \"test\" or Profile() == \"testing\" end",
      "pub func Load(path: str): int:",
      "pub func LoadDotEnv(path: str): int:",
      "pub func LoadProfile(dir: str): int:",
      "pub func LoadText(text: str): int:",
      "pub func Mask(value: str): str:",
      "pub func Overload(path: str): int:",
      "pub func Profile(): str:",
      "pub func Set(name: str, value: str): bool: ret _putenv_s(name, value) == 0 end",
      "pub func Set(name: str, value: str): bool: ret setenv(name, value, 1) == 0 end",
      "pub func Unset(name: str): bool: ret _putenv_s(name, \"\") == 0 end",
      "pub func Unset(name: str): bool: ret unsetenv(name) == 0 end"
    ],
    "error": [
      "pub func DelayForAttempt(p &: RetryPolicy, attempt: int): int:",
      "pub func IsRetryable(e: Error): bool:",
      "pub func KindName(kind: ErrorKind): str:",
      "pub func NewRetryPolicy(max_attempts: int, base_delay_ms: int, max_delay_ms: int): RetryPolicy:",
      "pub func ShouldRetry(p &: RetryPolicy, e: Error, attempt: int): bool:",
      "pub struct RetryPolicy:"
    ],
    "events": [
      "pub func Close<T>(e: Emitter<T>):",
      "pub func Count<T>(e: Emitter<T>, topic: str): int:",
      "pub func Drain<T>(e: Emitter<T>):",
      "pub func Emit<T>(e: Emitter<T>, topic: str, data: T): int:",
      "pub func EmitAsync<T>(e: Emitter<T>, topic: str, data: T): bool:",
      "pub func Flush<T>(e: Emitter<T>):",
      "pub func Free<T>(e: Emitter<T>):",
      "pub func Len<T>(e: Emitter<T>): int:",
      "pub func New<T>(): Emitter<T>:",
      "pub func NewAsync<T>(capacity: int): Emitter<T>:",
      "pub func Off<T>(e: Emitter<T>, id: int): bool:",
      "pub func OffTopic<T>(e: Emitter<T>, pattern: str): int:",
      "pub func On<T>(e: Emitter<T>, pattern: str, cb: func (Event<T>)): int:",
      "pub func OnAny<T>(e: Emitter<T>, cb: func (Event<T>)): int:",
      "pub func Once<T>(e: Emitter<T>, pattern: str, cb: func (Event<T>)): int:",
      "pub func Pending<T>(e: Emitter<T>): int:",
      "pub struct Emitter<T>:",
      "pub struct Event<T>:",
      "pub struct Handler<T>:"
    ],
    "excel": [
      "pub const AlignBottom := 3",
      "pub const AlignCenter := 2",
      "pub const AlignDefault := 0",
      "pub const AlignLeft := 1",
      "pub const AlignMiddle := 2",
      "pub const AlignRight := 3",
      "pub const AlignTop := 1",
      "pub const CellBool := 3",
      "pub const CellDate := 4",
      "pub const CellEmpty := 0",
      "pub const CellError := 6",
      "pub const CellFormula := 5",
      "pub const CellNumber := 2",
      "pub const CellString := 1",
      "pub const FormatCSV := 4",
      "pub const FormatODS := 3",
      "pub const FormatUnknown := 0",
      "pub const FormatXLS := 2",
      "pub const FormatXLSX := 1",
      "pub func CSVToSheet(text: str, sheet_name: str): Sheet throws:",
      "pub func CellRef(row: int, col: int): str:",
      "pub func ColumnIndex(label: str): int:",
      "pub func ColumnLabel(col: int): str:",
      "pub func DetectFormat(path: str): int:",
      "pub func EpochToSerial(epoch: i64): f64:",
      "pub func Inspect(path: str, ok &: bool, err &: str): FileMeta:",
      "pub func IsXLS(p: void*, n: int): bool:",
      "pub func JSONToSheet(text: str, sheet_name: str): Sheet:",
      "pub func New(): Workbook:",
      "pub func NewBoolCell(row: int, col: int, value: bool): Cell:",
      "pub func NewDateCell(row: int, col: int, epoch: i64): Cell:",
      "pub func NewFormulaCell(row: int, col: int, formula: str, cached: f64): Cell:",
      "pub func NewNumberCell(row: int, col: int, value: f64): Cell:",
      "pub func NewSheet(name: str): Sheet:",
      "pub func NewStringCell(row: int, col: int, value: str): Cell:",
      "pub func NewStyleSheet(): StyleSheet:",
      "pub func NewWorkbook(): Workbook:",
      "pub func Open(path: str, ok &: bool, err &: str): Workbook:",
      "pub func ParseCellRef(ref: str, row_out &: int, col_out &: int): bool:",
      "pub func ReadCSVWorkbook(path: str, ok &: bool, err &: str): Workbook:",
      "pub func ReadODS(path: str, ok &: bool, err &: str): Workbook:",
      "pub func ReadXLS(path: str, ok &: bool, err &: str): Workbook:",
      "pub func ReadXLSX(path: str, ok &: bool, err &: str): Workbook:",
      "pub func Save(book &: Workbook, path: str): bool:",
      "pub func SerialToEpoch(serial: f64): i64:",
      "pub func SheetToCSV(sheet: Sheet): str:",
      "pub func SheetToJSON(sheet: Sheet): str:",
      "pub func WriteCSVWorkbook(book &: Workbook, path: str): bool:",
      "pub func WriteODS(book &: Workbook, path: str): bool:",
      "pub func WriteXLSX(book &: Workbook, path: str): bool:",
      "pub func XmlAttr(xml: str, start: int, attr: str): str:",
      "pub func XmlEscape(s: str): str:",
      "pub func XmlFind(xml: str, tag: str, from: int): int:",
      "pub func XmlFindClose(xml: str, tag: str, content_start: int): int:",
      "pub func XmlInner(xml: str, tag: str, from: int): str:",
      "pub func XmlSelfClosing(xml: str, start: int): bool:",
      "pub func XmlTagEnd(xml: str, start: int): int:",
      "pub func XmlUnescape(s: str): str:",
      "pub func active(): Sheet*:",
      "pub func add_sheet(name: str): Sheet*:",
      "pub func auto_fit():",
      "pub func clear_cell(row: int, col: int):",
      "pub func col_count(): int: ret this.max_col + 1 end",
      "pub func count(): int: ret this.styles.len() end",
      "pub func equals(other: Style): bool:",
      "pub func filter_rows_equals(col: int, value: str): Vector<int>:",
      "pub func find(value: str): Vector<CellPos>:",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free(): this.styles.free() end",
      "pub func freeze(rows: int, cols: int):",
      "pub func get(id: int): Style:",
      "pub func get_all(): Vector<Cell>:",
      "pub func get_bool(row: int, col: int): bool:",
      "pub func get_cell(row: int, col: int): Cell:",
      "pub func get_column(col: int): Vector<Cell>:",
      "pub func get_formula(row: int, col: int): str:",
      "pub func get_number(row: int, col: int): f64:",
      "pub func get_or_add(s: Style): int:",
      "pub func get_row(row: int): Vector<Cell>:",
      "pub func get_string(row: int, col: int): str:",
      "pub func has_cell(row: int, col: int): bool:",
      "pub func is_merged(row: int, col: int): bool:",
      "pub func merge_cells(row1: int, col1: int, row2: int, col2: int):",
      "pub func merged_range(row: int, col: int, found &: bool): MergeRange:",
      "pub func remove_sheet(idx: int): bool:",
      "pub func remove_sheet_named(name: str): bool:",
      "pub func rename_sheet(idx: int, new_name: str): bool:",
      "pub func row_count(): int: ret this.max_row + 1 end",
      "pub func save(path: str): bool:",
      "pub func set_active(idx: int): bool:",
      "pub func set_auto_filter(row1: int, col1: int, row2: int, col2: int):",
      "pub func set_bool(row: int, col: int, value: bool):",
      "pub func set_cell(row: int, col: int, value: str):",
      "pub func set_column(col: int, values: Vector<str>):",
      "pub func set_column_width(col: int, width: f64):",
      "pub func set_date(row: int, col: int, epoch: i64):",
      "pub func set_error(row: int, col: int, code: str):",
      "pub func set_formula(row: int, col: int, formula: str, cached: f64):",
      "pub func set_int(row: int, col: int, value: i64):",
      "pub func set_number(row: int, col: int, value: f64):",
      "pub func set_row(row: int, values: Vector<str>):",
      "pub func set_string(row: int, col: int, value: str):",
      "pub func set_style(row: int, col: int, style_id: int):",
      "pub func set_table(start_row: int, start_col: int, flat: Vector<str>, num_cols: int):",
      "pub func sheet(name: str): Sheet*:",
      "pub func sheet_at(idx: int): Sheet*:",
      "pub func sheet_count(): int: ret this.sheets.len() end",
      "pub func sheet_index(name: str): int:",
      "pub func sheet_names(): Vector<str>:",
      "pub struct Cell:",
      "pub struct CellPos:",
      "pub struct FileMeta:",
      "pub struct MergeRange:",
      "pub struct Sheet:",
      "pub struct Style:",
      "pub struct StyleSheet:",
      "pub struct Workbook:"
    ],
    "filepath": [
      "pub const Separator := \"/\"",
      "pub func Abs(p: str): str:",
      "pub func Base(p: str): str:",
      "pub func Clean(p: str): str:",
      "pub func Dir(p: str): str:",
      "pub func Ext(p: str): str:",
      "pub func HasMeta(pattern: str): bool:",
      "pub func IsAbs(p: str): bool:",
      "pub func IsSafe(base: str, p: str): bool:",
      "pub func Join(a: str, b: str): str:",
      "pub func Match(pattern: str, name: str): bool:",
      "pub func Normalize(p: str): str:",
      "pub func Rel(base: str, target: str): str:",
      "pub func Stem(p: str): str:",
      "pub func Validate(p: str): bool:"
    ],
    "flag": [
      "pub const FlagKindBool := 0",
      "pub const FlagKindFloat := 3",
      "pub const FlagKindInt := 2",
      "pub const FlagKindStr := 1",
      "pub func AddBool(fs &: FlagSet, name: str, short: str, def: bool, help: str):",
      "pub func AddFloat(fs &: FlagSet, name: str, short: str, def: f64, help: str):",
      "pub func AddInt(fs &: FlagSet, name: str, short: str, def: i64, help: str):",
      "pub func AddStr(fs &: FlagSet, name: str, short: str, def: str, help: str):",
      "pub func Error(fs &: FlagSet): str: ret fs.err end",
      "pub func Free(fs &: FlagSet):",
      "pub func GetBool(fs &: FlagSet, name: str): bool:",
      "pub func GetFloat(fs &: FlagSet, name: str): f64:",
      "pub func GetInt(fs &: FlagSet, name: str): i64:",
      "pub func GetStr(fs &: FlagSet, name: str): str:",
      "pub func HelpWanted(fs &: FlagSet): bool: ret fs.help_wanted end",
      "pub func New(prog_name: str, description: str): FlagSet:",
      "pub func Parse(fs &: FlagSet, arglist: Vector<str>): bool:",
      "pub func Positional(fs &: FlagSet): Vector<str>:",
      "pub func Usage(fs &: FlagSet): str:",
      "pub func WasSet(fs &: FlagSet, name: str): bool:",
      "pub struct FlagSet:"
    ],
    "fmt": [
      "pub func Center(s: str, width: int): str:",
      "pub func Fprintf(f: File*, tmpl: str, args: Vector<str>): int:",
      "pub func PadLeft(s: str, width: int): str:",
      "pub func PadRight(s: str, width: int): str:",
      "pub func Sprintf(tmpl: str, args: Vector<str>): str:",
      "pub inline func Float(f: f64): str: ret str.FromFloat(f) end",
      "pub inline func FloatPrec(f: f64, prec: int): str: ret conv.FormatFloatPrec(f, prec) end",
      "pub inline func Hex(u: u64): str: ret conv.FormatHex(u) end",
      "pub inline func Int(i: i64): str: ret conv.FormatInt(i) end",
      "pub inline func Uint(u: u64): str: ret conv.FormatUint(u) end",
      "pub inline pure func Bool(b: bool): str: ret conv.FormatBool(b) end"
    ],
    "fs": [
      "pub func AccessedTime(path: str): i64:",
      "pub func AccessedTime(path: str): i64:",
      "pub func Append(path: str, data: str): int: ret _write_binary(path, \"ab\", data) end",
      "pub func AtomicWrite(path: str, data: str): int:",
      "pub func Chmod(path: str, mode: int): int:",
      "pub func Chmod(path: str, mode: int): int:",
      "pub func Close(f: File*): io.Close(f) end",
      "pub func Copy(src: str, dst: str): int:",
      "pub func CreatedTime(path: str): i64:",
      "pub func CreatedTime(path: str): i64:",
      "pub func Delete(p: str): int:",
      "pub func Exists(p: str): bool: ret os.Exists(p) end",
      "pub func Extension(p: str): str: ret filepath.Ext(p) end",
      "pub func Md5Hex(p: str): str: ret crypto.Md5Hex(io.ReadFile(p)) end",
      "pub func MimeType(p: str): str:",
      "pub func ModTime(path: str): i64:",
      "pub func ModTime(path: str): i64:",
      "pub func Move(src: str, dst: str): int:",
      "pub func Open(path: str, mode: str): File*: ret os.Open(path, mode) end",
      "pub func Permissions(path: str): int:",
      "pub func Permissions(path: str): int:",
      "pub func ReadAll(path: str): str: ret io.ReadFile(path) end",
      "pub func ReadBytes(path: str, n: int): str:",
      "pub func ReadLines(path: str): Vector<str>:",
      "pub func ReadText(path: str): str: ret io.ReadFile(path) end",
      "pub func Rename(src: str, dst: str): int: ret Move(src, dst) end",
      "pub func Sha1Hex(p: str): str: ret crypto.Sha1Hex(io.ReadFile(p)) end",
      "pub func Sha256Hex(p: str): str: ret crypto.Sha256Hex(io.ReadFile(p)) end",
      "pub func Sha512Hex(p: str): str: ret crypto.Sha512Hex(io.ReadFile(p)) end",
      "pub func Size(p: str): i64: ret os.FileSize(p) end",
      "pub func Stat(p: str): FileInfo:",
      "pub func WriteBytes(path: str, data: str): int: ret _write_binary(path, \"wb\", data) end",
      "pub func WriteText(path: str, data: str): int: ret _write_binary(path, \"wb\", data) end",
      "pub struct FileInfo:"
    ],
    "fs.dir": [
      "pub func Copy(src: str, dst: str): int:",
      "pub func Exists(p: str): bool: ret os.Exists(p) and os.IsDir(p) end",
      "pub func Glob(pattern: str): Vector<str>:",
      "pub func IsDir(p: str): bool: ret os.IsDir(p) end",
      "pub func List(p: str): Vector<str>: ret os.ListDir(p) end",
      "pub func ListDirs(p: str): Vector<str>: ret os.ListDirs(p) end",
      "pub func ListFiles(p: str): Vector<str>:",
      "pub func Mkdir(p: str): int:",
      "pub func MkdirAll(p: str): int:",
      "pub func ModTime(p: str): i64: ret fs.ModTime(p) end",
      "pub func Move(src: str, dst: str): int:",
      "pub func Permissions(p: str): int: ret fs.Permissions(p) end",
      "pub func Remove(p: str): int:",
      "pub func RemoveAll(p: str): int:",
      "pub func Size(p: str): i64:",
      "pub func Walk(p: str): Vector<str>: ret os.Walk(p) end",
      "pub func WalkMatch(root: str, pattern: str): Vector<str>:"
    ],
    "fs.file": [
      "pub func AccessedTime(p: str): i64: ret fs.AccessedTime(p) end",
      "pub func Append(path: str, data: str): int: ret fs.Append(path, data) end",
      "pub func AtomicWrite(path: str, data: str): int: ret fs.AtomicWrite(path, data) end",
      "pub func Chmod(p: str, mode: int): int: ret fs.Chmod(p, mode) end",
      "pub func Close(f: File*): fs.Close(f) end",
      "pub func Copy(src: str, dst: str): int: ret fs.Copy(src, dst) end",
      "pub func CreatedTime(p: str): i64: ret fs.CreatedTime(p) end",
      "pub func Delete(p: str): int: ret fs.Delete(p) end",
      "pub func Exists(p: str): bool: ret fs.Exists(p) end",
      "pub func Extension(p: str): str: ret fs.Extension(p) end",
      "pub func Md5Hex(p: str): str: ret fs.Md5Hex(p) end",
      "pub func MimeType(p: str): str: ret fs.MimeType(p) end",
      "pub func ModTime(p: str): i64: ret fs.ModTime(p) end",
      "pub func Move(src: str, dst: str): int: ret fs.Move(src, dst) end",
      "pub func Open(path: str, mode: str): File*: ret fs.Open(path, mode) end",
      "pub func Permissions(p: str): int: ret fs.Permissions(p) end",
      "pub func ReadAll(path: str): str: ret fs.ReadAll(path) end",
      "pub func ReadBytes(path: str, n: int): str: ret fs.ReadBytes(path, n) end",
      "pub func ReadLines(path: str): Vector<str>: ret fs.ReadLines(path) end",
      "pub func ReadText(path: str): str: ret fs.ReadText(path) end",
      "pub func Rename(src: str, dst: str): int: ret fs.Rename(src, dst) end",
      "pub func Sha1Hex(p: str): str: ret fs.Sha1Hex(p) end",
      "pub func Sha256Hex(p: str): str: ret fs.Sha256Hex(p) end",
      "pub func Sha512Hex(p: str): str: ret fs.Sha512Hex(p) end",
      "pub func Size(p: str): i64: ret fs.Size(p) end",
      "pub func Stat(p: str): FileInfo: ret fs.Stat(p) end",
      "pub func WriteBytes(path: str, data: str): int: ret fs.WriteBytes(path, data) end",
      "pub func WriteText(path: str, data: str): int: ret fs.WriteText(path, data) end"
    ],
    "fs.path": [
      "pub func Abs(p: str): str: ret filepath.Abs(p) end",
      "pub func Basename(p: str): str: ret filepath.Stem(p) end",
      "pub func Clean(p: str): str: ret filepath.Clean(p) end",
      "pub func Dirname(p: str): str: ret filepath.Dir(p) end",
      "pub func Ext(p: str): str: ret filepath.Ext(p) end",
      "pub func Filename(p: str): str: ret filepath.Base(p) end",
      "pub func HasMeta(pattern: str): bool: ret filepath.HasMeta(pattern) end",
      "pub func IsAbs(p: str): bool: ret filepath.IsAbs(p) end",
      "pub func IsSafe(base: str, p: str): bool: ret filepath.IsSafe(base, p) end",
      "pub func Join(a: str, b: str): str: ret filepath.Join(a, b) end",
      "pub func Match(pattern: str, name: str): bool: ret filepath.Match(pattern, name) end",
      "pub func Normalize(p: str): str: ret filepath.Normalize(p) end",
      "pub func Parent(p: str): str: ret filepath.Dir(p) end",
      "pub func Rel(base: str, target: str): str: ret filepath.Rel(base, target) end",
      "pub func Split(p: str): PathParts:",
      "pub func Stem(p: str): str: ret filepath.Stem(p) end",
      "pub func Validate(p: str): bool: ret filepath.Validate(p) end",
      "pub struct PathParts:"
    ],
    "ftp": [
      "pub func Append(c &: Client, remote: str, data: str): bool:",
      "pub func Ascii(c &: Client): bool: ret _cmd(c, \"TYPE A\") == 200 end",
      "pub func AuthTLS(c &: Client): bool:",
      "pub func AuthTLSWith(c &: Client, cfg: tls.Config): bool:",
      "pub func Binary(c &: Client): bool: ret _cmd(c, \"TYPE I\") == 200 end",
      "pub func CdUp(c &: Client): bool:",
      "pub func Close(c &: Client):",
      "pub func Command(c &: Client, line: str): int: ret _cmd(c, line) end",
      "pub func Cwd(c &: Client, path: str): bool: ret _cmd(c, \"CWD \" + path) == 250 end",
      "pub func Delete(c &: Client, path: str): bool: ret _cmd(c, \"DELE \" + path) == 250 end",
      "pub func Dial(host: str, port: int): Client:",
      "pub func DialTLS(host: str, port: int): Client:",
      "pub func DialTLSWith(host: str, port: int, cfg: tls.Config): Client:",
      "pub func Download(c &: Client, remote: str, local: str): bool:",
      "pub func DownloadDir(c &: Client, remote: str, local: str): bool:",
      "pub func Exists(c &: Client, path: str): bool:",
      "pub func Features(c &: Client): str:",
      "pub func IsDir(c &: Client, path: str): bool:",
      "pub func IsFinalLine(line: str): bool: ret _is_final(line) end",
      "pub func IsLink(c &: Client, path: str): bool:",
      "pub func LastCode(c: Client): int: ret c.last_code end",
      "pub func LastReply(c: Client): str: ret c.last_reply end",
      "pub func List(c &: Client, path: str): Vector<FileInfo>:",
      "pub func ListRaw(c &: Client, path: str): str:",
      "pub func Login(c &: Client, user: str, password: str): bool:",
      "pub func Mkdir(c &: Client, path: str): bool: ret _cmd(c, \"MKD \" + path) == 257 end",
      "pub func MkdirAll(c &: Client, path: str): bool:",
      "pub func ModTime(c &: Client, path: str): str:",
      "pub func Move(c &: Client, from_path: str, to_path: str): bool:",
      "pub func NameList(c &: Client, path: str): Vector<str>:",
      "pub func Noop(c &: Client): bool: ret _cmd(c, \"NOOP\") == 200 end",
      "pub func Ok(c: Client): bool: ret c.ok end",
      "pub func ParseEpsv(reply: str): int: ret _parse_epsv(reply) end",
      "pub func ParseListLine(line: str): FileInfo: ret _parse_list_line(line) end",
      "pub func ParsePasv(reply: str): str: ret _parse_pasv(reply) end",
      "pub func Pwd(c &: Client): str:",
      "pub func Quit(c &: Client):",
      "pub func Read(c &: Client, remote: str): str:",
      "pub func RemoveAll(c &: Client, path: str): bool:",
      "pub func Rename(c &: Client, from_path: str, to_path: str): bool:",
      "pub func ReplyCode(line: str): int: ret _code_of(line) end",
      "pub func Rmdir(c &: Client, path: str): bool: ret _cmd(c, \"RMD \" + path) == 250 end",
      "pub func Secure(c: Client): bool: ret c.secure end",
      "pub func SecureData(c: Client): bool: ret c.prot_p end",
      "pub func Size(c &: Client, path: str): i64:",
      "pub func System(c &: Client): str:",
      "pub func Upload(c &: Client, local: str, remote: str): bool:",
      "pub func UploadDir(c &: Client, local: str, remote: str): bool:",
      "pub func Write(c &: Client, remote: str, data: str): bool:",
      "pub struct Client:",
      "pub struct FileInfo:"
    ],
    "google": [
      "pub const SCOPE_CLOUD := \"https://www.googleapis.com/auth/cloud-platform\"",
      "pub const SCOPE_FCM := \"https://www.googleapis.com/auth/firebase.messaging\"",
      "pub const SCOPE_STORAGE := \"https://www.googleapis.com/auth/devstorage.read_write\"",
      "pub func AccessToken(sa: ServiceAccount, scope: str, ok &: bool): str:",
      "pub func Authorization(token: str): str:",
      "pub func Forget(sa: ServiceAccount):",
      "pub func ParseServiceAccount(document: str): ServiceAccount:",
      "pub struct ServiceAccount:"
    ],
    "graph": [
      "pub const GRAPH_INF := 1.0e300",
      "pub const GRAPH_NONE := -1",
      "pub func AStar(g &: Graph, src: int, target: int, heuristic: Vector<f64>): Vector<int>:",
      "pub func AdjacencyMatrix(g &: Graph): Matrix:",
      "pub func AdjacencySpectrum(g &: Graph): Vector<f64>:",
      "pub func AlgebraicConnectivity(g &: Graph): f64:",
      "pub func AllPairsHops(g &: Graph): IntMatrix:",
      "pub func ArticulationPoints(g &: Graph): Vector<int>:",
      "pub func Assortativity(g &: Graph): f64:",
      "pub func AutomorphismCount(g &: Graph): int:",
      "pub func AverageClustering(g &: Graph): f64:",
      "pub func AverageDegree(g &: Graph): f64:",
      "pub func AveragePathLength(g &: Graph): f64:",
      "pub func BFS(g &: Graph, src: int): Vector<int>:",
      "pub func BFSFrom(g &: Graph, src: int, dist &: Vector<int>, parent &: Vector<int>):",
      "pub func BFSOrder(g &: Graph, src: int): Vector<int>:",
      "pub func BalancedTree(branch: int, depth: int): Graph:",
      "pub func BarabasiAlbert(n: int, m: int): Graph:",
      "pub func BellmanFord(g &: Graph, src: int, dist &: Vector<f64>, parent &: Vector<int>): bool:",
      "pub func BetweennessCentrality(g &: Graph): Vector<f64>:",
      "pub func BiconnectedComponents(g &: Graph, ecomp &: Vector<int>): int:",
      "pub func Bipartite(g &: Graph): bool:",
      "pub func BipartiteMatching(g &: Graph, mate &: Vector<int>): int:",
      "pub func Boruvka(g &: Graph, chosen &: Vector<int>): f64:",
      "pub func Bridges(g &: Graph): Vector<int>:",
      "pub func BuildLCA(g &: Graph, root: int): LCAIndex:",
      "pub func Center(g &: Graph): Vector<int>:",
      "pub func ChromaticNumber(g &: Graph): int:",
      "pub func CircuitRank(g &: Graph): int:",
      "pub func CirculantGraph(n: int, offsets: Vector<int>): Graph:",
      "pub func CliqueNumber(g &: Graph): int:",
      "pub func Clone(g &: Graph): Graph:",
      "pub func ClosenessCentrality(g &: Graph): Vector<f64>:",
      "pub func ColorCount(color: Vector<int>): int:",
      "pub func Complement(g &: Graph): Graph:",
      "pub func CompleteBipartite(a: int, b: int): Graph:",
      "pub func CompleteGraph(n: int): Graph:",
      "pub func ComponentCount(g &: Graph): int:",
      "pub func ComponentSizes(g &: Graph): Vector<int>:",
      "pub func Components(g &: Graph, comp &: Vector<int>): int:",
      "pub func Condensation(g &: Graph, comp &: Vector<int>): Graph:",
      "pub func CoreNumbers(g &: Graph): Vector<int>:",
      "pub func CountColorings(g &: Graph, k: int): f64:",
      "pub func CountPaths(g &: Graph, s: int, t: int): f64:",
      "pub func CriticalPath(g &: Graph): Vector<int>:",
      "pub func CycleGraph(n: int): Graph:",
      "pub func DAGLongestPath(g &: Graph, src: int, dist &: Vector<f64>, parent &: Vector<int>): bool:",
      "pub func DAGShortestPath(g &: Graph, src: int, dist &: Vector<f64>, parent &: Vector<int>): bool:",
      "pub func DFSForest(g &: Graph): Vector<int>:",
      "pub func DFSOrder(g &: Graph, src: int): Vector<int>:",
      "pub func DFSPostOrder(g &: Graph, src: int): Vector<int>:",
      "pub func DSatur(g &: Graph): Vector<int>:",
      "pub func Degeneracy(g &: Graph): int:",
      "pub func DegreeCentrality(g &: Graph): Vector<f64>:",
      "pub func DegreeHistogram(g &: Graph): Vector<int>:",
      "pub func DegreeMatrix(g &: Graph): Matrix:",
      "pub func DegreeSequence(g &: Graph): Vector<int>:",
      "pub func Density(g &: Graph): f64:",
      "pub func Describe(g &: Graph): str:",
      "pub func Determinant(x &: Matrix): f64:",
      "pub func Diameter(g &: Graph): int:",
      "pub func Dijkstra(g &: Graph, src: int, dist &: Vector<f64>, parent &: Vector<int>): bool:",
      "pub func DijkstraDist(g &: Graph, src: int): Vector<f64>:",
      "pub func DisjointUnion(a &: Graph, b &: Graph): Graph:",
      "pub func Eccentricity(g &: Graph, u: int): int:",
      "pub func EccentricityAll(g &: Graph): Vector<int>:",
      "pub func EdgeBetweenness(g &: Graph): Vector<f64>:",
      "pub func EdgeColoringGreedy(g &: Graph): Vector<int>:",
      "pub func EdgeConnectivity(g &: Graph): int:",
      "pub func EdgeSubgraph(g &: Graph, keep: Vector<bool>): Graph:",
      "pub func EigenvectorCentrality(g &: Graph, iters: int, tol: f64): Vector<f64>:",
      "pub func EmptyGraph(n: int): Graph: ret New(n, false) end",
      "pub func ErdosRenyi(n: int, p: f64): Graph:",
      "pub func EulerianCircuit(g &: Graph): Vector<int>:",
      "pub func EulerianPath(g &: Graph): Vector<int>:",
      "pub func FillBool(v &: Vector<bool>, n: int, x: bool):",
      "pub func FillFloat(v &: Vector<f64>, n: int, x: f64):",
      "pub func FillInt(v &: Vector<int>, n: int, x: int):",
      "pub func FindCycle(g &: Graph): Vector<int>:",
      "pub func FindNegativeCycle(g &: Graph): Vector<int>:",
      "pub func FlowFromGraph(g &: Graph): FlowNet:",
      "pub func FloydPath(next &: IntMatrix, s: int, t: int): Vector<int>:",
      "pub func FloydWarshall(g &: Graph): Matrix:",
      "pub func FloydWarshallPaths(g &: Graph, next &: IntMatrix): Matrix:",
      "pub func FromEdgeList(text: str, n: int, directed: bool): Graph:",
      "pub func FromEdges(n: int, us: Vector<int>, vs: Vector<int>, directed: bool): Graph:",
      "pub func Girth(g &: Graph): int:",
      "pub func GirvanNewman(g &: Graph, want: int, comm &: Vector<int>): int:",
      "pub func GlobalMinCut(g &: Graph): f64:",
      "pub func GreedyColoring(g &: Graph, order: Vector<int>): Vector<int>:",
      "pub func GreedyColoringNatural(g &: Graph): Vector<int>:",
      "pub func GreedyVertexCover(g &: Graph, cover &: Vector<bool>): int:",
      "pub func GridGraph(rows: int, cols: int): Graph:",
      "pub func HITS(g &: Graph, iters: int, tol: f64, hubs &: Vector<f64>, auth &: Vector<f64>):",
      "pub func HamiltonianCycle(g &: Graph): Vector<int>:",
      "pub func HamiltonianPath(g &: Graph): Vector<int>:",
      "pub func HarmonicCentrality(g &: Graph): Vector<f64>:",
      "pub func HasCycle(g &: Graph): bool:",
      "pub func HasEulerianCircuit(g &: Graph): bool:",
      "pub func HasEulerianPath(g &: Graph): bool:",
      "pub func HasHamiltonianCycle(g &: Graph): bool:",
      "pub func HasNegativeCycle(g &: Graph): bool:",
      "pub func HasSelfLoop(g &: Graph): bool: ret SelfLoopCount(g) > 0 end",
      "pub func HavelHakimi(seq: Vector<int>): Graph:",
      "pub func HopDistance(g &: Graph, s: int, t: int): int:",
      "pub func HopPath(g &: Graph, s: int, t: int): Vector<int>:",
      "pub func HypercubeGraph(d: int): Graph:",
      "pub func InDegreeCentrality(g &: Graph): Vector<f64>:",
      "pub func IncidenceMatrix(g &: Graph): Matrix:",
      "pub func IndependenceNumber(g &: Graph): int:",
      "pub func Intersection(a &: Graph, b &: Graph): Graph:",
      "pub func Iota(v &: Vector<int>, n: int):",
      "pub func IsBiconnected(g &: Graph): bool:",
      "pub func IsBipartite(g &: Graph, color &: Vector<int>): bool:",
      "pub func IsClose(a: f64, b: f64): bool:",
      "pub func IsComplete(g &: Graph): bool:",
      "pub func IsConnected(g &: Graph): bool:",
      "pub func IsDAG(g &: Graph): bool:",
      "pub func IsForest(g &: Graph): bool:",
      "pub func IsGraphical(seq: Vector<int>): bool:",
      "pub func IsProperColoring(g &: Graph, color: Vector<int>): bool:",
      "pub func IsRegular(g &: Graph): bool:",
      "pub func IsSimple(g &: Graph): bool:",
      "pub func IsStronglyConnected(g &: Graph): bool:",
      "pub func IsTotalOrder(g &: Graph): bool:",
      "pub func IsTree(g &: Graph): bool:",
      "pub func IsTwoEdgeConnected(g &: Graph): bool:",
      "pub func Isomorphic(a &: Graph, b &: Graph): bool:",
      "pub func IsomorphismMap(a &: Graph, b &: Graph, map &: Vector<int>): bool:",
      "pub func Johnson(g &: Graph): Matrix:",
      "pub func KCore(g &: Graph, k: int, alive &: Vector<bool>): int:",
      "pub func KShortestLengths(g &: Graph, s: int, t: int, k: int): Vector<f64>:",
      "pub func KatzCentrality(g &: Graph, alpha: f64, beta: f64, iters: int, tol: f64): Vector<f64>:",
      "pub func Kosaraju(g &: Graph, comp &: Vector<int>): int:",
      "pub func Kruskal(g &: Graph, chosen &: Vector<int>): f64:",
      "pub func LCA(ix &: LCAIndex, u0: int, v0: int): int:",
      "pub func LabelPropagation(g &: Graph, comm &: Vector<int>): int:",
      "pub func LabeledTreeCount(n: int): f64:",
      "pub func LaplacianMatrix(g &: Graph): Matrix:",
      "pub func LaplacianSpectrum(g &: Graph): Vector<f64>:",
      "pub func LineGraph(g &: Graph): Graph:",
      "pub func LocalClustering(g &: Graph, u: int): f64:",
      "pub func Louvain(g &: Graph, comm &: Vector<int>): int:",
      "pub func MSTWeight(g &: Graph): f64:",
      "pub func MatrixIdentity(n: int): Matrix:",
      "pub func MatrixMultiply(x &: Matrix, y &: Matrix): Matrix:",
      "pub func MatrixPower(x &: Matrix, k: int): Matrix:",
      "pub func MaxClique(g &: Graph): Vector<int>:",
      "pub func MaxDegree(g &: Graph): int:",
      "pub func MaxFlow(f &: FlowNet, s: int, t: int): f64:",
      "pub func MaxFlowEdmondsKarp(f &: FlowNet, s: int, t: int): f64:",
      "pub func MaxFlowValue(g &: Graph, s: int, t: int): f64:",
      "pub func MaxInt(v: Vector<int>): int:",
      "pub func MaximalMatching(g &: Graph, mate &: Vector<int>): int:",
      "pub func MaximumIndependentSet(g &: Graph): Vector<int>:",
      "pub func MaximumIndependentSetBipartite(g &: Graph, pick &: Vector<bool>): int:",
      "pub func MaximumSpanningTree(g &: Graph, chosen &: Vector<int>): f64:",
      "pub func MinCostFlow(f &: FlowNet, s: int, t: int, want: f64, sent &: f64): f64:",
      "pub func MinCut(f &: FlowNet, s: int, t: int, side &: Vector<bool>): f64:",
      "pub func MinCutEdges(g &: Graph, s: int, t: int, cut &: Vector<int>): f64:",
      "pub func MinDegree(g &: Graph): int:",
      "pub func MinimumSpanningTree(g &: Graph): Graph:",
      "pub func MinimumVertexCover(g &: Graph, cover &: Vector<bool>): int:",
      "pub func Modularity(g &: Graph, comm: Vector<int>): f64:",
      "pub func New(n: int, directed: bool): Graph:",
      "pub func NewDirected(n: int): Graph: ret New(n, true) end",
      "pub func NewDisjointSet(n: int): DisjointSet:",
      "pub func NewFlowNet(n: int): FlowNet:",
      "pub func NewIntMatrix(rows: int, cols: int, fill: int): IntMatrix:",
      "pub func NewMatrix(rows: int, cols: int): Matrix:",
      "pub func NewUndirected(n: int): Graph: ret New(n, false) end",
      "pub func NormalizedLaplacian(g &: Graph): Matrix:",
      "pub func OutDegreeCentrality(g &: Graph): Vector<f64>:",
      "pub func PageRank(g &: Graph, damping: f64, iters: int, tol: f64): Vector<f64>:",
      "pub func ParallelEdgeCount(g &: Graph): int:",
      "pub func PathCounts(g &: Graph, src: int): Vector<f64>:",
      "pub func PathFromParents(parent: Vector<int>, s: int, t: int): Vector<int>:",
      "pub func PathGraph(n: int): Graph:",
      "pub func Periphery(g &: Graph): Vector<int>:",
      "pub func PetersenGraph(): Graph:",
      "pub func Prim(g &: Graph, root: int, parent &: Vector<int>): f64:",
      "pub func PruferDecode(code: Vector<int>): Graph:",
      "pub func PruferEncode(g &: Graph): Vector<int>:",
      "pub func Radius(g &: Graph): int:",
      "pub func RandomGraph(n: int, m: int): Graph:",
      "pub func RandomTree(n: int): Graph:",
      "pub func Reachable(g &: Graph, src: int): Vector<bool>:",
      "pub func ReachableCount(g &: Graph, src: int): int:",
      "pub func RemoveSelfLoops(g &: Graph): Graph:",
      "pub func Reverse(g &: Graph): Graph: ret Transpose(g) end",
      "pub func ReverseInt(v &: Vector<int>):",
      "pub func RootTree(g &: Graph, root: int, parent &: Vector<int>, order &: Vector<int>):",
      "pub func SCCCount(g &: Graph): int:",
      "pub func SameDegreeSequence(a &: Graph, b &: Graph): bool:",
      "pub func ScaleToSum(v &: Vector<f64>): _scale_to_sum(v) end",
      "pub func SelfLoopCount(g &: Graph): int:",
      "pub func ShortestPath(g &: Graph, s: int, t: int): Vector<int>:",
      "pub func ShortestPathLength(g &: Graph, s: int, t: int): f64:",
      "pub func Simplify(g &: Graph): Graph:",
      "pub func SpanningAgreement(g &: Graph): bool:",
      "pub func SpanningTreeCount(g &: Graph): f64:",
      "pub func SpectralRadius(g &: Graph): f64:",
      "pub func StarGraph(n: int): Graph:",
      "pub func StronglyConnected(g &: Graph, comp &: Vector<int>): int:",
      "pub func Subgraph(g &: Graph, keep: Vector<bool>): Graph:",
      "pub func SubgraphMap(g &: Graph, keep: Vector<bool>, map &: Vector<int>): Graph:",
      "pub func SubtreeSizes(g &: Graph, root: int): Vector<int>:",
      "pub func SumFloat(v: Vector<f64>): f64:",
      "pub func SumInt(v: Vector<int>): int:",
      "pub func SymmetricEigenvalues(x &: Matrix): Vector<f64>:",
      "pub func TSPHeuristic(g &: Graph, start: int): Vector<int>:",
      "pub func TSPNearestNeighbor(g &: Graph, start: int): Vector<int>:",
      "pub func TSPTwoOpt(g &: Graph, tour &: Vector<int>): f64:",
      "pub func ToAdjacencyList(g &: Graph): str:",
      "pub func ToDirected(g &: Graph): Graph:",
      "pub func ToDot(g &: Graph): str:",
      "pub func ToEdgeList(g &: Graph): str:",
      "pub func ToJSON(g &: Graph): str:",
      "pub func ToMatrixText(g &: Graph): str:",
      "pub func ToMermaid(g &: Graph): str:",
      "pub func ToUndirected(g &: Graph): Graph:",
      "pub func TopNode(score: Vector<f64>): int:",
      "pub func TopologicalLayers(g &: Graph, layer &: Vector<int>): int:",
      "pub func TopologicalSort(g &: Graph, order &: Vector<int>): bool:",
      "pub func TopologicalSortLex(g &: Graph, order &: Vector<int>): bool:",
      "pub func TotalWeight(g &: Graph): f64:",
      "pub func TourLength(g &: Graph, tour: Vector<int>): f64:",
      "pub func TransitiveClosure(g &: Graph): IntMatrix:",
      "pub func TransitiveReduction(g &: Graph): Graph:",
      "pub func Transitivity(g &: Graph): f64:",
      "pub func Transpose(g &: Graph): Graph:",
      "pub func TreeCanonicalForm(g &: Graph): str:",
      "pub func TreeCenter(g &: Graph): Vector<int>:",
      "pub func TreeCentroid(g &: Graph): Vector<int>:",
      "pub func TreeDiameter(g &: Graph, ends &: Vector<int>): int:",
      "pub func TreeDistance(ix &: LCAIndex, u: int, v: int): int:",
      "pub func TreeIsomorphic(a &: Graph, b &: Graph): bool:",
      "pub func TreeToString(g &: Graph, root: int): str:",
      "pub func TriangleCount(g &: Graph): int:",
      "pub func TwoEdgeComponents(g &: Graph, comp &: Vector<int>): int:",
      "pub func Union(a &: Graph, b &: Graph): Graph:",
      "pub func VertexConnectivity(g &: Graph): int:",
      "pub func VertexCoverNumber(g &: Graph): int:",
      "pub func WalkCount(g &: Graph, k: int, u: int, v: int): f64:",
      "pub func WattsStrogatz(n: int, k: int, p: f64): Graph:",
      "pub func WeightMatrix(g &: Graph): Matrix:",
      "pub func WeightedDiameter(g &: Graph): f64:",
      "pub func WelshPowell(g &: Graph): Vector<int>:",
      "pub func WheelGraph(n: int): Graph:",
      "pub func WienerIndex(g &: Graph): f64:",
      "pub func ZeroOneBFS(g &: Graph, src: int, dist &: Vector<f64>, parent &: Vector<int>): bool:",
      "pub func add_arc(u: int, v: int, c: f64): int:",
      "pub func add_at(i: int, j: int, v: f64):",
      "pub func add_cost_arc(u: int, v: int, c: f64, k: f64): int:",
      "pub func add_edge(u: int, v: int): int:",
      "pub func add_edge(u: int, v: int, c: f64): int:",
      "pub func add_node(): int:",
      "pub func add_nodes(k: int):",
      "pub func add_weighted(u: int, v: int, w: f64): int:",
      "pub func adj_edge(k: int): int: ret this.eix.get(k) end",
      "pub func adj_node(k: int): int: ret this.nbr.get(k) end",
      "pub func adj_start(u: int): int:",
      "pub func adj_stop(u: int): int:",
      "pub func adj_weight(k: int): f64: ret this.ew.get(this.eix.get(k)) end",
      "pub func ancestor(k: int, v: int): int: ret this.up.get(k * this.n + v) end",
      "pub func arc_count(): int: ret this.to.len() end",
      "pub func at(i: int, j: int): f64: ret this.a.get(i * this.cols + j) end",
      "pub func at(i: int, j: int): int: ret this.a.get(i * this.cols + j) end",
      "pub func build():",
      "pub func clear():",
      "pub func connected(a: int, b: int): bool: ret this.find(a) == this.find(b) end",
      "pub func count(): int: ret this.groups end",
      "pub func degree(u: int): int:",
      "pub func edge_from(e: int): int: ret this.eu.get(e) end",
      "pub func edge_to(e: int): int: ret this.ev.get(e) end",
      "pub func edge_weight(e: int): f64: ret this.ew.get(e) end",
      "pub func find(x: int): int:",
      "pub func find_edge(u: int, v: int): int:",
      "pub func flow_on(e: int): f64: ret this.orig.get(e) - this.cap.get(e) end",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free(): this.a.free() end",
      "pub func free(): this.a.free() end",
      "pub func has_edge(u: int, v: int): bool:",
      "pub func in_degree(u: int): int:",
      "pub func in_edge(k: int): int:",
      "pub func in_node(k: int): int:",
      "pub func in_start(u: int): int:",
      "pub func in_stop(u: int): int:",
      "pub func is_empty(): bool: ret this.val.len() == 0 end",
      "pub func name(u: int): str:",
      "pub func neighbors(u: int): Vector<int>:",
      "pub func order(): int: ret this.n end",
      "pub func out_degree(u: int): int:",
      "pub func pop(): int:",
      "pub func push(k: f64, v: int):",
      "pub func reset():",
      "pub func reset(n: int):",
      "pub func row_sum(i: int): f64:",
      "pub func set(i: int, j: int, v: f64): this.a.set(i * this.cols + j, v) end",
      "pub func set(i: int, j: int, v: int): this.a.set(i * this.cols + j, v) end",
      "pub func set_name(u: int, s: str):",
      "pub func set_size(a: int): int: ret this.sz.get(this.find(a)) end",
      "pub func set_weight(e: int, w: f64): this.ew.set(e, w) end",
      "pub func size(): int: ret this.eu.len() end",
      "pub func size(): int: ret this.val.len() end",
      "pub func top_key(): f64: ret this.key.get(0) end",
      "pub func top_value(): int: ret this.val.get(0) end",
      "pub func trace(): f64:",
      "pub func union(a: int, b: int): bool:",
      "pub func weight_between(u: int, v: int): f64:",
      "pub struct DisjointSet:",
      "pub struct FlowNet:",
      "pub struct Graph:",
      "pub struct IntMatrix:",
      "pub struct LCAIndex:",
      "pub struct Matrix:",
      "pub struct MinHeap:"
    ],
    "graphql": [
      "pub const ERR_EXECUTION := 2",
      "pub const ERR_REQUEST := 3",
      "pub const ERR_SYNTAX := 0",
      "pub const ERR_VALIDATION := 1",
      "pub const OP_MUTATION := 1",
      "pub const OP_QUERY := 0",
      "pub const OP_SUBSCRIPTION := 2",
      "pub const SEL_FIELD := 0",
      "pub const SEL_FRAGMENT_SPREAD := 1",
      "pub const SEL_INLINE_FRAGMENT := 2",
      "pub const SpecEdition := \"October2021\"",
      "pub const TOK_AMP := 8",
      "pub const TOK_AT := 14",
      "pub const TOK_BANG := 6",
      "pub const TOK_BLOCK_STRING := 5",
      "pub const TOK_COLON := 12",
      "pub const TOK_DOLLAR := 7",
      "pub const TOK_EOF := 0",
      "pub const TOK_EQUALS := 13",
      "pub const TOK_ERROR := 20",
      "pub const TOK_FLOAT := 3",
      "pub const TOK_INT := 2",
      "pub const TOK_LBRACE := 17",
      "pub const TOK_LBRACKET := 15",
      "pub const TOK_LPAREN := 9",
      "pub const TOK_NAME := 1",
      "pub const TOK_PIPE := 19",
      "pub const TOK_RBRACE := 18",
      "pub const TOK_RBRACKET := 16",
      "pub const TOK_RPAREN := 10",
      "pub const TOK_SPREAD := 11",
      "pub const TOK_STRING := 4",
      "pub const TREF_LIST := 1",
      "pub const TREF_NAMED := 0",
      "pub const TYPE_ENUM := 4",
      "pub const TYPE_INPUT_OBJECT := 5",
      "pub const TYPE_INTERFACE := 2",
      "pub const TYPE_OBJECT := 1",
      "pub const TYPE_SCALAR := 0",
      "pub const TYPE_UNION := 3",
      "pub const VAL_BOOL := 1",
      "pub const VAL_ENUM := 5",
      "pub const VAL_FLOAT := 3",
      "pub const VAL_INT := 2",
      "pub const VAL_LIST := 6",
      "pub const VAL_NULL := 0",
      "pub const VAL_OBJECT := 7",
      "pub const VAL_STRING := 4",
      "pub const VAL_VARIABLE := 8",
      "pub func AddEnumType(sch &: Schema, name: str, values: Vector<str>):",
      "pub func AddError(list &: GqlErrorList, e: GqlError):",
      "pub func AddField(sch &: Schema, typeName: str, fieldName: str, typeText: str): bool:",
      "pub func AddFieldArg(sch &: Schema, typeName: str, fieldName: str, argName: str, typeText: str): bool:",
      "pub func AddInputField(sch &: Schema, typeName: str, fieldName: str, typeText: str): bool:",
      "pub func AddInputObjectType(sch &: Schema, name: str, description: str):",
      "pub func AddInterfaceTo(sch &: Schema, typeName: str, interfaceName: str):",
      "pub func AddInterfaceType(sch &: Schema, name: str, description: str):",
      "pub func AddIntrospectionTypes(sch &: Schema):",
      "pub func AddObjectType(sch &: Schema, name: str, description: str):",
      "pub func AddScalarType(sch &: Schema, name: str, description: str):",
      "pub func AddUnionType(sch &: Schema, name: str, members: Vector<str>):",
      "pub func Arg(slot: i64, name: str): value.Value:",
      "pub func ArgBool(slot: i64, name: str): bool:",
      "pub func ArgFloat(slot: i64, name: str): f64:",
      "pub func ArgInt(slot: i64, name: str): i64:",
      "pub func ArgStr(slot: i64, name: str): str:",
      "pub func Args(slot: i64): value.Value: ret _rs_at(slot).args end",
      "pub func BuildQueryBody(queryText: str): str:",
      "pub func BuildRequestBody(queryText: str, operationName: str, variables: value.Value): str:",
      "pub func BuildRequestQueryString(queryText: str, operationName: str, variables: value.Value): str:",
      "pub func CoerceInput(sch: Schema, refDoc: Document, typeRef: int, v: value.Value): CoerceResult:",
      "pub func CoerceLeafResult(sch: Schema, typeName: str, v: value.Value): CoerceResult:",
      "pub func CollectFields(sch: Schema, doc: Document, sels: Vector<int>, objectType: str, vars: value.Value): FieldGroups:",
      "pub func Context(slot: i64): value.Value: ret _rs_at(slot).ctx end",
      "pub func ErrorAt(list: GqlErrorList, i: int): GqlError:",
      "pub func ErrorCount(list: GqlErrorList): int: ret list.items.len() end",
      "pub func ErrorString(e: GqlError): str:",
      "pub func ErrorToValue(e: GqlError): value.Value:",
      "pub func ErrorsToValue(list: GqlErrorList): value.Value:",
      "pub func Execute(sch: Schema, doc: Document, operationName: str, variables: value.Value, rootValue: value.Value, ctx: value.Value): ExecutionResult:",
      "pub func ExecuteSource(sch: Schema, source: str, operationName: str, variables: value.Value, rootValue: value.Value, ctx: value.Value): ExecutionResult:",
      "pub func Fail(slot: i64, message: str):",
      "pub func FieldName(slot: i64): str: ret _rs_at(slot).fieldName end",
      "pub func FindArg(f: FieldDef, name: str): InputValueDef:",
      "pub func FindDirectiveDef(s: Schema, name: str): DirectiveDef:",
      "pub func FindField(t: TypeDef, name: str): FieldDef:",
      "pub func FindFragment(doc: Document, name: str): int:",
      "pub func FindInputField(t: TypeDef, name: str): InputValueDef:",
      "pub func FindOperation(doc: Document, name: str): int:",
      "pub func FindType(s: Schema, name: str): TypeDef:",
      "pub func FreeClientResponse(r &: ClientResponse):",
      "pub func FreeDocument(doc &: Document):",
      "pub func FreeError(e &: GqlError):",
      "pub func FreeErrorList(list &: GqlErrorList):",
      "pub func FreeFieldGroups(gs &: FieldGroups):",
      "pub func FreeHttpRequest(req &: GqlHttpRequest):",
      "pub func FreeResult(r &: ExecutionResult):",
      "pub func FreeSchema(sch &: Schema):",
      "pub func HandleHttp(sch: Schema, method: str, contentType: str, body: str, queryString: str, rootValue: value.Value, ctx: value.Value): GqlHttpResponse:",
      "pub func HandleHttpSimple(sch: Schema, method: str, contentType: str, body: str, queryString: str): GqlHttpResponse:",
      "pub func HandleRequest(sch: Schema, req: GqlHttpRequest, rootValue: value.Value, ctx: value.Value): ExecutionResult:",
      "pub func HasArg(slot: i64, name: str): bool:",
      "pub func HasEnumValue(t: TypeDef, name: str): bool:",
      "pub func HasErrors(list: GqlErrorList): bool: ret list.items.len() > 0 end",
      "pub func HasField(t: TypeDef, name: str): bool:",
      "pub func HasResolver(sch: Schema, typeName: str, fieldName: str): bool:",
      "pub func HasType(s: Schema, name: str): bool:",
      "pub func IsAbstractType(s: Schema, name: str): bool:",
      "pub func IsInputType(s: Schema, name: str): bool:",
      "pub func IsIntrospectionType(name: str): bool: ret _in_is_reserved(name) end",
      "pub func IsLeafType(s: Schema, name: str): bool:",
      "pub func IsOutputType(s: Schema, name: str): bool:",
      "pub func IsPossibleType(s: Schema, abstractName: str, objectName: str): bool:",
      "pub func IsStringToken(kind: int): bool:",
      "pub func LexOk(source: str): bool:",
      "pub func LiteralToValue(sch: Schema, doc: Document, valueId: int, vars: value.Value): CoerceResult:",
      "pub func MergeSelections(doc: Document, g: FieldGroup): Vector<int>:",
      "pub func NewError(category: int, message: str): GqlError:",
      "pub func NewErrorAt(category: int, message: str, line: int, col: int): GqlError:",
      "pub func NewSchema(): Schema:",
      "pub func OperationTypeName(optype: int): str:",
      "pub func Parent(slot: i64): value.Value: ret _rs_at(slot).parent end",
      "pub func ParentField(slot: i64, name: str): value.Value:",
      "pub func ParentTypeName(slot: i64): str: ret _rs_at(slot).parentType end",
      "pub func Parse(source: str, err &: GqlError): Document:",
      "pub func ParseHttpRequest(method: str, contentType: str, body: str, queryString: str): GqlHttpRequest:",
      "pub func ParseHttpRequestJSON(body: str): GqlHttpRequest: ret _ht_from_json(body) end",
      "pub func ParseOk(source: str): bool:",
      "pub func ParseResponse(body: str): ClientResponse:",
      "pub func ParseSchema(source: str, err &: GqlError): Schema:",
      "pub func ParseSchemaInto(sch &: Schema, source: str, err &: GqlError):",
      "pub func ParseSchemaOk(source: str): bool:",
      "pub func PathLen(e: GqlError): int: ret e.pathKeys.len() end",
      "pub func PathPushIndex(e &: GqlError, idx: int):",
      "pub func PathPushKey(e &: GqlError, key: str):",
      "pub func PathString(e: GqlError): str:",
      "pub func PossibleTypes(s: Schema, name: str): Vector<str>:",
      "pub func Print(doc: Document): str:",
      "pub func PrintSchema(sch: Schema): str: ret _sp_print(sch, false) end",
      "pub func PrintSchemaFull(sch: Schema): str: ret _sp_print(sch, true) end",
      "pub func PrintStringValue(s: str): str: ret _pr_string_lit(s) end",
      "pub func PrintType(sch: Schema, name: str): str:",
      "pub func PrintTypeRef(doc: Document, id: int): str:",
      "pub func PrintValue(doc: Document, id: int): str:",
      "pub func ResetSlots():",
      "pub func Resolve(slot: i64, v: value.Value): _rs_set_result(slot, v) end",
      "pub func ResolveBool(slot: i64, b: bool): _rs_set_result(slot, value.ValueBool(b)) end",
      "pub func ResolveFloat(slot: i64, f: f64): _rs_set_result(slot, value.ValueFloat(f)) end",
      "pub func ResolveInt(slot: i64, n: i64): _rs_set_result(slot, value.ValueInt(n)) end",
      "pub func ResolveNull(slot: i64): _rs_set_result(slot, value.ValueNull()) end",
      "pub func ResolveStr(slot: i64, s: str): _rs_set_result(slot, value.ValueString(s)) end",
      "pub func ResponseErrorMessage(r: ClientResponse): str:",
      "pub func ResponseField(r: ClientResponse, name: str): value.Value:",
      "pub func ResponseKey(sel: AstSelection): str:",
      "pub func ResponseOk(r: ClientResponse): bool: ret not HasErrors(r.errors) end",
      "pub func ResultErrorMessage(r: ExecutionResult): str:",
      "pub func ResultOk(r: ExecutionResult): bool: ret not HasErrors(r.errors) end",
      "pub func ResultToJSON(r: ExecutionResult): str:",
      "pub func ResultToJSONIndent(r: ExecutionResult): str:",
      "pub func ResultToJSONStable(r: ExecutionResult): str:",
      "pub func ResultToValue(r: ExecutionResult): value.Value:",
      "pub func RootTypeName(s: Schema, optype: int): str:",
      "pub func Run(sch: Schema, source: str): ExecutionResult:",
      "pub func SelectionAt(doc: Document, id: int): AstSelection:",
      "pub func SetExtensions(r &: ExecutionResult, ext: value.Value):",
      "pub func SetResolver(sch &: Schema, typeName: str, fieldName: str, fn: i64): bool:",
      "pub func SetRootTypes(sch &: Schema, queryType: str, mutationType: str, subscriptionType: str):",
      "pub func SyntaxError(message: str, line: int, col: int): GqlError:",
      "pub func TokenKindName(kind: int): str:",
      "pub func Tokenize(source: str, ok &: bool): GqlTokenStream:",
      "pub func TypeAt(s: Schema, i: int): TypeDef:",
      "pub func TypeCount(s: Schema): int: ret s.types.len() end",
      "pub func TypeIndex(s: Schema, name: str): int: ret _sch_find_index(s, name) end",
      "pub func TypeRefAt(doc: Document, id: int): AstTypeRef:",
      "pub func TypeRefElement(doc: Document, id: int): int:",
      "pub func TypeRefIsList(doc: Document, id: int): bool:",
      "pub func TypeRefIsNonNull(doc: Document, id: int): bool:",
      "pub func TypeRefName(doc: Document, id: int): str:",
      "pub func TypeRefText(sch &: Schema, text: str): int:",
      "pub func Validate(sch: Schema, doc: Document): GqlErrorList:",
      "pub func ValidateOk(sch: Schema, doc: Document): bool:",
      "pub func ValidateSource(sch: Schema, source: str): GqlErrorList:",
      "pub func ValueAt(doc: Document, id: int): AstValue:",
      "pub struct AstArgument:",
      "pub struct AstDirective:",
      "pub struct AstFragment:",
      "pub struct AstOperation:",
      "pub struct AstSelection:",
      "pub struct AstTypeRef:",
      "pub struct AstValue:",
      "pub struct AstVariableDef:",
      "pub struct ClientResponse:",
      "pub struct CoerceResult:",
      "pub struct DirectiveDef:",
      "pub struct Document:",
      "pub struct EnumValueDef:",
      "pub struct Ex:",
      "pub struct ExecutionResult:",
      "pub struct FieldDef:",
      "pub struct FieldGroup:",
      "pub struct FieldGroups:",
      "pub struct GqlError:",
      "pub struct GqlErrorList:",
      "pub struct GqlHttpRequest:",
      "pub struct GqlHttpResponse:",
      "pub struct GqlSlotTable:",
      "pub struct GqlToken:",
      "pub struct GqlTokenStream:",
      "pub struct InputValueDef:",
      "pub struct ResolverSlot:",
      "pub struct Schema:",
      "pub struct TypeDef:",
      "pub struct Vx:"
    ],
    "grpc": [
      "pub const GRPC_ABORTED := 10",
      "pub const GRPC_ALREADY_EXISTS := 6",
      "pub const GRPC_CANCELLED := 1",
      "pub const GRPC_COMP_GZIP := 1",
      "pub const GRPC_COMP_NONE := 0",
      "pub const GRPC_CONTENT_TYPE := \"application/grpc\"",
      "pub const GRPC_CONTENT_TYPE_JSON := \"application/grpc+json\"",
      "pub const GRPC_CONTENT_TYPE_PROTO := \"application/grpc+proto\"",
      "pub const GRPC_DATA_LOSS := 15",
      "pub const GRPC_DEADLINE_EXCEEDED := 4",
      "pub const GRPC_FAILED_PRECONDITION := 9",
      "pub const GRPC_INTERNAL := 13",
      "pub const GRPC_INVALID_ARGUMENT := 3",
      "pub const GRPC_MAX_FRAMES := 100000",
      "pub const GRPC_MAX_MESSAGE := 4194304",
      "pub const GRPC_NOT_FOUND := 5",
      "pub const GRPC_OK := 0",
      "pub const GRPC_OUT_OF_RANGE := 11",
      "pub const GRPC_PERMISSION_DENIED := 7",
      "pub const GRPC_RESOURCE_EXHAUSTED := 8",
      "pub const GRPC_UNAUTHENTICATED := 16",
      "pub const GRPC_UNAVAILABLE := 14",
      "pub const GRPC_UNIMPLEMENTED := 12",
      "pub const GRPC_UNKNOWN := 2",
      "pub func CallHeaders(ch: Channel, sid: int): Metadata:",
      "pub func CallMetadata(slot: i64): Metadata:",
      "pub func CallPath(slot: i64): str:",
      "pub func CallTrailers(ch: Channel, sid: int): Metadata:",
      "pub func ChannelError(ch: Channel): str:",
      "pub func ChannelOk(ch: Channel): bool:",
      "pub func CloseChannel(ch &: Channel):",
      "pub func CloseSend(ch &: Channel, sid: int): bool:",
      "pub func DecodeStatusMessage(msg: str): str:",
      "pub func Dial(host: str, port: int): Channel:",
      "pub func DialTLS(host: str, port: int): Channel:",
      "pub func EncodeStatusMessage(msg: str): str:",
      "pub func Fail(slot: i64, code: int, message: str):",
      "pub func FinishCall(ch &: Channel, sid: int): Status:",
      "pub func FormatStatusCode(code: int): str:",
      "pub func FrameMessage(msg: compress.ByteBuf, compressed: bool): compress.ByteBuf:",
      "pub func FrameMessageGzip(msg: compress.ByteBuf, use_gzip: bool): compress.ByteBuf:",
      "pub func FrameMessageStr(msg: str): compress.ByteBuf:",
      "pub func HasMessage(data: compress.ByteBuf, pos: int): bool:",
      "pub func HasMethod(path: str): bool:",
      "pub func Listen(s &: Server): bool:",
      "pub func MDAdd(md &: Metadata, key: str, value: str): bool:",
      "pub func MDAddBinary(md &: Metadata, key: str, value: str): bool:",
      "pub func MDCount(md: Metadata): int:",
      "pub func MDFromHeaders(hl: http2.HeaderList): Metadata:",
      "pub func MDGet(md: Metadata, key: str): str:",
      "pub func MDGetAll(md: Metadata, key: str): Vector<str>:",
      "pub func MDHas(md: Metadata, key: str): bool:",
      "pub func MDKeyAt(md: Metadata, i: int): str:",
      "pub func MDToHeaders(md: Metadata, hl &: http2.HeaderList):",
      "pub func MDValueAt(md: Metadata, i: int): str:",
      "pub func MessageCount(data: compress.ByteBuf): int:",
      "pub func MethodCount(): int:",
      "pub func MethodPath(service: str, method: str): str:",
      "pub func NewMetadata(): Metadata:",
      "pub func NewServer(port: int): Server:",
      "pub func NewStatus(code: int, message: str): Status:",
      "pub func NextMessage(data: compress.ByteBuf, pos &: int, ok &: bool): compress.ByteBuf:",
      "pub func ParseStatusCode(text: str): int:",
      "pub func Port(s: Server): int:",
      "pub func Recv(slot: i64, ok &: bool): compress.ByteBuf:",
      "pub func RecvMessage(ch &: Channel, sid: int, ok &: bool): compress.ByteBuf:",
      "pub func RecvStr(slot: i64, ok &: bool): str:",
      "pub func RegisterMethod(path: str, fn: i64):",
      "pub func RegisterStreamMethod(path: str, fn: i64, client_stream: bool, server_stream: bool):",
      "pub func ResetMethods():",
      "pub func Send(slot: i64, msg: compress.ByteBuf): bool:",
      "pub func SendMessage(ch &: Channel, sid: int, msg: compress.ByteBuf, last: bool): bool:",
      "pub func SendStr(slot: i64, msg: str): bool:",
      "pub func Serve(s &: Server):",
      "pub func ServeConn(fd: i64): int:",
      "pub func ServeCount(s &: Server, n: int): int:",
      "pub func SetGzip(ch &: Channel, enable: bool):",
      "pub func SetStatus(slot: i64, code: int, message: str):",
      "pub func SetTimeout(ch &: Channel, ms: int):",
      "pub func StartCall(ch &: Channel, path: str, md: Metadata): int:",
      "pub func StatusName(code: int): str:",
      "pub func StatusOk(s: Status): bool:",
      "pub func StatusString(s: Status): str:",
      "pub func StopServer(s &: Server):",
      "pub func UnaryCall(ch &: Channel, path: str, req: compress.ByteBuf, md: Metadata, st &: Status): compress.ByteBuf:",
      "pub func UnaryCallStr(ch &: Channel, path: str, req: str, st &: Status): str:",
      "pub struct CallCtx:",
      "pub struct CallTable:",
      "pub struct Channel:",
      "pub struct Cursor:",
      "pub struct CursorTable:",
      "pub struct MDEntry:",
      "pub struct Metadata:",
      "pub struct MethodDesc:",
      "pub struct MethodTable:",
      "pub struct Server:",
      "pub struct Status:"
    ],
    "gui": [],
    "gui.color": [
      "pub func Argb(c: Color): u32:",
      "pub func Cmyk(c: f64, m: f64, y: f64, k: f64): Color:",
      "pub func Contrast(a: Color, b: Color): f64:",
      "pub func Css(c: Color): str:",
      "pub func Current(): Color:",
      "pub func Dark(c: Color): Color:",
      "pub func Darken(c: Color, amount: f64): Color:",
      "pub func Equal(a: Color, b: Color): bool:",
      "pub func Error(text: str): str:",
      "pub func FromArgb(v: u32): Color:",
      "pub func HasDark(c: Color): bool:",
      "pub func Hex(v: int): Color:",
      "pub func Hsl(h: f64, s: f64, l: f64): Color:",
      "pub func Hwb(h: f64, w: f64, b: f64): Color:",
      "pub func InGamut(c: Color): bool:",
      "pub func Lab(l: f64, a: f64, b: f64): Color:",
      "pub func Lch(l: f64, c: f64, h: f64): Color:",
      "pub func Lerp(a: Color, b: Color, t: f64): Color:",
      "pub func Light(c: Color): Color:",
      "pub func LightDark(light: Color, dark: Color): Color:",
      "pub func Lighten(c: Color, amount: f64): Color:",
      "pub func Luminance(c: Color): f64:",
      "pub func Mix(a: Color, b: Color, amount: f64): Color:",
      "pub func MixIn(a: Color, b: Color, amount: f64, space: str): Color:",
      "pub func New(r: f64, g: f64, b: f64, a: f64): Color:",
      "pub func Oklab(l: f64, a: f64, b: f64): Color:",
      "pub func Oklch(l: f64, c: f64, h: f64): Color:",
      "pub func Parse(text: str, out &: Color): bool:",
      "pub func Rgb(r: int, g: int, b: int): Color:",
      "pub func Rgba(r: int, g: int, b: int, a: f64): Color:",
      "pub func Source(c: Color): str:",
      "pub func WithAlpha(c: Color, a: f64): Color:",
      "pub struct Color:"
    ],
    "gui.flow": [
      "pub const ALIGN_AROUND := 7",
      "pub const ALIGN_AUTO := 0",
      "pub const ALIGN_BASELINE := 5",
      "pub const ALIGN_BETWEEN := 6",
      "pub const ALIGN_CENTER := 2",
      "pub const ALIGN_END := 3",
      "pub const ALIGN_EVENLY := 8",
      "pub const ALIGN_START := 1",
      "pub const ALIGN_STRETCH := 4",
      "pub const AUTO_FLOW_COLUMN := 1",
      "pub const AUTO_FLOW_COLUMN_DENSE := 3",
      "pub const AUTO_FLOW_ROW := 0",
      "pub const AUTO_FLOW_ROW_DENSE := 2",
      "pub const DIR_INHERIT := 0",
      "pub const DIR_LTR := 1",
      "pub const DIR_RTL := 2",
      "pub const LAYOUT_COLUMN := 0",
      "pub const LAYOUT_FLOW := 4",
      "pub const LAYOUT_GRID := 2",
      "pub const LAYOUT_ROW := 1",
      "pub const LAYOUT_STACK := 3",
      "pub const LEN_AUTO := 1",
      "pub const LEN_FILL := 2",
      "pub const LEN_FIT := 3",
      "pub const LEN_FIXED := 0",
      "pub const LEN_MAX_CONTENT := 5",
      "pub const LEN_MIN_CONTENT := 4",
      "pub const LEN_NONE := 6",
      "pub const OVERFLOW_AUTO := 3",
      "pub const OVERFLOW_HIDDEN := 1",
      "pub const OVERFLOW_SCROLL := 2",
      "pub const OVERFLOW_VISIBLE := 0",
      "pub const POS_ABSOLUTE := 1",
      "pub const POS_FIXED := 2",
      "pub const POS_NORMAL := 0",
      "pub const POS_STICKY := 3",
      "pub const REPEAT_FILL := -1",
      "pub const REPEAT_FIT := -2",
      "pub const TEXT_CENTER := 1",
      "pub const TEXT_END := 2",
      "pub const TEXT_JUSTIFY := 3",
      "pub const TEXT_LEFT := 4",
      "pub const TEXT_RIGHT := 5",
      "pub const TEXT_START := 0",
      "pub func AbsX(id: int): f64:",
      "pub func AbsY(id: int): f64:",
      "pub func Add(parent: int, style: FlowStyle): int:",
      "pub func All(v: Len): Edges:",
      "pub func Auto(): Len:",
      "pub func Baseline(id: int): f64:",
      "pub func Child(id: int, index: int): int:",
      "pub func ChildCount(id: int): int:",
      "pub func ClearMeasure(id: int):",
      "pub func ContentH(id: int): f64:",
      "pub func ContentW(id: int): f64:",
      "pub func Count(): int:",
      "pub func Fill(): Len:",
      "pub func Fit(): Len:",
      "pub func Free():",
      "pub func H(id: int): f64:",
      "pub func IsDirty(id: int): bool:",
      "pub func Layer(id: int): int:",
      "pub func Layout(width: f64, height: f64):",
      "pub func LayoutCalls(): int:",
      "pub func MarkDirty(id: int):",
      "pub func MaxContent(): Len:",
      "pub func MeasureCalls(): int:",
      "pub func MinContent(): Len:",
      "pub func Move(id: int, parent: int, index: int):",
      "pub func NewTree(): Tree:",
      "pub func NoLimit(): Len:",
      "pub func PaintOrder(id: int): Vector<int>:",
      "pub func Parent(id: int): int:",
      "pub func Pct(fraction: f64): Len:",
      "pub func Px(v: f64): Len:",
      "pub func PxPct(v: f64, fraction: f64): Len:",
      "pub func Remove(id: int):",
      "pub func Repeat(count: int, tracks: Vector<Track>): Track:",
      "pub func ResetCounters():",
      "pub func ScrollX(id: int): f64:",
      "pub func ScrollY(id: int): f64:",
      "pub func SetMeasure(id: int, fn: func (int, f64, f64) Size):",
      "pub func SetScroll(id: int, x: f64, y: f64):",
      "pub func SetStyle(id: int, style: FlowStyle):",
      "pub func Sides(top: Len, trailing: Len, bottom: Len, leading: Len): Edges:",
      "pub func Style(id: int): FlowStyle:",
      "pub func TrackAuto(): Track:",
      "pub func TrackFit(limit: Len): Track:",
      "pub func TrackFr(fr: f64): Track:",
      "pub func TrackLen(v: Len): Track:",
      "pub func TrackMinMax(lo: Track, hi: Track): Track:",
      "pub func Valid(id: int): bool:",
      "pub func W(id: int): f64:",
      "pub func X(id: int): f64:",
      "pub func Y(id: int): f64:",
      "pub struct Edges:",
      "pub struct FlowStyle:",
      "pub struct Len:",
      "pub struct Size:",
      "pub struct Track:",
      "pub struct Tree:"
    ],
    "gui.paint": [
      "pub enum BorderStyle:",
      "pub enum FillRule:",
      "pub enum FilterKind:",
      "pub enum GradientKind:",
      "pub enum ImageRepeat:",
      "pub enum LineCap:",
      "pub enum LineJoin:",
      "pub enum ObjectFit:",
      "pub enum RadialExtent:",
      "pub func Add(f: Filter):",
      "pub func Add(r: IntRect):",
      "pub func AddEllipse(cx: f64, cy: f64, rx: f64, ry: f64):",
      "pub func AddRect(r: Rect):",
      "pub func AddRoundedRect(r: Rect, radii: Radii):",
      "pub func AddStop(pos: f64, color: Color):",
      "pub func Apply(p: Point): Point:",
      "pub func Arc(cx: f64, cy: f64, rx: f64, ry: f64, start: f64, sweep: f64):",
      "pub func At(i: int): IntRect:",
      "pub func BackdropFilter(r: Rect, radii: Radii, chain: FilterChain, opacity: f64 = 1.0):",
      "pub func BeginFilterLayer(r: Rect, chain: FilterChain):",
      "pub func BeginLayer(r: Rect):",
      "pub func Bounds(): IntRect:",
      "pub func Clear():",
      "pub func Clear():",
      "pub func Clear(c: Color):",
      "pub func ClearRegion():",
      "pub func ClipBounds(): IntRect:",
      "pub func Close():",
      "pub func ConicGradient(cx: f64, cy: f64, angle: f64): Gradient:",
      "pub func Corners(top_left: f64, top_right: f64, bottom_right: f64, bottom_left: f64): Radii:",
      "pub func Count(): int:",
      "pub func CubicTo(c1x: f64, c1y: f64, c2x: f64, c2y: f64, x: f64, y: f64):",
      "pub func DrawBorder(r: Rect, radii: Radii, b: Border):",
      "pub func DrawGlyph(m: Mask, x: int, baseline: int, c: Color):",
      "pub func DrawImage(src: Canvas, dst: Rect, opacity: f64):",
      "pub func DrawImagePart(src: Canvas, part: IntRect, dst: Rect, opacity: f64):",
      "pub func DrawImageTiled(src: Canvas, area: Rect, tile: Rect, opacity: f64):",
      "pub func DrawMask(m: Mask, x: int, y: int, c: Color):",
      "pub func DrawNineSlice(src: Canvas, area: Rect, ns: NineSlice, opacity: f64):",
      "pub func DrawOutline(r: Rect, radii: Radii, width: f64, offset: f64, c: Color):",
      "pub func DrawOutlineStyled(r: Rect, radii: Radii, width: f64, offset: f64, c: Color, style: BorderStyle):",
      "pub func DrawShadow(r: Rect, radii: Radii, s: Shadow):",
      "pub func DropShadowFilter(offset_x: f64, offset_y: f64, blur: f64, c: Color): Filter:",
      "pub func EndLayer(opacity: f64):",
      "pub func EndLayerFiltered(chain: FilterChain, opacity: f64):",
      "pub func EndLayerMasked(opacity: f64):",
      "pub func Extent(): f64:",
      "pub func FillGradient(r: Rect, radii: Radii, g: Gradient):",
      "pub func FillPath(p: Path, rule: FillRule, c: Color):",
      "pub func FillRect(r: Rect, c: Color):",
      "pub func FillRoundedRect(r: Rect, radii: Radii, c: Color):",
      "pub func FitImage(fit: ObjectFit, image_width: int, image_height: int, box: Rect, pos_x: f64, pos_y: f64): Rect:",
      "pub func FitRadii(r: Rect, radii: Radii): Radii:",
      "pub func Free():",
      "pub func Free():",
      "pub func Free():",
      "pub func Free():",
      "pub func FromImage(img: image.Image): Canvas:",
      "pub func Hash(): str:",
      "pub func Identity(): Transform:",
      "pub func IntRectOf(x: int, y: int, width: int, height: int): IntRect:",
      "pub func Invert(): Transform:",
      "pub func IsEmpty(): bool:",
      "pub func IsEmpty(): bool:",
      "pub func IsIdentity(): bool:",
      "pub func LineTo(x: f64, y: f64):",
      "pub func LinearGradient(angle: f64): Gradient:",
      "pub func LoadPNG(path: str, ok &: bool): Canvas:",
      "pub func MapRect(r: Rect): Rect:",
      "pub func MoveTo(x: f64, y: f64):",
      "pub func NewCanvas(width: int, height: int): Canvas:",
      "pub func NewFilter(kind: FilterKind, amount: f64): Filter:",
      "pub func NewPath(): Path:",
      "pub func Pixel(x: int, y: int): Color:",
      "pub func PopClip():",
      "pub func PopTransform():",
      "pub func Premultiply(c: Color): u32:",
      "pub func PushClip(r: Rect):",
      "pub func PushRoundedClip(r: Rect, radii: Radii):",
      "pub func PushTransform(t: Transform):",
      "pub func QuadTo(cx: f64, cy: f64, x: f64, y: f64):",
      "pub func RadialGradient(cx: f64, cy: f64, rx: f64, ry: f64): Gradient:",
      "pub func RadialSize(width: f64, height: f64, cx: f64, cy: f64, circle: bool, extent: RadialExtent): Point:",
      "pub func RawPixel(x: int, y: int): u32:",
      "pub func RectOf(x: f64, y: f64, width: f64, height: f64): Rect:",
      "pub func Rgb(r: int, g: int, b: int): Color:",
      "pub func Rgba(r: int, g: int, b: int, a: int): Color:",
      "pub func Rotation(degrees: f64): Transform:",
      "pub func SavePNG(cv: Canvas, path: str): bool:",
      "pub func ScaleImage(src: Canvas, width: int, height: int): Canvas:",
      "pub func Scaling(sx: f64, sy: f64): Transform:",
      "pub func SetRegion(r: Region):",
      "pub func Skewing(x_degrees: f64, y_degrees: f64): Transform:",
      "pub func SolidBorder(width: f64, c: Color): Border:",
      "pub func StrokePath(p: Path, s: Stroke, c: Color):",
      "pub func Sub(r: IntRect): Canvas:",
      "pub func Then(o: Transform): Transform:",
      "pub func ToImage(cv: Canvas): image.Image:",
      "pub func Translate(dx: f64, dy: f64):",
      "pub func Translation(dx: f64, dy: f64): Transform:",
      "pub func Uniform(r: f64): Radii:",
      "pub func Union(o: Region):",
      "pub func Unpremultiply(v: u32): Color:",
      "pub func WrapCanvas(pixels: void*, width: int, height: int, stride: int): Canvas:",
      "pub struct Border:",
      "pub struct Canvas:",
      "pub struct Color:",
      "pub struct Filter:",
      "pub struct FilterChain:",
      "pub struct Gradient:",
      "pub struct GradientStop:",
      "pub struct IntRect:",
      "pub struct Mask:",
      "pub struct NineSlice:",
      "pub struct Path:",
      "pub struct Point:",
      "pub struct Radii:",
      "pub struct Rect:",
      "pub struct Region:",
      "pub struct Shadow:",
      "pub struct Stroke:",
      "pub struct Transform:"
    ],
    "gui.raylib": [
      "pub const BLEND_ADDITIVE := 1",
      "pub const BLEND_ADD_COLORS := 3",
      "pub const BLEND_ALPHA := 0",
      "pub const BLEND_ALPHA_PREMULTIPLY := 5",
      "pub const BLEND_CUSTOM := 6",
      "pub const BLEND_MULTIPLIED := 2",
      "pub const BLEND_SUBTRACT_COLORS := 4",
      "pub const CAMERA_CUSTOM := 0",
      "pub const CAMERA_FIRST_PERSON := 3",
      "pub const CAMERA_FREE := 1",
      "pub const CAMERA_ORBITAL := 2",
      "pub const CAMERA_ORTHOGRAPHIC := 1",
      "pub const CAMERA_PERSPECTIVE := 0",
      "pub const CAMERA_THIRD_PERSON := 4",
      "pub const FLAG_BORDERLESS_WINDOWED_MODE := 32768 as u32",
      "pub const FLAG_FULLSCREEN_MODE := 2 as u32",
      "pub const FLAG_INTERLACED_HINT := 65536 as u32",
      "pub const FLAG_MSAA_4X_HINT := 32 as u32",
      "pub const FLAG_VSYNC_HINT := 64 as u32",
      "pub const FLAG_WINDOW_ALWAYS_RUN := 256 as u32",
      "pub const FLAG_WINDOW_HIDDEN := 128 as u32",
      "pub const FLAG_WINDOW_HIGHDPI := 8192 as u32",
      "pub const FLAG_WINDOW_MAXIMIZED := 1024 as u32",
      "pub const FLAG_WINDOW_MINIMIZED := 512 as u32",
      "pub const FLAG_WINDOW_MOUSE_PASSTHROUGH := 16384 as u32",
      "pub const FLAG_WINDOW_RESIZABLE := 4 as u32",
      "pub const FLAG_WINDOW_TOPMOST := 4096 as u32",
      "pub const FLAG_WINDOW_TRANSPARENT := 16 as u32",
      "pub const FLAG_WINDOW_UNDECORATED := 8 as u32",
      "pub const FLAG_WINDOW_UNFOCUSED := 2048 as u32",
      "pub const GAMEPAD_AXIS_LEFT_TRIGGER := 4",
      "pub const GAMEPAD_AXIS_LEFT_X := 0",
      "pub const GAMEPAD_AXIS_LEFT_Y := 1",
      "pub const GAMEPAD_AXIS_RIGHT_TRIGGER := 5",
      "pub const GAMEPAD_AXIS_RIGHT_X := 2",
      "pub const GAMEPAD_AXIS_RIGHT_Y := 3",
      "pub const GAMEPAD_BUTTON_LEFT_FACE_DOWN := 3",
      "pub const GAMEPAD_BUTTON_LEFT_FACE_LEFT := 4",
      "pub const GAMEPAD_BUTTON_LEFT_FACE_RIGHT := 2",
      "pub const GAMEPAD_BUTTON_LEFT_FACE_UP := 1",
      "pub const GAMEPAD_BUTTON_LEFT_THUMB := 16",
      "pub const GAMEPAD_BUTTON_LEFT_TRIGGER_1 := 9",
      "pub const GAMEPAD_BUTTON_LEFT_TRIGGER_2 := 10",
      "pub const GAMEPAD_BUTTON_MIDDLE := 14",
      "pub const GAMEPAD_BUTTON_MIDDLE_LEFT := 13",
      "pub const GAMEPAD_BUTTON_MIDDLE_RIGHT := 15",
      "pub const GAMEPAD_BUTTON_RIGHT_FACE_DOWN := 7",
      "pub const GAMEPAD_BUTTON_RIGHT_FACE_LEFT := 8",
      "pub const GAMEPAD_BUTTON_RIGHT_FACE_RIGHT := 6",
      "pub const GAMEPAD_BUTTON_RIGHT_FACE_UP := 5",
      "pub const GAMEPAD_BUTTON_RIGHT_THUMB := 17",
      "pub const GAMEPAD_BUTTON_RIGHT_TRIGGER_1 := 11",
      "pub const GAMEPAD_BUTTON_RIGHT_TRIGGER_2 := 12",
      "pub const GAMEPAD_BUTTON_UNKNOWN := 0",
      "pub const GESTURE_DOUBLETAP := 2 as u32",
      "pub const GESTURE_DRAG := 8 as u32",
      "pub const GESTURE_HOLD := 4 as u32",
      "pub const GESTURE_NONE := 0 as u32",
      "pub const GESTURE_PINCH_IN := 256 as u32",
      "pub const GESTURE_PINCH_OUT := 512 as u32",
      "pub const GESTURE_SWIPE_DOWN := 128 as u32",
      "pub const GESTURE_SWIPE_LEFT := 32 as u32",
      "pub const GESTURE_SWIPE_RIGHT := 16 as u32",
      "pub const GESTURE_SWIPE_UP := 64 as u32",
      "pub const GESTURE_TAP := 1 as u32",
      "pub const KEY_A := 65",
      "pub const KEY_APOSTROPHE := 39",
      "pub const KEY_B := 66",
      "pub const KEY_BACKSLASH := 92",
      "pub const KEY_BACKSPACE := 259",
      "pub const KEY_C := 67",
      "pub const KEY_CAPS_LOCK := 280",
      "pub const KEY_COMMA := 44",
      "pub const KEY_D := 68",
      "pub const KEY_DELETE := 261",
      "pub const KEY_DOWN := 264",
      "pub const KEY_E := 69",
      "pub const KEY_EIGHT := 56",
      "pub const KEY_END := 269",
      "pub const KEY_ENTER := 257",
      "pub const KEY_EQUAL := 61",
      "pub const KEY_ESCAPE := 256",
      "pub const KEY_F := 70",
      "pub const KEY_F1 := 290",
      "pub const KEY_F10 := 299",
      "pub const KEY_F11 := 300",
      "pub const KEY_F12 := 301",
      "pub const KEY_F2 := 291",
      "pub const KEY_F3 := 292",
      "pub const KEY_F4 := 293",
      "pub const KEY_F5 := 294",
      "pub const KEY_F6 := 295",
      "pub const KEY_F7 := 296",
      "pub const KEY_F8 := 297",
      "pub const KEY_F9 := 298",
      "pub const KEY_FIVE := 53",
      "pub const KEY_FOUR := 52",
      "pub const KEY_G := 71",
      "pub const KEY_GRAVE := 96",
      "pub const KEY_H := 72",
      "pub const KEY_HOME := 268",
      "pub const KEY_I := 73",
      "pub const KEY_INSERT := 260",
      "pub const KEY_J := 74",
      "pub const KEY_K := 75",
      "pub const KEY_KB_MENU := 348",
      "pub const KEY_KP_0 := 320",
      "pub const KEY_KP_1 := 321",
      "pub const KEY_KP_2 := 322",
      "pub const KEY_KP_3 := 323",
      "pub const KEY_KP_4 := 324",
      "pub const KEY_KP_5 := 325",
      "pub const KEY_KP_6 := 326",
      "pub const KEY_KP_7 := 327",
      "pub const KEY_KP_8 := 328",
      "pub const KEY_KP_9 := 329",
      "pub const KEY_KP_ADD := 334",
      "pub const KEY_KP_DECIMAL := 330",
      "pub const KEY_KP_DIVIDE := 331",
      "pub const KEY_KP_ENTER := 335",
      "pub const KEY_KP_EQUAL := 336",
      "pub const KEY_KP_MULTIPLY := 332",
      "pub const KEY_KP_SUBTRACT := 333",
      "pub const KEY_L := 76",
      "pub const KEY_LEFT := 263",
      "pub const KEY_LEFT_ALT := 342",
      "pub const KEY_LEFT_BRACKET := 91",
      "pub const KEY_LEFT_CONTROL := 341",
      "pub const KEY_LEFT_SHIFT := 340",
      "pub const KEY_LEFT_SUPER := 343",
      "pub const KEY_M := 77",
      "pub const KEY_MINUS := 45",
      "pub const KEY_N := 78",
      "pub const KEY_NINE := 57",
      "pub const KEY_NULL := 0",
      "pub const KEY_NUM_LOCK := 282",
      "pub const KEY_O := 79",
      "pub const KEY_ONE := 49",
      "pub const KEY_P := 80",
      "pub const KEY_PAGE_DOWN := 267",
      "pub const KEY_PAGE_UP := 266",
      "pub const KEY_PAUSE := 284",
      "pub const KEY_PERIOD := 46",
      "pub const KEY_PRINT_SCREEN := 283",
      "pub const KEY_Q := 81",
      "pub const KEY_R := 82",
      "pub const KEY_RIGHT := 262",
      "pub const KEY_RIGHT_ALT := 346",
      "pub const KEY_RIGHT_BRACKET := 93",
      "pub const KEY_RIGHT_CONTROL := 345",
      "pub const KEY_RIGHT_SHIFT := 344",
      "pub const KEY_RIGHT_SUPER := 347",
      "pub const KEY_S := 83",
      "pub const KEY_SCROLL_LOCK := 281",
      "pub const KEY_SEMICOLON := 59",
      "pub const KEY_SEVEN := 55",
      "pub const KEY_SIX := 54",
      "pub const KEY_SLASH := 47",
      "pub const KEY_SPACE := 32",
      "pub const KEY_T := 84",
      "pub const KEY_TAB := 258",
      "pub const KEY_THREE := 51",
      "pub const KEY_TWO := 50",
      "pub const KEY_U := 85",
      "pub const KEY_UP := 265",
      "pub const KEY_V := 86",
      "pub const KEY_W := 87",
      "pub const KEY_X := 88",
      "pub const KEY_Y := 89",
      "pub const KEY_Z := 90",
      "pub const KEY_ZERO := 48",
      "pub const LOG_ALL := 0",
      "pub const LOG_DEBUG := 2",
      "pub const LOG_ERROR := 5",
      "pub const LOG_FATAL := 6",
      "pub const LOG_INFO := 3",
      "pub const LOG_NONE := 7",
      "pub const LOG_TRACE := 1",
      "pub const LOG_WARNING := 4",
      "pub const MATERIAL_MAP_ALBEDO := 0",
      "pub const MATERIAL_MAP_EMISSION := 5",
      "pub const MATERIAL_MAP_METALNESS := 1",
      "pub const MATERIAL_MAP_NORMAL := 2",
      "pub const MATERIAL_MAP_OCCLUSION := 4",
      "pub const MATERIAL_MAP_ROUGHNESS := 3",
      "pub const MOUSE_BUTTON_BACK := 6",
      "pub const MOUSE_BUTTON_EXTRA := 4",
      "pub const MOUSE_BUTTON_FORWARD := 5",
      "pub const MOUSE_BUTTON_LEFT := 0",
      "pub const MOUSE_BUTTON_MIDDLE := 2",
      "pub const MOUSE_BUTTON_RIGHT := 1",
      "pub const MOUSE_BUTTON_SIDE := 3",
      "pub const MOUSE_CURSOR_ARROW := 1",
      "pub const MOUSE_CURSOR_CROSSHAIR := 3",
      "pub const MOUSE_CURSOR_DEFAULT := 0",
      "pub const MOUSE_CURSOR_IBEAM := 2",
      "pub const MOUSE_CURSOR_NOT_ALLOWED := 10",
      "pub const MOUSE_CURSOR_POINTING_HAND := 4",
      "pub const MOUSE_CURSOR_RESIZE_ALL := 9",
      "pub const MOUSE_CURSOR_RESIZE_EW := 5",
      "pub const MOUSE_CURSOR_RESIZE_NESW := 8",
      "pub const MOUSE_CURSOR_RESIZE_NS := 6",
      "pub const MOUSE_CURSOR_RESIZE_NWSE := 7",
      "pub const PIXELFORMAT_UNCOMPRESSED_GRAYSCALE := 1",
      "pub const PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA := 2",
      "pub const PIXELFORMAT_UNCOMPRESSED_R32 := 8",
      "pub const PIXELFORMAT_UNCOMPRESSED_R32G32B32 := 9",
      "pub const PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 := 10",
      "pub const PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 := 6",
      "pub const PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 := 5",
      "pub const PIXELFORMAT_UNCOMPRESSED_R5G6B5 := 3",
      "pub const PIXELFORMAT_UNCOMPRESSED_R8G8B8 := 4",
      "pub const PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 := 7",
      "pub const SHADER_UNIFORM_FLOAT := 0",
      "pub const SHADER_UNIFORM_INT := 4",
      "pub const SHADER_UNIFORM_SAMPLER2D := 8",
      "pub const SHADER_UNIFORM_VEC2 := 1",
      "pub const SHADER_UNIFORM_VEC3 := 2",
      "pub const SHADER_UNIFORM_VEC4 := 3",
      "pub const TEXTURE_FILTER_ANISOTROPIC_16X := 5",
      "pub const TEXTURE_FILTER_ANISOTROPIC_4X := 3",
      "pub const TEXTURE_FILTER_ANISOTROPIC_8X := 4",
      "pub const TEXTURE_FILTER_BILINEAR := 1",
      "pub const TEXTURE_FILTER_POINT := 0",
      "pub const TEXTURE_FILTER_TRILINEAR := 2",
      "pub const TEXTURE_WRAP_CLAMP := 1",
      "pub const TEXTURE_WRAP_MIRROR_CLAMP := 3",
      "pub const TEXTURE_WRAP_MIRROR_REPEAT := 2",
      "pub const TEXTURE_WRAP_REPEAT := 0",
      "pub func BeginBlendMode(mode: int)",
      "pub func BeginDrawing()",
      "pub func BeginMode2D(camera: Camera2D)",
      "pub func BeginMode3D(camera: Camera3D)",
      "pub func BeginScissorMode(x: int, y: int, width: int, height: int)",
      "pub func BeginShaderMode(shader: Shader)",
      "pub func BeginTextureMode(target: RenderTexture)",
      "pub func Beige(): Color:",
      "pub func Black(): Color:",
      "pub func Blank(): Color:",
      "pub func Blue(): Color:",
      "pub func Brown(): Color:",
      "pub func ChangeDirectory(dir: str): bool",
      "pub func CheckCollisionBoxSphere(box: BoundingBox, center: Vector3, radius: f32): bool",
      "pub func CheckCollisionBoxSphere(box: BoundingBox, center: Vector3, radius: f64): bool:",
      "pub func CheckCollisionBoxes(box1: BoundingBox, box2: BoundingBox): bool",
      "pub func CheckCollisionCircleRec(center: Vector2, radius: f32, rec: Rectangle): bool",
      "pub func CheckCollisionCircleRec(center: Vector2, radius: f64, rec: Rectangle): bool:",
      "pub func CheckCollisionCircles(center1: Vector2, radius1: f32, center2: Vector2, radius2: f32): bool",
      "pub func CheckCollisionCircles(center1: Vector2, radius1: f64, center2: Vector2, radius2: f64): bool:",
      "pub func CheckCollisionLines(startPos1: Vector2, endPos1: Vector2, startPos2: Vector2, endPos2: Vector2, collisionPoint &: Vector2): bool",
      "pub func CheckCollisionPointCircle(point: Vector2, center: Vector2, radius: f32): bool",
      "pub func CheckCollisionPointCircle(point: Vector2, center: Vector2, radius: f64): bool:",
      "pub func CheckCollisionPointLine(point: Vector2, p1: Vector2, p2: Vector2, threshold: int): bool",
      "pub func CheckCollisionPointPoly(point: Vector2, points: Vector2*, pointCount: int): bool",
      "pub func CheckCollisionPointRec(point: Vector2, rec: Rectangle): bool",
      "pub func CheckCollisionPointTriangle(point: Vector2, p1: Vector2, p2: Vector2, p3: Vector2): bool",
      "pub func CheckCollisionRecs(rec1: Rectangle, rec2: Rectangle): bool",
      "pub func CheckCollisionSpheres(center1: Vector3, radius1: f32, center2: Vector3, radius2: f32): bool",
      "pub func CheckCollisionSpheres(center1: Vector3, radius1: f64, center2: Vector3, radius2: f64): bool:",
      "pub func ClearBackground(color: Color)",
      "pub func ClearWindowState(flags: u32)",
      "pub func CloseAudioDevice()",
      "pub func CloseWindow()",
      "pub func ColorAlpha(color: Color, alpha: f32): Color",
      "pub func ColorAlpha(color: Color, alpha: f64): Color:",
      "pub func ColorAlphaBlend(dst: Color, src: Color, tint: Color): Color",
      "pub func ColorBrightness(color: Color, factor: f32): Color",
      "pub func ColorBrightness(color: Color, factor: f64): Color:",
      "pub func ColorContrast(color: Color, contrast: f32): Color",
      "pub func ColorContrast(color: Color, contrast: f64): Color:",
      "pub func ColorFromHSV(hue: f32, saturation: f32, value: f32): Color",
      "pub func ColorFromHSV(hue: f64, saturation: f64, value: f64): Color:",
      "pub func ColorFromNormalized(normalized: Vector4): Color",
      "pub func ColorIsEqual(col1: Color, col2: Color): bool",
      "pub func ColorLerp(color1: Color, color2: Color, factor: f32): Color",
      "pub func ColorLerp(color1: Color, color2: Color, factor: f64): Color:",
      "pub func ColorNormalize(color: Color): Vector4",
      "pub func ColorTint(color: Color, tint: Color): Color",
      "pub func ColorToHSV(color: Color): Vector3",
      "pub func ColorToInt(color: Color): int",
      "pub func DarkBlue(): Color:",
      "pub func DarkBrown(): Color:",
      "pub func DarkGray(): Color:",
      "pub func DarkGreen(): Color:",
      "pub func DarkPurple(): Color:",
      "pub func DirectoryExists(dirPath: str): bool",
      "pub func DisableCursor()",
      "pub func DisableEventWaiting()",
      "pub func DrawBillboard(camera: Camera3D, texture: Texture, position: Vector3, scale: f32, tint: Color)",
      "pub func DrawBillboard(camera: Camera3D, texture: Texture, position: Vector3, scale: f64, tint: Color):",
      "pub func DrawBillboardRec(camera: Camera3D, texture: Texture, source: Rectangle, position: Vector3, size: Vector2, tint: Color)",
      "pub func DrawBoundingBox(box: BoundingBox, color: Color)",
      "pub func DrawCapsule(startPos: Vector3, endPos: Vector3, radius: f32, slices: int, rings: int, color: Color)",
      "pub func DrawCapsule(startPos: Vector3, endPos: Vector3, radius: f64, slices: int, rings: int, color: Color):",
      "pub func DrawCapsuleWires(startPos: Vector3, endPos: Vector3, radius: f32, slices: int, rings: int, color: Color)",
      "pub func DrawCapsuleWires(startPos: Vector3, endPos: Vector3, radius: f64, slices: int, rings: int, color: Color):",
      "pub func DrawCircle(centerX: int, centerY: int, radius: f32, color: Color)",
      "pub func DrawCircle(centerX: int, centerY: int, radius: f64, color: Color):",
      "pub func DrawCircle3D(center: Vector3, radius: f32, rotationAxis: Vector3, rotationAngle: f32, color: Color)",
      "pub func DrawCircle3D(center: Vector3, radius: f64, rotationAxis: Vector3, rotationAngle: f64, color: Color):",
      "pub func DrawCircleGradient(centerX: int, centerY: int, radius: f32, inner: Color, outer: Color)",
      "pub func DrawCircleGradient(centerX: int, centerY: int, radius: f64, inner: Color, outer: Color):",
      "pub func DrawCircleLines(centerX: int, centerY: int, radius: f32, color: Color)",
      "pub func DrawCircleLines(centerX: int, centerY: int, radius: f64, color: Color):",
      "pub func DrawCircleLinesV(center: Vector2, radius: f32, color: Color)",
      "pub func DrawCircleLinesV(center: Vector2, radius: f64, color: Color):",
      "pub func DrawCircleSector(center: Vector2, radius: f32, startAngle: f32, endAngle: f32, segments: int, color: Color)",
      "pub func DrawCircleSector(center: Vector2, radius: f64, startAngle: f64, endAngle: f64, segments: int, color: Color):",
      "pub func DrawCircleSectorLines(center: Vector2, radius: f32, startAngle: f32, endAngle: f32, segments: int, color: Color)",
      "pub func DrawCircleSectorLines(center: Vector2, radius: f64, startAngle: f64, endAngle: f64, segments: int, color: Color):",
      "pub func DrawCircleV(center: Vector2, radius: f32, color: Color)",
      "pub func DrawCircleV(center: Vector2, radius: f64, color: Color):",
      "pub func DrawCube(position: Vector3, width: f32, height: f32, length: f32, color: Color)",
      "pub func DrawCube(position: Vector3, width: f64, height: f64, length: f64, color: Color):",
      "pub func DrawCubeV(position: Vector3, size: Vector3, color: Color)",
      "pub func DrawCubeWires(position: Vector3, width: f32, height: f32, length: f32, color: Color)",
      "pub func DrawCubeWires(position: Vector3, width: f64, height: f64, length: f64, color: Color):",
      "pub func DrawCubeWiresV(position: Vector3, size: Vector3, color: Color)",
      "pub func DrawCylinder(position: Vector3, radiusTop: f32, radiusBottom: f32, height: f32, slices: int, color: Color)",
      "pub func DrawCylinder(position: Vector3, radiusTop: f64, radiusBottom: f64, height: f64, slices: int, color: Color):",
      "pub func DrawCylinderEx(startPos: Vector3, endPos: Vector3, startRadius: f32, endRadius: f32, sides: int, color: Color)",
      "pub func DrawCylinderEx(startPos: Vector3, endPos: Vector3, startRadius: f64, endRadius: f64, sides: int, color: Color):",
      "pub func DrawCylinderWires(position: Vector3, radiusTop: f32, radiusBottom: f32, height: f32, slices: int, color: Color)",
      "pub func DrawCylinderWires(position: Vector3, radiusTop: f64, radiusBottom: f64, height: f64, slices: int, color: Color):",
      "pub func DrawCylinderWiresEx(startPos: Vector3, endPos: Vector3, startRadius: f32, endRadius: f32, sides: int, color: Color)",
      "pub func DrawCylinderWiresEx(startPos: Vector3, endPos: Vector3, startRadius: f64, endRadius: f64, sides: int, color: Color):",
      "pub func DrawEllipse(centerX: int, centerY: int, radiusH: f32, radiusV: f32, color: Color)",
      "pub func DrawEllipse(centerX: int, centerY: int, radiusH: f64, radiusV: f64, color: Color):",
      "pub func DrawEllipseLines(centerX: int, centerY: int, radiusH: f32, radiusV: f32, color: Color)",
      "pub func DrawEllipseLines(centerX: int, centerY: int, radiusH: f64, radiusV: f64, color: Color):",
      "pub func DrawFPS(posX: int, posY: int)",
      "pub func DrawGrid(slices: int, spacing: f32)",
      "pub func DrawGrid(slices: int, spacing: f64):",
      "pub func DrawLine(startPosX: int, startPosY: int, endPosX: int, endPosY: int, color: Color)",
      "pub func DrawLine3D(startPos: Vector3, endPos: Vector3, color: Color)",
      "pub func DrawLineBezier(startPos: Vector2, endPos: Vector2, thick: f32, color: Color)",
      "pub func DrawLineBezier(startPos: Vector2, endPos: Vector2, thick: f64, color: Color):",
      "pub func DrawLineEx(startPos: Vector2, endPos: Vector2, thick: f32, color: Color)",
      "pub func DrawLineEx(startPos: Vector2, endPos: Vector2, thick: f64, color: Color):",
      "pub func DrawLineStrip(points: Vector2*, pointCount: int, color: Color)",
      "pub func DrawLineV(startPos: Vector2, endPos: Vector2, color: Color)",
      "pub func DrawMesh(mesh: Mesh, material: Material, transform: Matrix)",
      "pub func DrawModel(model: Model, position: Vector3, scale: f32, tint: Color)",
      "pub func DrawModel(model: Model, position: Vector3, scale: f64, tint: Color):",
      "pub func DrawModelEx(model: Model, position: Vector3, rotationAxis: Vector3, rotationAngle: f32, scale: Vector3, tint: Color)",
      "pub func DrawModelEx(model: Model, position: Vector3, rotationAxis: Vector3, rotationAngle: f64, scale: Vector3, tint: Color):",
      "pub func DrawModelWires(model: Model, position: Vector3, scale: f32, tint: Color)",
      "pub func DrawModelWires(model: Model, position: Vector3, scale: f64, tint: Color):",
      "pub func DrawModelWiresEx(model: Model, position: Vector3, rotationAxis: Vector3, rotationAngle: f32, scale: Vector3, tint: Color)",
      "pub func DrawModelWiresEx(model: Model, position: Vector3, rotationAxis: Vector3, rotationAngle: f64, scale: Vector3, tint: Color):",
      "pub func DrawPixel(posX: int, posY: int, color: Color)",
      "pub func DrawPixelV(position: Vector2, color: Color)",
      "pub func DrawPlane(centerPos: Vector3, size: Vector2, color: Color)",
      "pub func DrawPoint3D(position: Vector3, color: Color)",
      "pub func DrawPoly(center: Vector2, sides: int, radius: f32, rotation: f32, color: Color)",
      "pub func DrawPoly(center: Vector2, sides: int, radius: f64, rotation: f64, color: Color):",
      "pub func DrawPolyLines(center: Vector2, sides: int, radius: f32, rotation: f32, color: Color)",
      "pub func DrawPolyLines(center: Vector2, sides: int, radius: f64, rotation: f64, color: Color):",
      "pub func DrawPolyLinesEx(center: Vector2, sides: int, radius: f32, rotation: f32, lineThick: f32, color: Color)",
      "pub func DrawPolyLinesEx(center: Vector2, sides: int, radius: f64, rotation: f64, lineThick: f64, color: Color):",
      "pub func DrawRay(ray: Ray, color: Color)",
      "pub func DrawRectangle(posX: int, posY: int, width: int, height: int, color: Color)",
      "pub func DrawRectangleGradientEx(rec: Rectangle, topLeft: Color, bottomLeft: Color, topRight: Color, bottomRight: Color)",
      "pub func DrawRectangleGradientH(posX: int, posY: int, width: int, height: int, left: Color, right: Color)",
      "pub func DrawRectangleGradientV(posX: int, posY: int, width: int, height: int, top: Color, bottom: Color)",
      "pub func DrawRectangleLines(posX: int, posY: int, width: int, height: int, color: Color)",
      "pub func DrawRectangleLinesEx(rec: Rectangle, lineThick: f32, color: Color)",
      "pub func DrawRectangleLinesEx(rec: Rectangle, lineThick: f64, color: Color):",
      "pub func DrawRectanglePro(rec: Rectangle, origin: Vector2, rotation: f32, color: Color)",
      "pub func DrawRectanglePro(rec: Rectangle, origin: Vector2, rotation: f64, color: Color):",
      "pub func DrawRectangleRec(rec: Rectangle, color: Color)",
      "pub func DrawRectangleRounded(rec: Rectangle, roundness: f32, segments: int, color: Color)",
      "pub func DrawRectangleRounded(rec: Rectangle, roundness: f64, segments: int, color: Color):",
      "pub func DrawRectangleV(position: Vector2, size: Vector2, color: Color)",
      "pub func DrawRing(center: Vector2, innerRadius: f32, outerRadius: f32, startAngle: f32, endAngle: f32, segments: int, color: Color)",
      "pub func DrawRing(center: Vector2, innerRadius: f64, outerRadius: f64, startAngle: f64, endAngle: f64, segments: int, color: Color):",
      "pub func DrawRingLines(center: Vector2, innerRadius: f32, outerRadius: f32, startAngle: f32, endAngle: f32, segments: int, color: Color)",
      "pub func DrawRingLines(center: Vector2, innerRadius: f64, outerRadius: f64, startAngle: f64, endAngle: f64, segments: int, color: Color):",
      "pub func DrawSphere(centerPos: Vector3, radius: f32, color: Color)",
      "pub func DrawSphere(centerPos: Vector3, radius: f64, color: Color):",
      "pub func DrawSphereEx(centerPos: Vector3, radius: f32, rings: int, slices: int, color: Color)",
      "pub func DrawSphereEx(centerPos: Vector3, radius: f64, rings: int, slices: int, color: Color):",
      "pub func DrawSphereWires(centerPos: Vector3, radius: f32, rings: int, slices: int, color: Color)",
      "pub func DrawSphereWires(centerPos: Vector3, radius: f64, rings: int, slices: int, color: Color):",
      "pub func DrawSplineBasis(points: Vector2*, pointCount: int, thick: f32, color: Color)",
      "pub func DrawSplineBasis(points: Vector2*, pointCount: int, thick: f64, color: Color):",
      "pub func DrawSplineBezierCubic(points: Vector2*, pointCount: int, thick: f32, color: Color)",
      "pub func DrawSplineBezierCubic(points: Vector2*, pointCount: int, thick: f64, color: Color):",
      "pub func DrawSplineBezierQuadratic(points: Vector2*, pointCount: int, thick: f32, color: Color)",
      "pub func DrawSplineBezierQuadratic(points: Vector2*, pointCount: int, thick: f64, color: Color):",
      "pub func DrawSplineCatmullRom(points: Vector2*, pointCount: int, thick: f32, color: Color)",
      "pub func DrawSplineCatmullRom(points: Vector2*, pointCount: int, thick: f64, color: Color):",
      "pub func DrawSplineLinear(points: Vector2*, pointCount: int, thick: f32, color: Color)",
      "pub func DrawSplineLinear(points: Vector2*, pointCount: int, thick: f64, color: Color):",
      "pub func DrawText(text: str, posX: int, posY: int, fontSize: int, color: Color)",
      "pub func DrawTextCodepoint(font: Font, codepoint: int, position: Vector2, fontSize: f32, tint: Color)",
      "pub func DrawTextCodepoint(font: Font, codepoint: int, position: Vector2, fontSize: f64, tint: Color):",
      "pub func DrawTextEx(font: Font, text: str, position: Vector2, fontSize: f32, spacing: f32, tint: Color)",
      "pub func DrawTextEx(font: Font, text: str, position: Vector2, fontSize: f64, spacing: f64, tint: Color):",
      "pub func DrawTextPro(font: Font, text: str, position: Vector2, origin: Vector2, rotation: f32, fontSize: f32, spacing: f32, tint: Color)",
      "pub func DrawTextPro(font: Font, text: str, position: Vector2, origin: Vector2, rotation: f64, fontSize: f64, spacing: f64, tint: Color):",
      "pub func DrawTexture(texture: Texture, posX: int, posY: int, tint: Color)",
      "pub func DrawTextureEx(texture: Texture, position: Vector2, rotation: f32, scale: f32, tint: Color)",
      "pub func DrawTextureEx(texture: Texture, position: Vector2, rotation: f64, scale: f64, tint: Color):",
      "pub func DrawTextureNPatch(texture: Texture, nPatchInfo: NPatchInfo, dest: Rectangle, origin: Vector2, rotation: f32, tint: Color)",
      "pub func DrawTextureNPatch(texture: Texture, nPatchInfo: NPatchInfo, dest: Rectangle, origin: Vector2, rotation: f64, tint: Color):",
      "pub func DrawTexturePro(texture: Texture, source: Rectangle, dest: Rectangle, origin: Vector2, rotation: f32, tint: Color)",
      "pub func DrawTexturePro(texture: Texture, source: Rectangle, dest: Rectangle, origin: Vector2, rotation: f64, tint: Color):",
      "pub func DrawTextureRec(texture: Texture, source: Rectangle, position: Vector2, tint: Color)",
      "pub func DrawTextureV(texture: Texture, position: Vector2, tint: Color)",
      "pub func DrawTriangle(v1: Vector2, v2: Vector2, v3: Vector2, color: Color)",
      "pub func DrawTriangle3D(v1: Vector3, v2: Vector3, v3: Vector3, color: Color)",
      "pub func DrawTriangleFan(points: Vector2*, pointCount: int, color: Color)",
      "pub func DrawTriangleLines(v1: Vector2, v2: Vector2, v3: Vector2, color: Color)",
      "pub func DrawTriangleStrip(points: Vector2*, pointCount: int, color: Color)",
      "pub func DrawTriangleStrip3D(points: Vector3*, pointCount: int, color: Color)",
      "pub func EnableCursor()",
      "pub func EnableEventWaiting()",
      "pub func EndBlendMode()",
      "pub func EndDrawing()",
      "pub func EndMode2D()",
      "pub func EndMode3D()",
      "pub func EndScissorMode()",
      "pub func EndShaderMode()",
      "pub func EndTextureMode()",
      "pub func ExportImage(image: Image, fileName: str): bool",
      "pub func ExportMesh(mesh: Mesh, fileName: str): bool",
      "pub func ExportWave(wave: Wave, fileName: str): bool",
      "pub func Fade(color: Color, alpha: f32): Color",
      "pub func Fade(color: Color, alpha: f64): Color:",
      "pub func FileExists(fileName: str): bool",
      "pub func GenImageCellular(width: int, height: int, tileSize: int): Image",
      "pub func GenImageChecked(width: int, height: int, checksX: int, checksY: int, col1: Color, col2: Color): Image",
      "pub func GenImageColor(width: int, height: int, color: Color): Image",
      "pub func GenImageGradientLinear(width: int, height: int, direction: int, startColor: Color, endColor: Color): Image",
      "pub func GenImageGradientRadial(width: int, height: int, density: f32, inner: Color, outer: Color): Image",
      "pub func GenImageGradientRadial(width: int, height: int, density: f64, inner: Color, outer: Color): Image:",
      "pub func GenImageGradientSquare(width: int, height: int, density: f32, inner: Color, outer: Color): Image",
      "pub func GenImageGradientSquare(width: int, height: int, density: f64, inner: Color, outer: Color): Image:",
      "pub func GenImagePerlinNoise(width: int, height: int, offsetX: int, offsetY: int, scale: f32): Image",
      "pub func GenImagePerlinNoise(width: int, height: int, offsetX: int, offsetY: int, scale: f64): Image:",
      "pub func GenImageWhiteNoise(width: int, height: int, factor: f32): Image",
      "pub func GenImageWhiteNoise(width: int, height: int, factor: f64): Image:",
      "pub func GenMeshCone(radius: f32, height: f32, slices: int): Mesh",
      "pub func GenMeshCone(radius: f64, height: f64, slices: int): Mesh:",
      "pub func GenMeshCube(width: f32, height: f32, length: f32): Mesh",
      "pub func GenMeshCube(width: f64, height: f64, length: f64): Mesh:",
      "pub func GenMeshCubicmap(cubicmap: Image, cubeSize: Vector3): Mesh",
      "pub func GenMeshCylinder(radius: f32, height: f32, slices: int): Mesh",
      "pub func GenMeshCylinder(radius: f64, height: f64, slices: int): Mesh:",
      "pub func GenMeshHeightmap(heightmap: Image, size: Vector3): Mesh",
      "pub func GenMeshHemiSphere(radius: f32, rings: int, slices: int): Mesh",
      "pub func GenMeshHemiSphere(radius: f64, rings: int, slices: int): Mesh:",
      "pub func GenMeshKnot(radius: f32, size: f32, radSeg: int, sides: int): Mesh",
      "pub func GenMeshKnot(radius: f64, size: f64, radSeg: int, sides: int): Mesh:",
      "pub func GenMeshPlane(width: f32, length: f32, resX: int, resZ: int): Mesh",
      "pub func GenMeshPlane(width: f64, length: f64, resX: int, resZ: int): Mesh:",
      "pub func GenMeshPoly(sides: int, radius: f32): Mesh",
      "pub func GenMeshPoly(sides: int, radius: f64): Mesh:",
      "pub func GenMeshSphere(radius: f32, rings: int, slices: int): Mesh",
      "pub func GenMeshSphere(radius: f64, rings: int, slices: int): Mesh:",
      "pub func GenMeshTangents(mesh &: Mesh)",
      "pub func GenMeshTorus(radius: f32, size: f32, radSeg: int, sides: int): Mesh",
      "pub func GenMeshTorus(radius: f64, size: f64, radSeg: int, sides: int): Mesh:",
      "pub func GenTextureMipmaps(texture &: Texture)",
      "pub func GetApplicationDirectory(): str",
      "pub func GetCameraMatrix(camera: Camera3D): Matrix",
      "pub func GetCameraMatrix2D(camera: Camera2D): Matrix",
      "pub func GetCharPressed(): int",
      "pub func GetClipboardText(): str",
      "pub func GetCollisionRec(rec1: Rectangle, rec2: Rectangle): Rectangle",
      "pub func GetColor(hexValue: u32): Color",
      "pub func GetCurrentMonitor(): int",
      "pub func GetDirectoryPath(filePath: str): str",
      "pub func GetFPS(): int",
      "pub func GetFileExtension(fileName: str): str",
      "pub func GetFileLength(fileName: str): int",
      "pub func GetFileName(filePath: str): str",
      "pub func GetFileNameWithoutExt(filePath: str): str",
      "pub func GetFontDefault(): Font",
      "pub func GetFrameTime(): f32",
      "pub func GetGamepadAxisCount(gamepad: int): int",
      "pub func GetGamepadAxisMovement(gamepad: int, axis: int): f32",
      "pub func GetGamepadButtonPressed(): int",
      "pub func GetGamepadName(gamepad: int): str",
      "pub func GetGestureDetected(): int",
      "pub func GetGestureDragAngle(): f32",
      "pub func GetGestureDragVector(): Vector2",
      "pub func GetGestureHoldDuration(): f32",
      "pub func GetGesturePinchAngle(): f32",
      "pub func GetGesturePinchVector(): Vector2",
      "pub func GetGlyphIndex(font: Font, codepoint: int): int",
      "pub func GetImageAlphaBorder(image: Image, threshold: f32): Rectangle",
      "pub func GetImageAlphaBorder(image: Image, threshold: f64): Rectangle:",
      "pub func GetImageColor(image: Image, x: int, y: int): Color",
      "pub func GetKeyPressed(): int",
      "pub func GetMasterVolume(): f32",
      "pub func GetMeshBoundingBox(mesh: Mesh): BoundingBox",
      "pub func GetModelBoundingBox(model: Model): BoundingBox",
      "pub func GetMonitorCount(): int",
      "pub func GetMonitorHeight(monitor: int): int",
      "pub func GetMonitorName(monitor: int): str",
      "pub func GetMonitorPhysicalHeight(monitor: int): int",
      "pub func GetMonitorPhysicalWidth(monitor: int): int",
      "pub func GetMonitorPosition(monitor: int): Vector2",
      "pub func GetMonitorRefreshRate(monitor: int): int",
      "pub func GetMonitorWidth(monitor: int): int",
      "pub func GetMouseDelta(): Vector2",
      "pub func GetMousePosition(): Vector2",
      "pub func GetMouseWheelMove(): f32",
      "pub func GetMouseWheelMoveV(): Vector2",
      "pub func GetMouseX(): int",
      "pub func GetMouseY(): int",
      "pub func GetMusicTimeLength(music: Music): f32",
      "pub func GetMusicTimePlayed(music: Music): f32",
      "pub func GetPixelColor(srcPtr: void*, format: int): Color",
      "pub func GetPixelDataSize(width: int, height: int, format: int): int",
      "pub func GetPrevDirectoryPath(dirPath: str): str",
      "pub func GetRandomValue(min: int, max: int): int",
      "pub func GetRayCollisionBox(ray: Ray, box: BoundingBox): RayCollision",
      "pub func GetRayCollisionMesh(ray: Ray, mesh: Mesh, transform: Matrix): RayCollision",
      "pub func GetRayCollisionQuad(ray: Ray, p1: Vector3, p2: Vector3, p3: Vector3, p4: Vector3): RayCollision",
      "pub func GetRayCollisionSphere(ray: Ray, center: Vector3, radius: f32): RayCollision",
      "pub func GetRayCollisionSphere(ray: Ray, center: Vector3, radius: f64): RayCollision:",
      "pub func GetRayCollisionTriangle(ray: Ray, p1: Vector3, p2: Vector3, p3: Vector3): RayCollision",
      "pub func GetRenderHeight(): int",
      "pub func GetRenderWidth(): int",
      "pub func GetScreenHeight(): int",
      "pub func GetScreenToWorld2D(position: Vector2, camera: Camera2D): Vector2",
      "pub func GetScreenToWorldRay(position: Vector2, camera: Camera3D): Ray",
      "pub func GetScreenToWorldRayEx(position: Vector2, camera: Camera3D, width: int, height: int): Ray",
      "pub func GetScreenWidth(): int",
      "pub func GetShaderLocation(shader: Shader, uniformName: str): int",
      "pub func GetShaderLocationAttrib(shader: Shader, attribName: str): int",
      "pub func GetShapesTexture(): Texture",
      "pub func GetShapesTextureRectangle(): Rectangle",
      "pub func GetTime(): f64",
      "pub func GetTouchPointCount(): int",
      "pub func GetTouchPointId(index: int): int",
      "pub func GetTouchPosition(index: int): Vector2",
      "pub func GetTouchX(): int",
      "pub func GetTouchY(): int",
      "pub func GetWindowPosition(): Vector2",
      "pub func GetWindowScaleDPI(): Vector2",
      "pub func GetWorkingDirectory(): str",
      "pub func GetWorldToScreen(position: Vector3, camera: Camera3D): Vector2",
      "pub func GetWorldToScreen2D(position: Vector2, camera: Camera2D): Vector2",
      "pub func GetWorldToScreenEx(position: Vector3, camera: Camera3D, width: int, height: int): Vector2",
      "pub func Gold(): Color:",
      "pub func Gray(): Color:",
      "pub func Green(): Color:",
      "pub func HideCursor()",
      "pub func ImageAlphaClear(image &: Image, color: Color, threshold: f32)",
      "pub func ImageAlphaClear(image &: Image, color: Color, threshold: f64):",
      "pub func ImageAlphaCrop(image &: Image, threshold: f32)",
      "pub func ImageAlphaCrop(image &: Image, threshold: f64):",
      "pub func ImageAlphaMask(image &: Image, alphaMask: Image)",
      "pub func ImageAlphaPremultiply(image &: Image)",
      "pub func ImageBlurGaussian(image &: Image, blurSize: int)",
      "pub func ImageClearBackground(dst &: Image, color: Color)",
      "pub func ImageColorBrightness(image &: Image, brightness: int)",
      "pub func ImageColorContrast(image &: Image, contrast: f32)",
      "pub func ImageColorContrast(image &: Image, contrast: f64):",
      "pub func ImageColorGrayscale(image &: Image)",
      "pub func ImageColorInvert(image &: Image)",
      "pub func ImageColorReplace(image &: Image, color: Color, replace: Color)",
      "pub func ImageColorTint(image &: Image, color: Color)",
      "pub func ImageCopy(image: Image): Image",
      "pub func ImageCrop(image &: Image, crop: Rectangle)",
      "pub func ImageDither(image &: Image, rBpp: int, gBpp: int, bBpp: int, aBpp: int)",
      "pub func ImageDraw(dst &: Image, src: Image, srcRec: Rectangle, dstRec: Rectangle, tint: Color)",
      "pub func ImageDrawCircle(dst &: Image, centerX: int, centerY: int, radius: int, color: Color)",
      "pub func ImageDrawCircleV(dst &: Image, center: Vector2, radius: int, color: Color)",
      "pub func ImageDrawLine(dst &: Image, startPosX: int, startPosY: int, endPosX: int, endPosY: int, color: Color)",
      "pub func ImageDrawLineV(dst &: Image, startPos: Vector2, endPos: Vector2, color: Color)",
      "pub func ImageDrawPixel(dst &: Image, posX: int, posY: int, color: Color)",
      "pub func ImageDrawPixelV(dst &: Image, position: Vector2, color: Color)",
      "pub func ImageDrawRectangle(dst &: Image, posX: int, posY: int, width: int, height: int, color: Color)",
      "pub func ImageDrawRectangleLines(dst &: Image, rec: Rectangle, thick: int, color: Color)",
      "pub func ImageDrawRectangleRec(dst &: Image, rec: Rectangle, color: Color)",
      "pub func ImageDrawRectangleV(dst &: Image, position: Vector2, size: Vector2, color: Color)",
      "pub func ImageDrawText(dst &: Image, text: str, posX: int, posY: int, fontSize: int, color: Color)",
      "pub func ImageFlipHorizontal(image &: Image)",
      "pub func ImageFlipVertical(image &: Image)",
      "pub func ImageFormat(image &: Image, newFormat: int)",
      "pub func ImageFromImage(image: Image, rec: Rectangle): Image",
      "pub func ImageMipmaps(image &: Image)",
      "pub func ImageResize(image &: Image, newWidth: int, newHeight: int)",
      "pub func ImageResizeCanvas(image &: Image, newWidth: int, newHeight: int, offsetX: int, offsetY: int, fill: Color)",
      "pub func ImageResizeNN(image &: Image, newWidth: int, newHeight: int)",
      "pub func ImageRotate(image &: Image, degrees: int)",
      "pub func ImageRotateCCW(image &: Image)",
      "pub func ImageRotateCW(image &: Image)",
      "pub func ImageText(text: str, fontSize: int, color: Color): Image",
      "pub func ImageToPOT(image &: Image, fill: Color)",
      "pub func InitAudioDevice()",
      "pub func InitWindow(width: int, height: int, title: str)",
      "pub func IsAudioDeviceReady(): bool",
      "pub func IsCursorHidden(): bool",
      "pub func IsCursorOnScreen(): bool",
      "pub func IsFileDropped(): bool",
      "pub func IsFileExtension(fileName: str, ext: str): bool",
      "pub func IsFileNameValid(fileName: str): bool",
      "pub func IsFontValid(font: Font): bool",
      "pub func IsGamepadAvailable(gamepad: int): bool",
      "pub func IsGamepadButtonDown(gamepad: int, button: int): bool",
      "pub func IsGamepadButtonPressed(gamepad: int, button: int): bool",
      "pub func IsGamepadButtonReleased(gamepad: int, button: int): bool",
      "pub func IsGamepadButtonUp(gamepad: int, button: int): bool",
      "pub func IsGestureDetected(gesture: u32): bool",
      "pub func IsImageValid(image: Image): bool",
      "pub func IsKeyDown(key: int): bool",
      "pub func IsKeyPressed(key: int): bool",
      "pub func IsKeyPressedRepeat(key: int): bool",
      "pub func IsKeyReleased(key: int): bool",
      "pub func IsKeyUp(key: int): bool",
      "pub func IsMaterialValid(material: Material): bool",
      "pub func IsModelAnimationValid(model: Model, anim: ModelAnimation): bool",
      "pub func IsModelValid(model: Model): bool",
      "pub func IsMouseButtonDown(button: int): bool",
      "pub func IsMouseButtonPressed(button: int): bool",
      "pub func IsMouseButtonReleased(button: int): bool",
      "pub func IsMouseButtonUp(button: int): bool",
      "pub func IsMusicStreamPlaying(music: Music): bool",
      "pub func IsMusicValid(music: Music): bool",
      "pub func IsPathFile(path: str): bool",
      "pub func IsRenderTextureValid(target: RenderTexture): bool",
      "pub func IsShaderValid(shader: Shader): bool",
      "pub func IsSoundPlaying(sound: Sound): bool",
      "pub func IsSoundValid(sound: Sound): bool",
      "pub func IsTextureValid(texture: Texture): bool",
      "pub func IsWaveValid(wave: Wave): bool",
      "pub func IsWindowFocused(): bool",
      "pub func IsWindowFullscreen(): bool",
      "pub func IsWindowHidden(): bool",
      "pub func IsWindowMaximized(): bool",
      "pub func IsWindowMinimized(): bool",
      "pub func IsWindowReady(): bool",
      "pub func IsWindowResized(): bool",
      "pub func IsWindowState(flag: u32): bool",
      "pub func LightGray(): Color:",
      "pub func Lime(): Color:",
      "pub func LoadDirectoryFiles(dirPath: str): FilePathList",
      "pub func LoadDroppedFiles(): FilePathList",
      "pub func LoadFileData(fileName: str, dataSize &: int): u8*",
      "pub func LoadFileText(fileName: str): str",
      "pub func LoadFont(fileName: str): Font",
      "pub func LoadFontEx(fileName: str, fontSize: int, codepoints: int*, codepointCount: int): Font",
      "pub func LoadFontFromImage(image: Image, key: Color, firstChar: int): Font",
      "pub func LoadImage(fileName: str): Image",
      "pub func LoadImageColors(image: Image): Color*",
      "pub func LoadImageFromMemory(fileType: str, fileData: u8*, dataSize: int): Image",
      "pub func LoadImageFromScreen(): Image",
      "pub func LoadImageFromTexture(texture: Texture): Image",
      "pub func LoadImageRaw(fileName: str, width: int, height: int, format: int, headerSize: int): Image",
      "pub func LoadMaterialDefault(): Material",
      "pub func LoadModel(fileName: str): Model",
      "pub func LoadModelAnimations(fileName: str, animCount &: int): ModelAnimation*",
      "pub func LoadModelFromMesh(mesh: Mesh): Model",
      "pub func LoadMusicStream(fileName: str): Music",
      "pub func LoadRenderTexture(width: int, height: int): RenderTexture",
      "pub func LoadShader(vsFileName: str, fsFileName: str): Shader",
      "pub func LoadShaderFromMemory(vsCode: str, fsCode: str): Shader",
      "pub func LoadSound(fileName: str): Sound",
      "pub func LoadSoundAlias(source: Sound): Sound",
      "pub func LoadSoundFromWave(wave: Wave): Sound",
      "pub func LoadTexture(fileName: str): Texture",
      "pub func LoadTextureCubemap(image: Image, cubeLayout: int): Texture",
      "pub func LoadTextureFromImage(image: Image): Texture",
      "pub func LoadWave(fileName: str): Wave",
      "pub func LoadWaveSamples(wave: Wave): f32*",
      "pub func Magenta(): Color:",
      "pub func Maroon(): Color:",
      "pub func MaximizeWindow()",
      "pub func MeasureText(text: str, fontSize: int): int",
      "pub func MeasureTextEx(font: Font, text: str, fontSize: f32, spacing: f32): Vector2",
      "pub func MeasureTextEx(font: Font, text: str, fontSize: f64, spacing: f64): Vector2:",
      "pub func MemAlloc(size: u32): void*",
      "pub func MemFree(ptr: void*)",
      "pub func MinimizeWindow()",
      "pub func NewCamera2D(offset: Vector2, target: Vector2, rotation: f64, zoom: f64): Camera2D:",
      "pub func NewCamera3D(position: Vector3, target: Vector3, up: Vector3, fovy: f64, projection: int): Camera3D:",
      "pub func OpenURL(url: str)",
      "pub func Orange(): Color:",
      "pub func PauseMusicStream(music: Music)",
      "pub func PauseSound(sound: Sound)",
      "pub func Pink(): Color:",
      "pub func PlayMusicStream(music: Music)",
      "pub func PlaySound(sound: Sound)",
      "pub func PollInputEvents()",
      "pub func Purple(): Color:",
      "pub func RGB(r: int, g: int, b: int): Color:",
      "pub func RGBA(r: int, g: int, b: int, a: int): Color:",
      "pub func RayWhite(): Color:",
      "pub func Rect(x: f64, y: f64, width: f64, height: f64): Rectangle:",
      "pub func Red(): Color:",
      "pub func RestoreWindow()",
      "pub func ResumeMusicStream(music: Music)",
      "pub func ResumeSound(sound: Sound)",
      "pub func SaveFileData(fileName: str, data: void*, dataSize: int): bool",
      "pub func SaveFileText(fileName: str, text: str): bool",
      "pub func SeekMusicStream(music: Music, position: f32)",
      "pub func SeekMusicStream(music: Music, position: f64):",
      "pub func SetClipboardText(text: str)",
      "pub func SetConfigFlags(flags: u32)",
      "pub func SetExitKey(key: int)",
      "pub func SetGamepadMappings(mappings: str): int",
      "pub func SetGamepadVibration(gamepad: int, leftMotor: f32, rightMotor: f32, duration: f32)",
      "pub func SetGamepadVibration(gamepad: int, leftMotor: f64, rightMotor: f64, duration: f64):",
      "pub func SetGesturesEnabled(flags: u32)",
      "pub func SetMasterVolume(volume: f32)",
      "pub func SetMasterVolume(volume: f64):",
      "pub func SetMaterialTexture(material &: Material, mapType: int, texture: Texture)",
      "pub func SetModelMeshMaterial(model &: Model, meshId: int, materialId: int)",
      "pub func SetMouseCursor(cursor: int)",
      "pub func SetMouseOffset(offsetX: int, offsetY: int)",
      "pub func SetMousePosition(x: int, y: int)",
      "pub func SetMouseScale(scaleX: f32, scaleY: f32)",
      "pub func SetMouseScale(scaleX: f64, scaleY: f64):",
      "pub func SetMusicPan(music: Music, pan: f32)",
      "pub func SetMusicPan(music: Music, pan: f64):",
      "pub func SetMusicPitch(music: Music, pitch: f32)",
      "pub func SetMusicPitch(music: Music, pitch: f64):",
      "pub func SetMusicVolume(music: Music, volume: f32)",
      "pub func SetMusicVolume(music: Music, volume: f64):",
      "pub func SetPixelColor(dstPtr: void*, color: Color, format: int)",
      "pub func SetRandomSeed(seed: u32)",
      "pub func SetShaderValue(shader: Shader, locIndex: int, value: void*, uniformType: int)",
      "pub func SetShaderValueMatrix(shader: Shader, locIndex: int, mat: Matrix)",
      "pub func SetShaderValueTexture(shader: Shader, locIndex: int, texture: Texture)",
      "pub func SetShaderValueV(shader: Shader, locIndex: int, value: void*, uniformType: int, count: int)",
      "pub func SetShapesTexture(texture: Texture, source: Rectangle)",
      "pub func SetSoundPan(sound: Sound, pan: f32)",
      "pub func SetSoundPan(sound: Sound, pan: f64):",
      "pub func SetSoundPitch(sound: Sound, pitch: f32)",
      "pub func SetSoundPitch(sound: Sound, pitch: f64):",
      "pub func SetSoundVolume(sound: Sound, volume: f32)",
      "pub func SetSoundVolume(sound: Sound, volume: f64):",
      "pub func SetTargetFPS(fps: int)",
      "pub func SetTextLineSpacing(spacing: int)",
      "pub func SetTextureFilter(texture: Texture, filter: int)",
      "pub func SetTextureWrap(texture: Texture, wrap: int)",
      "pub func SetTraceLogLevel(logLevel: int)",
      "pub func SetWindowFocused()",
      "pub func SetWindowIcon(image: Image)",
      "pub func SetWindowMaxSize(width: int, height: int)",
      "pub func SetWindowMinSize(width: int, height: int)",
      "pub func SetWindowMonitor(monitor: int)",
      "pub func SetWindowOpacity(opacity: f32)",
      "pub func SetWindowOpacity(opacity: f64):",
      "pub func SetWindowPosition(x: int, y: int)",
      "pub func SetWindowSize(width: int, height: int)",
      "pub func SetWindowState(flags: u32)",
      "pub func SetWindowTitle(title: str)",
      "pub func ShowCursor()",
      "pub func SkyBlue(): Color:",
      "pub func StopMusicStream(music: Music)",
      "pub func StopSound(sound: Sound)",
      "pub func SwapScreenBuffer()",
      "pub func TakeScreenshot(fileName: str)",
      "pub func TextFindIndex(text: str, find: str): int",
      "pub func TextIsEqual(text1: str, text2: str): bool",
      "pub func TextLength(text: str): u32",
      "pub func TextReplace(text: str, search: str, replacement: str): str",
      "pub func TextSubtext(text: str, position: int, length: int): str",
      "pub func TextToCamel(text: str): str",
      "pub func TextToInteger(text: str): int",
      "pub func TextToLower(text: str): str",
      "pub func TextToPascal(text: str): str",
      "pub func TextToSnake(text: str): str",
      "pub func TextToUpper(text: str): str",
      "pub func ToggleBorderlessWindowed()",
      "pub func ToggleFullscreen()",
      "pub func UnloadDirectoryFiles(files: FilePathList)",
      "pub func UnloadDroppedFiles(files: FilePathList)",
      "pub func UnloadFileData(data: u8*)",
      "pub func UnloadFileText(text: str)",
      "pub func UnloadFont(font: Font)",
      "pub func UnloadImage(image: Image)",
      "pub func UnloadImageColors(colors: Color*)",
      "pub func UnloadMaterial(material: Material)",
      "pub func UnloadMesh(mesh: Mesh)",
      "pub func UnloadModel(model: Model)",
      "pub func UnloadModelAnimation(anim: ModelAnimation)",
      "pub func UnloadModelAnimations(animations: ModelAnimation*, animCount: int)",
      "pub func UnloadMusicStream(music: Music)",
      "pub func UnloadRenderTexture(target: RenderTexture)",
      "pub func UnloadShader(shader: Shader)",
      "pub func UnloadSound(sound: Sound)",
      "pub func UnloadSoundAlias(alias: Sound)",
      "pub func UnloadTexture(texture: Texture)",
      "pub func UnloadWave(wave: Wave)",
      "pub func UnloadWaveSamples(samples: f32*)",
      "pub func UpdateCamera(camera &: Camera3D, mode: int)",
      "pub func UpdateCameraPro(camera &: Camera3D, movement: Vector3, rotation: Vector3, zoom: f32)",
      "pub func UpdateCameraPro(camera &: Camera3D, movement: Vector3, rotation: Vector3, zoom: f64):",
      "pub func UpdateModelAnimation(model: Model, anim: ModelAnimation, frame: int)",
      "pub func UpdateMusicStream(music: Music)",
      "pub func UpdateSound(sound: Sound, data: void*, sampleCount: int)",
      "pub func UpdateTexture(texture: Texture, pixels: void*)",
      "pub func UpdateTextureRec(texture: Texture, rec: Rectangle, pixels: void*)",
      "pub func UploadMesh(mesh &: Mesh, dynamic: bool)",
      "pub func Vec2(x: f64, y: f64): Vector2:",
      "pub func Vec3(x: f64, y: f64, z: f64): Vector3:",
      "pub func Vec4(x: f64, y: f64, z: f64, w: f64): Vector4:",
      "pub func Violet(): Color:",
      "pub func WaitTime(seconds: f64)",
      "pub func WaveCopy(wave: Wave): Wave",
      "pub func WaveCrop(wave &: Wave, initFrame: int, finalFrame: int)",
      "pub func WaveFormat(wave &: Wave, sampleRate: int, sampleSize: int, channels: int)",
      "pub func White(): Color:",
      "pub func WindowShouldClose(): bool",
      "pub func Yellow(): Color:",
      "pub struct AudioStream:",
      "pub struct BoneInfo:",
      "pub struct BoundingBox:",
      "pub struct Camera2D:",
      "pub struct Camera3D:",
      "pub struct Color:",
      "pub struct FilePathList:",
      "pub struct Font:",
      "pub struct GlyphInfo:",
      "pub struct Image:",
      "pub struct Material:",
      "pub struct MaterialMap:",
      "pub struct Matrix:",
      "pub struct Mesh:",
      "pub struct Model:",
      "pub struct ModelAnimation:",
      "pub struct Music:",
      "pub struct NPatchInfo:",
      "pub struct Ray:",
      "pub struct RayCollision:",
      "pub struct Rectangle:",
      "pub struct RenderTexture:",
      "pub struct Shader:",
      "pub struct Sound:",
      "pub struct Texture:",
      "pub struct Transform:",
      "pub struct Vector2:",
      "pub struct Vector3:",
      "pub struct Vector4:",
      "pub struct Wave:"
    ],
    "gui.reactive": [
      "pub enum EasingKind:",
      "pub enum ModelChange:",
      "pub enum StepPosition:",
      "pub func AdvanceTime(ms: i64):",
      "pub func Animate(spec: Animation):",
      "pub func Animate(spec: Animation):",
      "pub func Animate(spec: Animation):",
      "pub func AnimationsRunning(): bool:",
      "pub func At(t: f64): f64:",
      "pub func Batch(body: func ()):",
      "pub func BeginBatch():",
      "pub func Bind(calc: func () T):",
      "pub func Bind(calc: func () bool):",
      "pub func Bind(calc: func () f64):",
      "pub func Bind(calc: func () i64):",
      "pub func Bind(calc: func () int):",
      "pub func Bind(calc: func () str):",
      "pub func BindCopy(calc: func () str):",
      "pub func Clear():",
      "pub func ConstBool(v: bool): BoolProp:",
      "pub func ConstF64(v: f64): F64Prop:",
      "pub func ConstI64(v: i64): I64Prop:",
      "pub func ConstInt(v: int): IntProp:",
      "pub func ConstStr(v: str): StrProp:",
      "pub func CubicBezier(x1: f64, y1: f64, x2: f64, y2: f64): Easing:",
      "pub func DirtyMarks(): int:",
      "pub func Ease(): Easing:",
      "pub func EaseIn(): Easing:",
      "pub func EaseInOut(): Easing:",
      "pub func EaseOut(): Easing:",
      "pub func EndBatch():",
      "pub func ErrorCount(): int:",
      "pub func Evaluations(): int:",
      "pub func Free():",
      "pub func Free():",
      "pub func Free():",
      "pub func Free():",
      "pub func Free():",
      "pub func Free():",
      "pub func Free():",
      "pub func Free():",
      "pub func Free():",
      "pub func Get(): T:",
      "pub func Get(): bool:",
      "pub func Get(): f64:",
      "pub func Get(): i64:",
      "pub func Get(): int:",
      "pub func Get(): str:",
      "pub func Get(i: int): T:",
      "pub func HasBinding(): bool:",
      "pub func HasBinding(): bool:",
      "pub func HasBinding(): bool:",
      "pub func HasBinding(): bool:",
      "pub func HasBinding(): bool:",
      "pub func HasBinding(): bool:",
      "pub func InBatch(): bool:",
      "pub func Insert(i: int, v: T):",
      "pub func IsDirty(): bool:",
      "pub func IsDirty(): bool:",
      "pub func IsDirty(): bool:",
      "pub func IsDirty(): bool:",
      "pub func IsDirty(): bool:",
      "pub func IsDirty(): bool:",
      "pub func LastError(): str:",
      "pub func Len(): int:",
      "pub func Linear(): Easing:",
      "pub func Link(a: BoolProp, b: BoolProp):",
      "pub func Link(a: F64Prop, b: F64Prop):",
      "pub func Link(a: I64Prop, b: I64Prop):",
      "pub func Link(a: IntProp, b: IntProp):",
      "pub func Link(a: StrProp, b: StrProp):",
      "pub func Listen(cb: func (ModelEvent)): int:",
      "pub func LiveEdges(): int:",
      "pub func LiveNodes(): int:",
      "pub func Name(name: str): BoolProp:",
      "pub func Name(name: str): F64Prop:",
      "pub func Name(name: str): I64Prop:",
      "pub func Name(name: str): IntProp:",
      "pub func Name(name: str): Prop<T>:",
      "pub func Name(name: str): StrProp:",
      "pub func Name(name: str): Tracker:",
      "pub func NewBool(v: bool): BoolProp:",
      "pub func NewF64(v: f64): F64Prop:",
      "pub func NewI64(v: i64): I64Prop:",
      "pub func NewInt(v: int): IntProp:",
      "pub func NewListModel<T>(): ListModel<T>:",
      "pub func NewProp<T>(v: T): Prop<T>:",
      "pub func NewStr(v: str): StrProp:",
      "pub func Now(): i64:",
      "pub func OnChange(body: func ()): Handler:",
      "pub func OnChange(body: func ()): Handler:",
      "pub func OnChange(p: BoolProp, body: func ()): Handler:",
      "pub func OnChange(p: F64Prop, body: func ()): Handler:",
      "pub func OnChange(p: I64Prop, body: func ()): Handler:",
      "pub func OnChange(p: IntProp, body: func ()): Handler:",
      "pub func OnChange(p: StrProp, body: func ()): Handler:",
      "pub func ParseEasing(text: str, fallback: Easing): Easing:",
      "pub func Peek(): T:",
      "pub func Peek(): bool:",
      "pub func Peek(): f64:",
      "pub func Peek(): i64:",
      "pub func Peek(): int:",
      "pub func Peek(): str:",
      "pub func PendingHandlers(): int:",
      "pub func Push(v: T):",
      "pub func Refresh(): bool:",
      "pub func Remove(i: int, count: int):",
      "pub func Replace(rows: Vector<T>):",
      "pub func Reset():",
      "pub func RunPendingHandlers(): int:",
      "pub func RunningAnimations(): int:",
      "pub func Set(i: int, v: T):",
      "pub func Set(v: T):",
      "pub func Set(v: bool):",
      "pub func Set(v: f64):",
      "pub func Set(v: i64):",
      "pub func Set(v: int):",
      "pub func Set(v: str):",
      "pub func SetErrorPrinting(enabled: bool):",
      "pub func SetTime(ms: i64):",
      "pub func Steps(count: int, position: StepPosition): Easing:",
      "pub func Track(body: func ()): Tracker:",
      "pub func Track(body: func (), on_dirty: func ()): Tracker:",
      "pub func Unlink():",
      "pub func Unlink():",
      "pub func Unlink():",
      "pub func Unlink():",
      "pub func Unlink():",
      "pub func Unlisten(id: int):",
      "pub struct Animation:",
      "pub struct BoolProp:",
      "pub struct Easing:",
      "pub struct F64Prop:",
      "pub struct Handler:",
      "pub struct I64Prop:",
      "pub struct IntProp:",
      "pub struct ListModel<T>:",
      "pub struct ModelEvent:",
      "pub struct Prop<T>:",
      "pub struct StrProp:",
      "pub struct Tracker:"
    ],
    "gui.style": [
      "pub const EASE_CUBIC := 6",
      "pub const EASE_EASE := 2",
      "pub const EASE_IN := 3",
      "pub const EASE_IN_OUT := 5",
      "pub const EASE_LINEAR := 1",
      "pub const EASE_OUT := 4",
      "pub const EASE_SPRING := 8",
      "pub const EASE_STEPS := 7",
      "pub const ITEM_ANGLE := 6",
      "pub const ITEM_BOOL := 4",
      "pub const ITEM_COLOR := 7",
      "pub const ITEM_EASE := 11",
      "pub const ITEM_INT := 3",
      "pub const ITEM_LEN := 1",
      "pub const ITEM_NUM := 2",
      "pub const ITEM_PAINT := 10",
      "pub const ITEM_PROP := 13",
      "pub const ITEM_STR := 9",
      "pub const ITEM_TIME := 5",
      "pub const ITEM_TRACK := 12",
      "pub const ITEM_WORD := 8",
      "pub const KEYWORD_COUNT := 114",
      "pub const KIND_ANGLE := 6",
      "pub const KIND_BOOL := 2",
      "pub const KIND_BORDER := 10",
      "pub const KIND_COLOR := 7",
      "pub const KIND_FONTS := 15",
      "pub const KIND_INT := 4",
      "pub const KIND_LENGTH := 5",
      "pub const KIND_NUMBER := 3",
      "pub const KIND_PAINT := 8",
      "pub const KIND_PROPS := 14",
      "pub const KIND_SHADOW := 11",
      "pub const KIND_STRINGS := 16",
      "pub const KIND_TEXT_SHADOW := 12",
      "pub const KIND_TRACKS := 9",
      "pub const KIND_TRANSITION := 13",
      "pub const KIND_WORD := 1",
      "pub const KW_ABSOLUTE := 23",
      "pub const KW_ALL := 4",
      "pub const KW_AROUND := 21",
      "pub const KW_AUTO := 1",
      "pub const KW_BASELINE := 19",
      "pub const KW_BETWEEN := 20",
      "pub const KW_BLACK := 84",
      "pub const KW_BOLD := 83",
      "pub const KW_BOTTOM := 27",
      "pub const KW_CAPITALIZE := 95",
      "pub const KW_CENTER := 16",
      "pub const KW_CIRCLE := 104",
      "pub const KW_COLOR := 60",
      "pub const KW_COLOR_BURN := 53",
      "pub const KW_COLOR_DODGE := 52",
      "pub const KW_COLUMN := 7",
      "pub const KW_COLUMN_DENSE := 14",
      "pub const KW_CONTAIN := 38",
      "pub const KW_COVER := 37",
      "pub const KW_CROSSHAIR := 71",
      "pub const KW_DARKEN := 50",
      "pub const KW_DASHED := 42",
      "pub const KW_DEFAULT := 62",
      "pub const KW_DENSE := 12",
      "pub const KW_DIFFERENCE := 56",
      "pub const KW_DOTTED := 43",
      "pub const KW_DOUBLE := 44",
      "pub const KW_EASE := 100",
      "pub const KW_EASE_IN := 101",
      "pub const KW_EASE_IN_OUT := 103",
      "pub const KW_EASE_OUT := 102",
      "pub const KW_ELLIPSE := 105",
      "pub const KW_END := 17",
      "pub const KW_EVENLY := 22",
      "pub const KW_EXCLUSION := 57",
      "pub const KW_FALSE := 6",
      "pub const KW_FILL := 30",
      "pub const KW_FIT := 31",
      "pub const KW_FIXED := 24",
      "pub const KW_FLOW := 11",
      "pub const KW_GRAB := 66",
      "pub const KW_GRABBING := 67",
      "pub const KW_GRID := 9",
      "pub const KW_HARD_LIGHT := 54",
      "pub const KW_HELP := 72",
      "pub const KW_HIDDEN := 35",
      "pub const KW_HUE := 58",
      "pub const KW_INSET := 46",
      "pub const KW_JUSTIFY := 89",
      "pub const KW_KEEP := 98",
      "pub const KW_LEFT := 28",
      "pub const KW_LIGHT := 80",
      "pub const KW_LIGHTEN := 51",
      "pub const KW_LINEAR := 99",
      "pub const KW_LOWER := 94",
      "pub const KW_LTR := 97",
      "pub const KW_LUMINOSITY := 61",
      "pub const KW_MAX_CONTENT := 33",
      "pub const KW_MEDIUM := 81",
      "pub const KW_MIN_CONTENT := 32",
      "pub const KW_MONO := 87",
      "pub const KW_MOVE := 65",
      "pub const KW_MULTIPLY := 47",
      "pub const KW_NONE := 2",
      "pub const KW_NORMAL := 3",
      "pub const KW_NOT_ALLOWED := 68",
      "pub const KW_OVERLAY := 49",
      "pub const KW_OVERLINE := 91",
      "pub const KW_POINTER := 63",
      "pub const KW_PROGRESS := 70",
      "pub const KW_RESIZE := 73",
      "pub const KW_RESIZE_X := 74",
      "pub const KW_RESIZE_Y := 75",
      "pub const KW_RIGHT := 29",
      "pub const KW_ROW := 8",
      "pub const KW_ROW_DENSE := 13",
      "pub const KW_RTL := 96",
      "pub const KW_SANS := 85",
      "pub const KW_SATURATION := 59",
      "pub const KW_SCALE_DOWN := 78",
      "pub const KW_SCREEN := 48",
      "pub const KW_SCROLL := 36",
      "pub const KW_SEMIBOLD := 82",
      "pub const KW_SERIF := 86",
      "pub const KW_SOFT_LIGHT := 55",
      "pub const KW_SOLID := 41",
      "pub const KW_STACK := 10",
      "pub const KW_START := 15",
      "pub const KW_STICKY := 25",
      "pub const KW_STRETCH := 18",
      "pub const KW_STRIKE := 92",
      "pub const KW_SYSTEM := 88",
      "pub const KW_TEXT := 64",
      "pub const KW_THIN := 79",
      "pub const KW_TOP := 26",
      "pub const KW_TO_BOTTOM := 107",
      "pub const KW_TO_BOTTOM_LEFT := 112",
      "pub const KW_TO_BOTTOM_RIGHT := 113",
      "pub const KW_TO_LEFT := 108",
      "pub const KW_TO_RIGHT := 109",
      "pub const KW_TO_TOP := 106",
      "pub const KW_TO_TOP_LEFT := 110",
      "pub const KW_TO_TOP_RIGHT := 111",
      "pub const KW_TRUE := 5",
      "pub const KW_UNDERLINE := 90",
      "pub const KW_UPPER := 93",
      "pub const KW_VISIBLE := 34",
      "pub const KW_WAIT := 69",
      "pub const KW_WAVY := 45",
      "pub const KW_X := 39",
      "pub const KW_Y := 40",
      "pub const KW_ZOOM_IN := 76",
      "pub const KW_ZOOM_OUT := 77",
      "pub const PAINT_COLOR := 1",
      "pub const PAINT_CONIC := 4",
      "pub const PAINT_IMAGE := 5",
      "pub const PAINT_LINEAR := 2",
      "pub const PAINT_RADIAL := 3",
      "pub const PROP_COUNT := 137",
      "pub const P_ACCENT := 110",
      "pub const P_ALIGN := 2",
      "pub const P_ALIGN_CONTENT := 4",
      "pub const P_ALIGN_SELF := 15",
      "pub const P_ASPECT_RATIO := 37",
      "pub const P_AUTO_COLUMNS := 9",
      "pub const P_AUTO_FLOW := 11",
      "pub const P_AUTO_ROWS := 10",
      "pub const P_BACKDROP_BLUR := 92",
      "pub const P_BACKDROP_BRIGHTNESS := 93",
      "pub const P_BACKDROP_CONTRAST := 94",
      "pub const P_BACKDROP_GRAYSCALE := 95",
      "pub const P_BACKDROP_HUE_ROTATE := 99",
      "pub const P_BACKDROP_INVERT := 98",
      "pub const P_BACKDROP_SATURATE := 96",
      "pub const P_BACKDROP_SEPIA := 97",
      "pub const P_BACKGROUND := 61",
      "pub const P_BACKGROUND_POSITION := 63",
      "pub const P_BACKGROUND_REPEAT := 64",
      "pub const P_BACKGROUND_SIZE := 62",
      "pub const P_BASIS := 14",
      "pub const P_BLEND := 100",
      "pub const P_BLUR := 84",
      "pub const P_BORDER := 65",
      "pub const P_BORDER_BOTTOM := 67",
      "pub const P_BORDER_COLOR := 74",
      "pub const P_BORDER_END := 69",
      "pub const P_BORDER_LEFT := 70",
      "pub const P_BORDER_RIGHT := 71",
      "pub const P_BORDER_START := 68",
      "pub const P_BORDER_STYLE := 73",
      "pub const P_BORDER_TOP := 66",
      "pub const P_BORDER_WIDTH := 72",
      "pub const P_BOTTOM := 24",
      "pub const P_BRIGHTNESS := 85",
      "pub const P_CARET := 111",
      "pub const P_CLIP := 60",
      "pub const P_COLOR := 114",
      "pub const P_COLUMN := 17",
      "pub const P_COLUMNS := 7",
      "pub const P_COLUMN_SPAN := 19",
      "pub const P_CONTRAST := 86",
      "pub const P_CURSOR := 106",
      "pub const P_DECORATION := 123",
      "pub const P_DECORATION_COLOR := 124",
      "pub const P_DECORATION_STYLE := 125",
      "pub const P_DECORATION_THICKNESS := 126",
      "pub const P_DIRECTION := 131",
      "pub const P_ELLIPSIS := 130",
      "pub const P_END := 26",
      "pub const P_FONT := 115",
      "pub const P_FONT_FEATURES := 134",
      "pub const P_FONT_SIZE := 116",
      "pub const P_FONT_WEIGHT := 117",
      "pub const P_GAP := 1",
      "pub const P_GRAYSCALE := 87",
      "pub const P_GROW := 12",
      "pub const P_HEIGHT := 32",
      "pub const P_HUE_ROTATE := 91",
      "pub const P_IMAGE_FIT := 109",
      "pub const P_INSET := 29",
      "pub const P_INTERACTIVE := 107",
      "pub const P_INVERT := 90",
      "pub const P_ITALIC := 118",
      "pub const P_JUSTIFY := 3",
      "pub const P_JUSTIFY_SELF := 16",
      "pub const P_LAYER := 30",
      "pub const P_LAYOUT := 0",
      "pub const P_LEFT := 27",
      "pub const P_LETTER_SPACING := 120",
      "pub const P_LINE_HEIGHT := 119",
      "pub const P_MARGIN := 47",
      "pub const P_MARGIN_BOTTOM := 49",
      "pub const P_MARGIN_END := 51",
      "pub const P_MARGIN_LEFT := 52",
      "pub const P_MARGIN_RIGHT := 53",
      "pub const P_MARGIN_START := 50",
      "pub const P_MARGIN_TOP := 48",
      "pub const P_MARGIN_X := 54",
      "pub const P_MARGIN_Y := 55",
      "pub const P_MAX_HEIGHT := 36",
      "pub const P_MAX_LINES := 129",
      "pub const P_MAX_WIDTH := 35",
      "pub const P_MIN_HEIGHT := 34",
      "pub const P_MIN_WIDTH := 33",
      "pub const P_OPACITY := 83",
      "pub const P_ORDER := 21",
      "pub const P_ORIGIN := 105",
      "pub const P_OUTLINE := 80",
      "pub const P_OUTLINE_OFFSET := 81",
      "pub const P_OVERFLOW := 56",
      "pub const P_OVERFLOW_X := 57",
      "pub const P_OVERFLOW_Y := 58",
      "pub const P_PADDING := 38",
      "pub const P_PADDING_BOTTOM := 40",
      "pub const P_PADDING_END := 42",
      "pub const P_PADDING_LEFT := 43",
      "pub const P_PADDING_RIGHT := 44",
      "pub const P_PADDING_START := 41",
      "pub const P_PADDING_TOP := 39",
      "pub const P_PADDING_X := 45",
      "pub const P_PADDING_Y := 46",
      "pub const P_POSITION := 22",
      "pub const P_RADIUS := 75",
      "pub const P_RADIUS_BOTTOM_END := 78",
      "pub const P_RADIUS_BOTTOM_START := 79",
      "pub const P_RADIUS_TOP_END := 77",
      "pub const P_RADIUS_TOP_START := 76",
      "pub const P_REVERSE := 6",
      "pub const P_RIGHT := 28",
      "pub const P_ROTATE := 102",
      "pub const P_ROW := 18",
      "pub const P_ROWS := 8",
      "pub const P_ROW_SPAN := 20",
      "pub const P_SATURATE := 88",
      "pub const P_SCALE := 103",
      "pub const P_SCROLLBAR := 112",
      "pub const P_SCROLLBAR_COLOR := 113",
      "pub const P_SELECTABLE := 108",
      "pub const P_SEPIA := 89",
      "pub const P_SHADOW := 82",
      "pub const P_SHRINK := 13",
      "pub const P_SKEW := 104",
      "pub const P_START := 25",
      "pub const P_TEXT_ALIGN := 122",
      "pub const P_TEXT_SHADOW := 133",
      "pub const P_TOP := 23",
      "pub const P_TRANSFORM_TEXT := 127",
      "pub const P_TRANSITION := 135",
      "pub const P_TRANSITION_PROPERTIES := 136",
      "pub const P_TRANSLATE := 101",
      "pub const P_VISIBLE := 59",
      "pub const P_WHITE_SPACE := 132",
      "pub const P_WIDTH := 31",
      "pub const P_WORD_SPACING := 121",
      "pub const P_WRAP := 5",
      "pub const P_WRAP_TEXT := 128",
      "pub const TRACK_FIT := 3",
      "pub const TRACK_MINMAX := 2",
      "pub const TRACK_REPEAT := 4",
      "pub const TRACK_SIZE := 1",
      "pub func AddStop(c: color.Color, at: Len, has_at: bool): Paint:",
      "pub func And(it: Item): Value:",
      "pub func Animatable(id: int): bool:",
      "pub func BaseCss(): str:",
      "pub func ColorOf(r: f64, g: f64, b: f64, a: f64): color.Color:",
      "pub func Css(prop: int, v: Value): str:",
      "pub func CurrentColor(): color.Color:",
      "pub func Default(element: str): Style:",
      "pub func EaseAt(e: Easing, t: f64): f64:",
      "pub func Em(n: f64): Len:",
      "pub func Error(prop: int, text: str): str:",
      "pub func Format(prop: int, v: Value): str:",
      "pub func Fr(n: f64): Len:",
      "pub func Get(s: Style, prop: int): Value:",
      "pub func Gradient(kind: int, angle: f64, side: int, circle: bool, at_x: Len, at_y: Len, has_at: bool): Paint:",
      "pub func Image(path: str): Paint:",
      "pub func Info(id: int): PropInfo:",
      "pub func Inherit(parent: Style, child &: Style):",
      "pub func Inherited(id: int): bool:",
      "pub func KeywordByName(name: str): int:",
      "pub func KeywordFaName(id: int): str:",
      "pub func KeywordName(id: int): str:",
      "pub func Lerp(prop: int, a: Value, b: Value, t: f64): Value:",
      "pub func LightDark(light: color.Color, dark: color.Color): color.Color:",
      "pub func OfAngle(deg: f64): Item:",
      "pub func OfBool(b: bool): Item:",
      "pub func OfColor(c: color.Color): Item:",
      "pub func OfEase(e: Easing): Item:",
      "pub func OfInt(n: int): Item:",
      "pub func OfLen(l: Len): Item:",
      "pub func OfNum(n: f64): Item:",
      "pub func OfPaint(p: Paint): Item:",
      "pub func OfProp(prop: int): Item:",
      "pub func OfStr(s: str): Item:",
      "pub func OfTime(ms: f64): Item:",
      "pub func OfTrack(t: Track): Item:",
      "pub func OfWord(kw: int): Item:",
      "pub func One(it: Item): Value:",
      "pub func Parse(prop: int, text: str, out &: Value): bool:",
      "pub func Pct(n: f64): Len:",
      "pub func PropByName(name: str): int:",
      "pub func PropFaName(id: int): str:",
      "pub func PropKeywords(id: int): Vector<int>:",
      "pub func PropName(id: int): str:",
      "pub func Px(n: f64): Len:",
      "pub func Rem(n: f64): Len:",
      "pub func Set(s &: Style, prop: int, v: Value):",
      "pub func Source(prop: int, v: Value): str:",
      "pub func Then(it: Item): Value:",
      "pub func Vh(n: f64): Len:",
      "pub func Vmax(n: f64): Len:",
      "pub func Vmin(n: f64): Len:",
      "pub func Vw(n: f64): Len:",
      "pub struct Dim:",
      "pub struct Easing:",
      "pub struct Item:",
      "pub struct Len:",
      "pub struct Paint:",
      "pub struct PropInfo:",
      "pub struct Shadow:",
      "pub struct Stop:",
      "pub struct Style:",
      "pub struct Track:",
      "pub struct Transition:",
      "pub struct Value:"
    ],
    "gui.typeset": [
      "pub const TextDirAuto := 0",
      "pub const TextDirLTR := 1",
      "pub const TextDirRTL := 2",
      "pub enum OverflowWrap:",
      "pub enum TextAlign:",
      "pub enum WhiteSpace:",
      "pub func AddFont(fc &: FontCollection, f: Font): int:",
      "pub func AddFontBytes(fc &: FontCollection, p: void*, n: int): int:",
      "pub func AddFontDir(fc &: FontCollection, dir: str): int:",
      "pub func AddFontFile(fc &: FontCollection, path: str): int:",
      "pub func AddSystemFonts(fc &: FontCollection): int:",
      "pub func AscentPixels(f: Font, size: f64): f64:",
      "pub func BaseDirection(text: str): int:",
      "pub func CachedGlyph(c &: GlyphCache, f: Font, glyph: int, size: f64, x: f64): GlyphMask:",
      "pub func CaretRect(p: Paragraph, l: TextLayout, pos: TextPosition): TextRect:",
      "pub func DescentPixels(f: Font, size: f64): f64:",
      "pub func FaceCount(p: void*, n: int): int:",
      "pub func FaceCountIn(fc: FontCollection): int:",
      "pub func FaceFont(fc &: FontCollection, face: int): Font:",
      "pub func FaceForCodepoint(fc &: FontCollection, families: str, weight: int, italic: bool, cp: int): int:",
      "pub func FamilyName(f: Font): str:",
      "pub func FindFace(fc &: FontCollection, family: str, weight: int, italic: bool): int:",
      "pub func FontValid(f: Font): bool:",
      "pub func FreeCoverageRows(c &: CoverageRows):",
      "pub func FreeFont(f &: Font):",
      "pub func FreeFontCollection(fc &: FontCollection):",
      "pub func FreeGlyphCache(c &: GlyphCache):",
      "pub func FreeGlyphMask(m &: GlyphMask):",
      "pub func FreeLayout(l &: TextLayout):",
      "pub func FreeOutline(o &: GlyphOutline):",
      "pub func FreeParagraph(p &: Paragraph):",
      "pub func FullName(f: Font): str:",
      "pub func GlyphAdvance(f: Font, glyph: int): int:",
      "pub func GlyphBox(f: Font, glyph: int, x0 &: int, y0 &: int, x1 &: int, y1 &: int): bool:",
      "pub func GlyphHasOutline(f: Font, glyph: int): bool:",
      "pub func GlyphIndex(f: Font, codepoint: int): int:",
      "pub func GlyphMaskHash(m: GlyphMask): i64:",
      "pub func GlyphOriginX(x: f64, m: GlyphMask): int:",
      "pub func GlyphOriginY(y: f64, m: GlyphMask): int:",
      "pub func HitTest(p: Paragraph, l: TextLayout, x: f64, y: f64): TextPosition:",
      "pub func IsCFFFont(p: void*, n: int): bool:",
      "pub func IsItalic(f: Font): bool:",
      "pub func IsRTLText(text: str): bool:",
      "pub func KernAdvance(f: Font, glyph1: int, glyph2: int): int:",
      "pub func LayoutParagraph(p &: Paragraph, fc &: FontCollection, max_width: f64): TextLayout:",
      "pub func LineHeightPixels(f: Font, size: f64): f64:",
      "pub func LoadFont(path: str, ok &: bool): Font:",
      "pub func LoadFontIndex(path: str, index: int, ok &: bool): Font:",
      "pub func MaxContentWidth(p: Paragraph): f64:",
      "pub func Metrics(f: Font): FontMetrics:",
      "pub func MinContentWidth(p: Paragraph): f64:",
      "pub func MoveVisual(p: Paragraph, l: TextLayout, pos: TextPosition, right: bool): TextPosition:",
      "pub func NameString(f: Font, name_id: int): str:",
      "pub func NewFontCollection(): FontCollection:",
      "pub func NewGlyphCache(capacity_bytes: int): GlyphCache:",
      "pub func NewParagraph(fc &: FontCollection, spans: Vector<TextSpan>, style: ParagraphStyle): Paragraph:",
      "pub func NextGrapheme(p: Paragraph, offset: int): int:",
      "pub func NextWordEnd(p: Paragraph, offset: int): int:",
      "pub func NumGlyphs(f: Font): int:",
      "pub func OutlineCoverage(o: GlyphOutline, clip_width: int, clip_height: int): CoverageRows:",
      "pub func ParseFont(p: void*, n: int, ok &: bool): Font:",
      "pub func ParseFontIndex(p: void*, n: int, index: int, ok &: bool): Font:",
      "pub func PrevGrapheme(p: Paragraph, offset: int): int:",
      "pub func PrevWordStart(p: Paragraph, offset: int): int:",
      "pub func RasterizeGlyph(f: Font, glyph: int, size: f64, subpixel: int): GlyphMask:",
      "pub func ScaleFactor(f: Font, size: f64): f64:",
      "pub func SelectionRects(p: Paragraph, l: TextLayout, from: int, to_offset: int): Vector<TextRect>:",
      "pub func ShapeArabic(text: str): str:",
      "pub func ShapeText(f: Font, text: str, rtl: bool, script: str, lang: str): Vector<ShapedGlyph>:",
      "pub func SpanAt(p: Paragraph, offset: int): int:",
      "pub func StyleName(f: Font): str:",
      "pub func SubpixelOf(x: f64): int:",
      "pub func SystemFontDirs(): Vector<str>:",
      "pub func ToVisualOrder(text: str, dir: int): str:",
      "pub func TransformedOutline(f: Font, glyph: int, a: f64, b: f64, c: f64, d: f64, dx: f64, dy: f64): GlyphOutline:",
      "pub func UnitsPerEm(f: Font): int:",
      "pub func VisualCodepoints(text: str, dir: int, shape: bool): Vector<int>:",
      "pub func Weight(f: Font): int:",
      "pub struct CacheSlot:",
      "pub struct CharInfo:",
      "pub struct CoverageRows:",
      "pub struct Font:",
      "pub struct FontCollection:",
      "pub struct FontFace:",
      "pub struct FontMetrics:",
      "pub struct GlyphCache:",
      "pub struct GlyphMask:",
      "pub struct GlyphOutline:",
      "pub struct GlyphRun:",
      "pub struct LineBox:",
      "pub struct OutlinePoint:",
      "pub struct Paragraph:",
      "pub struct ParagraphGlyph:",
      "pub struct ParagraphStyle:",
      "pub struct PlacedGlyph:",
      "pub struct ShapedGlyph:",
      "pub struct ShapedRun:",
      "pub struct TextLayout:",
      "pub struct TextPosition:",
      "pub struct TextRect:",
      "pub struct TextSpan:"
    ],
    "gui.ui": [
      "pub func AddClass(name: str):",
      "pub func AddFontDir(dir: str): int:",
      "pub func AddFontFile(path: str): int:",
      "pub func Attr(name: str): str:",
      "pub func Attr(name: str, value: str):",
      "pub func BoolAttr(name: str, value: bool):",
      "pub func ById(id: str): Element:",
      "pub func Checked(): bool:",
      "pub func Class(s: str):",
      "pub func Click():",
      "pub func Close():",
      "pub func CurrentEvent(): Event:",
      "pub func CurrentWindow(): window.Window:",
      "pub func Decls(base: int, hover: int, focus: int, active: int):",
      "pub func Dir(s: str):",
      "pub func Dump(): str:",
      "pub func DumpHtml(doc: str, width: int, height: int): str:",
      "pub func Dyn(prop: str, value: str):",
      "pub func Exists(): bool:",
      "pub func Focus():",
      "pub func Frame(): paint.Canvas:",
      "pub func FrameCount(): int:",
      "pub func Fresh(): bool:",
      "pub func Handle(name: str, fn: func ()):",
      "pub func HasClass(name: str): bool:",
      "pub func Id(s: str):",
      "pub func Instance(comp: int): int:",
      "pub func Invalidate():",
      "pub func Key(s: str):",
      "pub func KeyedScope(site: int, key: str, fn: func (Builder)):",
      "pub func Lang(s: str):",
      "pub func LastDamageArea(): int:",
      "pub func LastDamageCount(): int:",
      "pub func LastLayoutCalls(): int:",
      "pub func Measure(doc: str, width: int, height: int): Profile:",
      "pub func On(event: str, fn: func ()):",
      "pub func Open(tag: str):",
      "pub func OpenUrl(url: str): bool:",
      "pub func OpenedUrls(): Vector<str>:",
      "pub func Page(path: str, view: func () str):",
      "pub func Reactive(words: int, take: func (int) i64, sites: func ()):",
      "pub func Rect(): paint.Rect:",
      "pub func Refresh():",
      "pub func RemoveClass(name: str):",
      "pub func Render(doc: str, width: int, height: int): paint.Canvas:",
      "pub func RenderCompiled(program: func () css.Program, view: func (Builder), width: int, height: int): paint.Canvas:",
      "pub func RenderPNG(doc: str, width: int, height: int, path: str): bool:",
      "pub func RenderScaled(doc: str, width: int, height: int, scale: f64): paint.Canvas:",
      "pub func RepaintAll():",
      "pub func Run(view: func () str):",
      "pub func RunCompiled(program: func () css.Program, view: func (Builder)):",
      "pub func RunCompiledWith(program: func () css.Program, view: func (Builder), options: Options):",
      "pub func RunHtml(doc: str):",
      "pub func RunHtmlWith(doc: str, options: Options):",
      "pub func RunSteps(steps: str):",
      "pub func RunWith(view: func () str, options: Options):",
      "pub func Scope(site: int, fn: func (Builder)):",
      "pub func ScopeDerive(comp: int, derive: func (int, int) int):",
      "pub func ScopeNodes(): int:",
      "pub func ScopeRuns(): int:",
      "pub func ScopeSite(site: int, comp: int, word: int, mask: i64):",
      "pub func ScopeVars(site: int, comp: int, mask: int):",
      "pub func ScrollIntoView():",
      "pub func SetAttr(name: str, value: str):",
      "pub func SetChecked(is_on: bool):",
      "pub func SetNavigator(navigator: func (str) bool):",
      "pub func SetText(text: str):",
      "pub func SetUrlOpener(opener: func (str) bool):",
      "pub func SetValue(value: str):",
      "pub func Start(view: func () str, options: Options): bool:",
      "pub func StartHtml(doc: str, options: Options): bool:",
      "pub func Step(timeout_ms: int): bool:",
      "pub func Stop():",
      "pub func Style(): css.ComputedStyle:",
      "pub func Tag(): str:",
      "pub func Text(): str:",
      "pub func Text(s: str):",
      "pub func Title(s: str):",
      "pub func TouchInstance(comp: int, slot: int):",
      "pub func TouchInstanceVars(comp: int, slot: int, mask: int):",
      "pub func Value(): str:",
      "pub struct Builder:",
      "pub struct Element:",
      "pub struct Event:",
      "pub struct Options:",
      "pub struct Profile:"
    ],
    "gui.webview": [
      "pub const ENGINE_CHROMIUM := \"chromium\"",
      "pub const ENGINE_SYSTEM := \"system\"",
      "pub const HINT_FIXED := 1",
      "pub const HINT_NONE := 0",
      "pub func Allow(origin: str, commands: Vector<str>):",
      "pub func Allowed(origin: str, command: str): bool:",
      "pub func AssetURL(path: str): str:",
      "pub func Bool(key: str): bool:",
      "pub func Center():",
      "pub func Close():",
      "pub func Command(name: str, handler: func (Call)):",
      "pub func CommandAsync(name: str, handler: func (Call)):",
      "pub func Confirm(title: str, text: str): bool:",
      "pub func Content(): void*:",
      "pub func Create(debug: bool = false, visible: bool = true): WebView:",
      "pub func CurrentConfig(): Config:",
      "pub func DataDir(): str:",
      "pub func Destroy():",
      "pub func Dispatch(work: func ()):",
      "pub func Emit(event: str, raw_json: str = \"null\"):",
      "pub func Emit(event: str, raw_json: str = \"null\"):",
      "pub func Engine(): str:",
      "pub func EngineName(): str:",
      "pub func Eval(js: str):",
      "pub func Eval(js: str):",
      "pub func EvalLater(js: str):",
      "pub func Focus():",
      "pub func Focus():",
      "pub func GetWindow(label: str): Window:",
      "pub func Has(key: str): bool:",
      "pub func Header(name: str, value: str):",
      "pub func Hide():",
      "pub func Hide():",
      "pub func Init(config: Config):",
      "pub func Init(js: str, all_frames: bool = false):",
      "pub func Int(key: str): int:",
      "pub func IsActive(): bool:",
      "pub func IsActive(): bool:",
      "pub func IsClosed(): bool:",
      "pub func IsClosed(): bool:",
      "pub func IsDevToolsEnabled(): bool:",
      "pub func IsDevToolsEnabled(): bool:",
      "pub func IsTranslateEnabled(): bool:",
      "pub func IsTranslateEnabled(): bool:",
      "pub func Item(id: str, label: str): MenuItem:",
      "pub func LastError(): str:",
      "pub func Maximize():",
      "pub func Maximize():",
      "pub func MenuHost(): void*:",
      "pub func Message(title: str, text: str):",
      "pub func Minimize():",
      "pub func Minimize():",
      "pub func NameMessageWindow(title: str):",
      "pub func Native(): void*:",
      "pub func Native(): void*:",
      "pub func Navigate(url: str):",
      "pub func Navigate(url: str):",
      "pub func NavigationIsMainFrame(): bool:",
      "pub func Notify(title: str, body: str, sound: str = \"\"): bool:",
      "pub func On(event: str, handler: func (str)):",
      "pub func OnClose(handler: func () bool):",
      "pub func OnClose(handler: func () bool):",
      "pub func OnCommand(handler: func (int)):",
      "pub func OnCopyData(handler: func (void*, int)):",
      "pub func OnCrash(handler: func ()):",
      "pub func OnCrash(handler: func ()):",
      "pub func OnLoad(handler: func (str, bool)):",
      "pub func OnLoad(handler: func (str, bool)):",
      "pub func OnMenu(handler: func (str)):",
      "pub func OnMessage(handler: func (str)):",
      "pub func OnNavigate(handler: func (str) bool):",
      "pub func OnNewWindow(handler: func (str)):",
      "pub func OnNotifyClick(handler: func ()):",
      "pub func OnResize(handler: func (int, int)):",
      "pub func OnResize(handler: func (int, int)):",
      "pub func OnTrayClick(handler: func ()):",
      "pub func OnTrayMessage(handler: func (int)):",
      "pub func Open(options: WindowOptions): Window:",
      "pub func OpenDevTools():",
      "pub func OpenDevTools():",
      "pub func OpenURL(url: str): bool:",
      "pub func OriginOf(url: str): str:",
      "pub func PackDir(dir: str, out_path: str, key: str): int:",
      "pub func PickFile(title: str = \"Open\", filter_name: str = \"\", patterns: str = \"\"): str:",
      "pub func PickFolder(title: str = \"Select a folder\"): str:",
      "pub func PostScript(): str:",
      "pub func Quit():",
      "pub func RegisterScheme(name: str, handler: func (Request) Response):",
      "pub func Reject(message: str):",
      "pub func RemoveTray():",
      "pub func RequestAttention(window: Window):",
      "pub func Resolve(raw_json: str):",
      "pub func ResolveBool(value: bool):",
      "pub func ResolveInt(value: i64):",
      "pub func ResolveNull():",
      "pub func ResolveStr(value: str):",
      "pub func Run():",
      "pub func Run():",
      "pub func RunAll():",
      "pub func SafeAssetPath(request_path: str): str:",
      "pub func SaveFile(title: str = \"Save\", default_name: str = \"\"): str:",
      "pub func SchemeOrigin(name: str): str:",
      "pub func SchemeURL(name: str, path: str): str:",
      "pub func SecretDelete(key: str):",
      "pub func SecretGet(key: str): str:",
      "pub func SecretSet(key: str, value: str): bool:",
      "pub func Separator(): MenuItem:",
      "pub func SetApp(id: str, name: str):",
      "pub func SetContextMenu(enabled: bool):",
      "pub func SetContextMenu(enabled: bool):",
      "pub func SetDataDir(dir: str):",
      "pub func SetDevToolsEnabled(enabled: bool):",
      "pub func SetDevToolsEnabled(enabled: bool):",
      "pub func SetHTML(html: str):",
      "pub func SetHTML(html: str):",
      "pub func SetIcon(path: str):",
      "pub func SetMenu(window: Window, items: Vector<MenuItem>):",
      "pub func SetMinSize(width: int, height: int):",
      "pub func SetSize(width: int, height: int):",
      "pub func SetSize(width: int, height: int, hints: int = HINT_NONE):",
      "pub func SetTitle(title: str):",
      "pub func SetTitle(title: str):",
      "pub func SetTranslateEnabled(enabled: bool):",
      "pub func SetTranslateEnabled(enabled: bool):",
      "pub func SetTray(icon: str, tooltip: str, items: Vector<MenuItem>): bool:",
      "pub func Show():",
      "pub func Show():",
      "pub func SingleInstance(on_second: func (Vector<str>)): bool:",
      "pub func Str(key: str): str:",
      "pub func Submenu(label: str, items: Vector<MenuItem>): MenuItem:",
      "pub func SupportsCommands(): bool:",
      "pub func Terminate():",
      "pub func Trace(text: str):",
      "pub func URL(): str:",
      "pub func URL(): str:",
      "pub struct Call:",
      "pub struct Config:",
      "pub struct MenuItem:",
      "pub struct Request:",
      "pub struct Response:",
      "pub struct WebView:",
      "pub struct Window:",
      "pub struct WindowOptions:"
    ],
    "gui.webview.bundle": [
      "pub func Main(args: Vector<str>): int:",
      "pub func ReadManifest(path: str, out &: Manifest): bool:",
      "pub struct Manifest:"
    ],
    "gui.webview.pack": [
      "pub func AppendPack(exe_path: str, pack_path: str): bool:",
      "pub func Count(): int:",
      "pub func Open(path: str, key: str, out &: Pack): bool:",
      "pub func PackDir(dir: str, out_path: str, key: str): int:",
      "pub func Read(name: str): Blob:",
      "pub func ReadRange(path: str, offset: i64, n: i64): void*:",
      "pub struct Blob:",
      "pub struct Pack:"
    ],
    "gui.window": [
      "pub const mod_alt := 4",
      "pub const mod_control := 2",
      "pub const mod_shift := 1",
      "pub const mod_super := 8",
      "pub enum ColorScheme:",
      "pub enum Cursor:",
      "pub enum EventKind:",
      "pub enum Key:",
      "pub enum MouseButton:",
      "pub enum WheelMode:",
      "pub func Advance(ms: int):",
      "pub func ClearTimer(id: int):",
      "pub func ClipboardText(): str:",
      "pub func Clock(): i64:",
      "pub func Close():",
      "pub func CurrentColorScheme(): ColorScheme:",
      "pub func CurrentCursor(): Cursor:",
      "pub func Focus():",
      "pub func Handle(): void*:",
      "pub func ImeRect(): Rect:",
      "pub func Inject(event: Event):",
      "pub func IsFocused(): bool:",
      "pub func IsFullscreen(): bool:",
      "pub func IsHeadless(): bool:",
      "pub func IsOpen(): bool:",
      "pub func LastDamage(): Rect:",
      "pub func LastDamageCount(): int:",
      "pub func LastError(): str:",
      "pub func Maximize():",
      "pub func Minimize():",
      "pub func Open(options: Options): Window:",
      "pub func OpenWindows(): int:",
      "pub func PixelAt(x: int, y: int): u32:",
      "pub func Poll(): Event:",
      "pub func Present(pixels: void*, width: int, height: int, stride: int, damage: Vector<Rect>): bool:",
      "pub func PresentAll(pixels: void*, width: int, height: int, stride: int): bool:",
      "pub func PresentCount(): int:",
      "pub func RequestRedraw():",
      "pub func Restore():",
      "pub func ScaleFactor(): f64:",
      "pub func SetClipboardText(text: str): bool:",
      "pub func SetCursor(cursor: Cursor):",
      "pub func SetFullscreen(enabled: bool):",
      "pub func SetIcon(pixels: void*, width: int, height: int, stride: int): bool:",
      "pub func SetImeRect(x: f64, y: f64, width: f64, height: f64):",
      "pub func SetManualClock(enabled: bool):",
      "pub func SetMaxSize(width: f64, height: f64):",
      "pub func SetMinSize(width: f64, height: f64):",
      "pub func SetSize(width: f64, height: f64):",
      "pub func SetTimer(ms: int, repeating: bool): int:",
      "pub func SetTitle(title: str):",
      "pub func ShownPixel(x: int, y: int): u32:",
      "pub func Size(): WindowSize:",
      "pub func Title(): str:",
      "pub func Wait(timeout_ms: int): Event:",
      "pub func Wake():",
      "pub struct Event:",
      "pub struct Options:",
      "pub struct Rect:",
      "pub struct Window:",
      "pub struct WindowSize:"
    ],
    "i18n": [
      "pub func DetectLocale(): str:",
      "pub func Free(c &: Catalog):",
      "pub func Has(c &: Catalog, locale: str, key: str): bool: ret _find(c, locale, key) >= 0 end",
      "pub func Interpolate(msg: str, param_names: Vector<str>, param_vals: Vector<str>): str:",
      "pub func LoadLocale(c &: Catalog, locale: str, path: str): int:",
      "pub func New(default_locale: str): Catalog: ret Catalog { fallback = default_locale } end",
      "pub func Plural(c &: Catalog, locale: str, key: str, n: i64): str:",
      "pub func RawGet(c &: Catalog, locale: str, key: str): str:",
      "pub func Set(c &: Catalog, locale: str, key: str, val: str):",
      "pub func T(c &: Catalog, locale: str, key: str): str:",
      "pub func Tf(c &: Catalog, locale: str, key: str, param_names: Vector<str>, param_vals: Vector<str>): str:",
      "pub struct Catalog:"
    ],
    "image": [
      "pub const FontHeight := 7",
      "pub const FontWidth := 5",
      "pub const FormatBMP := 2",
      "pub const FormatGIF := 5",
      "pub const FormatJPEG := 3",
      "pub const FormatPNG := 1",
      "pub const FormatUnknown := 0",
      "pub const FormatWebP := 4",
      "pub const ResizeBilinear := 1",
      "pub const ResizeNearest := 0",
      "pub const TextAlignCenter := 1",
      "pub const TextAlignLeft := 0",
      "pub const TextAlignRight := 2",
      "pub const TextDirAuto := 0",
      "pub const TextDirLTR := 1",
      "pub const TextDirRTL := 2",
      "pub const TextVAlignBaseline := 3",
      "pub const TextVAlignBottom := 2",
      "pub const TextVAlignMiddle := 1",
      "pub const TextVAlignTop := 0",
      "pub func AreaResamplerFree(r &: AreaResampler):",
      "pub func AreaResamplerPushRow(r &: AreaResampler, p: u8*, step: int):",
      "pub func AscentPixels(f: Font, size: f64): f64:",
      "pub func BaseDirection(text: str): int:",
      "pub func Blend(dst: Color, src: Color): Color:",
      "pub func BlendPixel(img &: Image, x: int, y: int, c: Color):",
      "pub func Blurred(img: Image, radius: int): Image:",
      "pub func Brightness(img &: Image, delta: int):",
      "pub func Clone(img: Image): Image:",
      "pub func ComputeHistogram(img: Image): Histogram:",
      "pub func Contrast(img &: Image, factor: f64):",
      "pub func Convert(img: Image, format: int): Image:",
      "pub func Crop(img: Image, x: int, y: int, w: int, h: int): Image:",
      "pub func Decode(p: void*, n: int, ok &: bool): Image:",
      "pub func DecodeBMP(p: void*, n: int, ok &: bool): Image:",
      "pub func DecodeGIF(p: void*, n: int, ok &: bool): Image:",
      "pub func DecodeJPEG(p: void*, n: int, ok &: bool): Image:",
      "pub func DecodePNG(p: void*, n: int, ok &: bool): Image:",
      "pub func DecodeWebP(p: void*, n: int, ok &: bool): Image:",
      "pub func DescentPixels(f: Font, size: f64): f64:",
      "pub func DetectFormat(p: void*, n: int): int:",
      "pub func Diff(a: Image, b: Image): Image:",
      "pub func DrawCircle(img &: Image, cx: int, cy: int, radius: int, c: Color):",
      "pub func DrawCircleFilled(img &: Image, cx: int, cy: int, radius: int, c: Color):",
      "pub func DrawCodepointStyled(img &: Image, codepoint: int, x: f64, y: f64, col: Color, f: Font, st: TextStyle): f64:",
      "pub func DrawGlyphStyled(img &: Image, glyph: int, x: f64, y: f64, col: Color, f: Font, st: TextStyle):",
      "pub func DrawLine(img &: Image, x0: int, y0: int, x1: int, y1: int, c: Color):",
      "pub func DrawRect(img &: Image, x: int, y: int, w: int, h: int, c: Color):",
      "pub func DrawRectFilled(img &: Image, x: int, y: int, w: int, h: int, c: Color):",
      "pub func DrawText(img &: Image, x: int, y: int, text: str, c: Color, scale: int):",
      "pub func DrawTextCentered(img &: Image, cx: f64, cy: f64, text: str, col: Color, f: Font, st: TextStyle): f64:",
      "pub func DrawTextCenteredIn(img &: Image, text: str, col: Color, f: Font, st: TextStyle): f64:",
      "pub func DrawTextFitBox(img &: Image, x: f64, y: f64, w: f64, h: f64, text: str, col: Color, f: Font, st: TextStyle, fill: f64, max_size: f64): f64:",
      "pub func DrawTextFitImage(img &: Image, text: str, col: Color, f: Font, st: TextStyle, fill: f64, max_size: f64): f64:",
      "pub func DrawTextInBox(img &: Image, x: f64, y: f64, w: f64, h: f64, text: str, col: Color, f: Font, st: TextStyle, halign: int, valign: int): f64:",
      "pub func DrawTextStyled(img &: Image, x: f64, y: f64, text: str, col: Color, f: Font, st: TextStyle): f64:",
      "pub func DrawTextTTF(img &: Image, x: f64, y: f64, text: str, col: Color, f: Font, size: f64): f64:",
      "pub func Encode(img: Image, format: int, quality: int): compress.ByteBuf:",
      "pub func EncodeBMP(img: Image): compress.ByteBuf:",
      "pub func EncodeGIF(img: Image): compress.ByteBuf:",
      "pub func EncodeJPEG(img: Image, quality: int): compress.ByteBuf:",
      "pub func EncodeJPEGOptions(img: Image, opts: JPEGOptions): compress.ByteBuf:",
      "pub func EncodePNG(img: Image): compress.ByteBuf:",
      "pub func EncodeWebP(img: Image): compress.ByteBuf:",
      "pub func EncodeWebPQuality(img: Image, quality: int): compress.ByteBuf:",
      "pub func Equals(a: Color, b: Color): bool:",
      "pub func Fill(img &: Image, c: Color):",
      "pub func FillHex(img &: Image, hex: str):",
      "pub func FindArabicFont(): str:",
      "pub func FindSystemFont(): str:",
      "pub func FitSizeToBox(f: Font, text: str, st: TextStyle, target_w: f64, target_h: f64, max_size: f64): f64:",
      "pub func FitSizeToWidth(f: Font, text: str, st: TextStyle, target_w: f64, max_size: f64): f64:",
      "pub func FlattenAlpha(img: Image, bg: Color): Image:",
      "pub func FlipHorizontal(img: Image): Image:",
      "pub func FlipVertical(img: Image): Image:",
      "pub func FontValid(f: Font): bool:",
      "pub func FormatFromExt(path: str): int:",
      "pub func Free(img &: Image):",
      "pub func FreeFont(f &: Font):",
      "pub func GetPixel(img: Image, x: int, y: int): Color:",
      "pub func GlyphAdvance(f: Font, glyph: int): int:",
      "pub func GlyphBox(f: Font, glyph: int, x0 &: int, y0 &: int, x1 &: int, y1 &: int): bool:",
      "pub func GlyphHasOutline(f: Font, glyph: int): bool:",
      "pub func GlyphIndex(f: Font, codepoint: int): int:",
      "pub func Gray(v: int): Color:",
      "pub func Grayscale(img &: Image):",
      "pub func HistogramFree(h &: Histogram):",
      "pub func HistogramGet(channel: void*, bucket: int): int:",
      "pub func InBounds(img: Image, x: int, y: int): bool:",
      "pub func Invert(img &: Image):",
      "pub func IsCFFFont(p: void*, n: int): bool:",
      "pub func IsEmpty(img: Image): bool:",
      "pub func IsGIF(p: void*, n: int): bool:",
      "pub func IsRTLText(text: str): bool:",
      "pub func IsWebP(p: void*, n: int): bool:",
      "pub func JPEGStreamFinish(s &: JPEGStream): bool:",
      "pub func JPEGStreamWrite(s &: JPEGStream, strip: Image):",
      "pub func JPEGStreamWriteRow(s &: JPEGStream, p: u8*, step: int):",
      "pub func KernAdvance(f: Font, glyph1: int, glyph2: int): int:",
      "pub func LerpColor(a: Color, b: Color, t: f64): Color:",
      "pub func LineHeightPixels(f: Font, size: f64): f64:",
      "pub func LoadFont(path: str, ok &: bool): Font:",
      "pub func LoadFontIndex(path: str, index: int, ok &: bool): Font:",
      "pub func LoadSystemFont(ok &: bool): Font:",
      "pub func Luminance(c: Color): int:",
      "pub func MeanAbsError(a: Image, b: Image): f64:",
      "pub func New(width: int, height: int): Image:",
      "pub func NewAreaResampler(src_w: int, src_h: int, dst_w: int, dst_h: int): AreaResampler:",
      "pub func NewFilled(width: int, height: int, c: Color): Image:",
      "pub func NewJPEGStream(width: int, height: int, opts: JPEGOptions): JPEGStream:",
      "pub func NumGlyphs(f: Font): int:",
      "pub func Open(path: str, ok &: bool): Image:",
      "pub func OpenBMP(path: str, ok &: bool): Image:",
      "pub func OpenGIF(path: str, ok &: bool): Image:",
      "pub func OpenJPEG(path: str, ok &: bool): Image:",
      "pub func OpenPNG(path: str, ok &: bool): Image:",
      "pub func OpenWebP(path: str, ok &: bool): Image:",
      "pub func Overlay(base &: Image, mark: Image, x: int, y: int, opacity: f64):",
      "pub func PSNR(a: Image, b: Image): f64:",
      "pub func ParseFont(p: void*, n: int, ok &: bool): Font:",
      "pub func ParseFontIndex(p: void*, n: int, index: int, ok &: bool): Font:",
      "pub func ParseHex(hex: str): Color:",
      "pub func RGB(r: int, g: int, b: int): Color:",
      "pub func RGBA(r: int, g: int, b: int, a: int): Color:",
      "pub func Resize(img: Image, new_width: int, new_height: int, method: int): Image:",
      "pub func ResizeArea(img: Image, new_width: int, new_height: int): Image:",
      "pub func ResizeBilinearFilter(img: Image, new_width: int, new_height: int): Image:",
      "pub func ResizeFill(img: Image, box_w: int, box_h: int): Image:",
      "pub func ResizeFit(img: Image, box_w: int, box_h: int): Image:",
      "pub func ResizeNearestNeighbor(img: Image, new_width: int, new_height: int): Image:",
      "pub func Rotate180(img: Image): Image:",
      "pub func RotateCCW(img: Image): Image:",
      "pub func RotateCW(img: Image): Image:",
      "pub func Save(img: Image, path: str): bool:",
      "pub func SaveBMP(img: Image, path: str): bool:",
      "pub func SaveGIF(img: Image, path: str): bool:",
      "pub func SaveJPEG(img: Image, path: str, quality: int): bool:",
      "pub func SaveJPEGOptions(img: Image, path: str, opts: JPEGOptions): bool:",
      "pub func SavePNG(img: Image, path: str): bool:",
      "pub func SaveQuality(img: Image, path: str, quality: int): bool:",
      "pub func SaveWebP(img: Image, path: str): bool:",
      "pub func Scale(img: Image, factor: f64): Image:",
      "pub func ScaleFactor(f: Font, size: f64): f64:",
      "pub func SetPixel(img &: Image, x: int, y: int, c: Color):",
      "pub func ShapeArabic(text: str): str:",
      "pub func Sharpened(img: Image, amount: f64): Image:",
      "pub func TextBounds(f: Font, text: str, st: TextStyle, x0 &: f64, y0 &: f64, x1 &: f64, y1 &: f64): bool:",
      "pub func TextInkHeight(f: Font, text: str, st: TextStyle): f64:",
      "pub func TextInkSize(f: Font, text: str, st: TextStyle, w &: f64, h &: f64): bool:",
      "pub func TextInkWidth(f: Font, text: str, st: TextStyle): f64:",
      "pub func TextWidth(text: str, scale: int): int:",
      "pub func TextWidthStyled(f: Font, text: str, st: TextStyle): f64:",
      "pub func TextWidthTTF(f: Font, text: str, size: f64): f64:",
      "pub func Threshold(img &: Image, level: int):",
      "pub func Thumbnail(img: Image, max_size: int): Image:",
      "pub func ToHex(c: Color): str:",
      "pub func ToHexRGB(c: Color): str:",
      "pub func ToVisualOrder(text: str, dir: int): str:",
      "pub func UnitsPerEm(f: Font): int:",
      "pub struct AreaResampler:",
      "pub struct Color:",
      "pub struct Font:",
      "pub struct Histogram:",
      "pub struct Image:",
      "pub struct JPEGOptions:",
      "pub struct JPEGStream:",
      "pub struct TextStyle:"
    ],
    "io": [
      "pub func AppendFile(path: str, data: str): int:",
      "pub func Close(f: File*): f.close() end",
      "pub func Copy(dst: File*, src: File*): i64:",
      "pub func EPrint(s: str): printerr s end",
      "pub func EPrintln(s: str): printerrln s end",
      "pub func Flush():",
      "pub func Input(): str: ret input () end",
      "pub func Lines(path: str): Vector<str>:",
      "pub func Read(f: File*, size: u64): str: ret f.read(size) end",
      "pub func ReadAll(f: File*): str:",
      "pub func ReadFile(path: str): str:",
      "pub func Readline(f: File*): str: ret f.readline() end",
      "pub func Seek(f: File*, offset: i64, whence: int): int: ret f.seek(offset, whence) end",
      "pub func Write(f: File*, data: str): int: ret f.write(data) end",
      "pub func WriteFile(path: str, data: str): int:",
      "pub func WriteLines(path: str, lines: Vector<str>): int:"
    ],
    "jwt": [
      "pub const JWT_HS256 := \"HS256\"",
      "pub const JWT_HS384 := \"HS384\"",
      "pub const JWT_HS512 := \"HS512\"",
      "pub func B64UrlDecode(s: str): str throws:",
      "pub func B64UrlEncode(s: str): str:",
      "pub func B64UrlEncodeBytes(p: void*, n: int): str:",
      "pub func BearerToken(ctx: i64): str:",
      "pub func Bool(t: Token, key: str): bool:",
      "pub func Check(ctx: i64, g: Guard): Token throws:",
      "pub func ClaimsJSON(c: Claims): str:",
      "pub func ClearSessionCookie(ctx: i64, g: Guard):",
      "pub func Decode(token: str): Token throws:",
      "pub func DefaultOptions(): Options:",
      "pub func ExpiresIn(c &: Claims, seconds: i64):",
      "pub func Forbidden(ctx: i64, reason: str):",
      "pub func Has(t: Token, key: str): bool:",
      "pub func HasAudience(t: Token, want: str): bool:",
      "pub func HasScope(t: Token, want: str): bool:",
      "pub func Int(t: Token, key: str): i64:",
      "pub func IsValid(token: str, secret: str, opts: Options): bool:",
      "pub func Issue(g: Guard, c: Claims, ttl: i64): str throws:",
      "pub func IssueFor(g: Guard, subject: str, ttl: i64): str throws:",
      "pub func IssuePair(g: Guard, subject: str, access_ttl: i64, refresh_ttl: i64, access &: str, refresh &: str) throws:",
      "pub func ListHas(t: Token, key: str, want: str): bool:",
      "pub func MissingCredential(ctx: i64, g: Guard):",
      "pub func NewClaims(): Claims:",
      "pub func NewGuard(secret: str): Guard:",
      "pub func NotBeforeIn(c &: Claims, seconds: i64):",
      "pub func OptionsFor(alg: str): Options:",
      "pub func ParseBearer(header_value: str): str:",
      "pub func Raw(t: Token, key: str): str:",
      "pub func Require(ctx: i64, g: Guard, t &: Token): bool:",
      "pub func RequireClaim(ctx: i64, g: Guard, key: str, value: str, t &: Token): bool:",
      "pub func RequireScope(ctx: i64, g: Guard, scope: str, t &: Token): bool:",
      "pub func RequireSubject(ctx: i64, g: Guard, subject: str, t &: Token): bool:",
      "pub func SecondsRemaining(t: Token): i64:",
      "pub func SetBool(c &: Claims, key: str, value: bool):",
      "pub func SetInt(c &: Claims, key: str, value: i64):",
      "pub func SetRaw(c &: Claims, key: str, raw: str):",
      "pub func SetSessionCookie(ctx: i64, g: Guard, token: str, max_age: int):",
      "pub func SetSessionCookieInsecure(ctx: i64, g: Guard, token: str, max_age: int):",
      "pub func SetStr(c &: Claims, key: str, value: str):",
      "pub func Sign(c: Claims, alg: str, secret: str): str throws:",
      "pub func SignHS256(c: Claims, secret: str): str throws:",
      "pub func SignHS384(c: Claims, secret: str): str throws:",
      "pub func SignHS512(c: Claims, secret: str): str throws:",
      "pub func SignJSON(payload_json: str, alg: str, kid: str, secret: str): str throws:",
      "pub func SignWithKid(c: Claims, alg: str, kid: str, secret: str): str throws:",
      "pub func SignatureOf(signing_input: str, alg: str, secret: str): str:",
      "pub func Str(t: Token, key: str): str:",
      "pub func TokenFrom(ctx: i64, g: Guard): str:",
      "pub func Unauthorized(ctx: i64, g: Guard, reason: str):",
      "pub func Verify(token: str, secret: str, opts: Options): Token throws:",
      "pub func VerifyHS256(token: str, secret: str): Token throws:",
      "pub pure func DigestSize(alg: str): int:",
      "pub pure func IsSupportedAlg(alg: str): bool:",
      "pub struct Claims:",
      "pub struct Guard:",
      "pub struct Options:",
      "pub struct Token:"
    ],
    "layoutgen": [
      "pub func ClassAttr(n: Node, extra: str): str:",
      "pub func Emit(o: Output):",
      "pub func Escape(s: str): str:",
      "pub func Get(n: Node, key: str): str:",
      "pub func Has(n: Node, key: str): bool:",
      "pub func Parent(n: Node): str:",
      "pub func Set(n &: Node, key: str, value: str):",
      "pub func jalali_date(n: Node): Output:",
      "pub struct Node:",
      "pub struct Output:"
    ],
    "llvm": [
      "pub const CODEGEN_FILE_ASSEMBLY := 0",
      "pub const CODEGEN_FILE_OBJECT := 1",
      "pub const CODEGEN_LEVEL_AGGRESSIVE := 3",
      "pub const CODEGEN_LEVEL_DEFAULT := 2",
      "pub const CODEGEN_LEVEL_LESS := 1",
      "pub const CODEGEN_LEVEL_NONE := 0",
      "pub const CODE_MODEL_DEFAULT := 0",
      "pub const INT_EQ := 32",
      "pub const INT_NE := 33",
      "pub const INT_SGE := 39",
      "pub const INT_SGT := 38",
      "pub const INT_SLE := 41",
      "pub const INT_SLT := 40",
      "pub const INT_UGE := 35",
      "pub const INT_UGT := 34",
      "pub const INT_ULE := 37",
      "pub const INT_ULT := 36",
      "pub const LINKAGE_EXTERNAL := 0",
      "pub const LINKAGE_INTERNAL := 8",
      "pub const LINKAGE_PRIVATE := 9",
      "pub const LLD_COFF := 2",
      "pub const LLD_ELF := 0",
      "pub const LLD_MACHO := 3",
      "pub const LLD_MINGW := 1",
      "pub const LLD_WASM := 4",
      "pub const OPT_O0 := 0",
      "pub const OPT_O1 := 1",
      "pub const OPT_O2 := 2",
      "pub const OPT_O3 := 3",
      "pub const OPT_OS := 4",
      "pub const OPT_OZ := 5",
      "pub const OUT_ASM := 1",
      "pub const OUT_BITCODE := 3",
      "pub const OUT_EXEC := 4",
      "pub const OUT_IR := 0",
      "pub const OUT_JIT := 5",
      "pub const OUT_OBJ := 2",
      "pub const RELOC_DEFAULT := 0",
      "pub const RELOC_PIC := 2",
      "pub const VERIFY_RETURN_STATUS := 2",
      "pub func Add(b: Builder, l: Value, r: Value, name: str): Value:",
      "pub func AddFunction(mod: Module, name: str, fnty: Type): Value:",
      "pub func AddGlobal(mod: Module, ty: Type, name: str): Value:",
      "pub func AddIncoming(phi: Value, vals: Vector<Value>, blocks: Vector<BasicBlock>):",
      "pub func Alloca(b: Builder, ty: Type, name: str): Value:",
      "pub func AppendBlock(c: Context, fn: Value, name: str): BasicBlock:",
      "pub func ApplyDataLayout(mod: Module, tm: TargetMachine):",
      "pub func ArrayType(elem: Type, n: i64): Type:",
      "pub func Available(): bool:",
      "pub func Br(b: Builder, dest: BasicBlock): Value:",
      "pub func Call(b: Builder, fnty: Type, fn: Value, args: Vector<Value>, name: str): Value:",
      "pub func CanLinkTriple(t: str): bool:",
      "pub func CodeGenLevelOf(opt_level: int): int:",
      "pub func CondBr(b: Builder, cond: Value, t: BasicBlock, f: BasicBlock): Value:",
      "pub func ConstInt(ty: Type, v: i64): Value:",
      "pub func ConstReal(ty: Type, v: f64): Value:",
      "pub func DefaultTriple(): str:",
      "pub func DoubleType(c: Context): Type: ret Type { handle = LLVMDoubleTypeInContext(c.handle) } end",
      "pub func EmitAsm(mod: Module, tm: TargetMachine, path: str): EmitResult:",
      "pub func EmitBitcode(mod: Module, path: str): EmitResult:",
      "pub func EmitObject(mod: Module, tm: TargetMachine, path: str): EmitResult:",
      "pub func FloatType(c: Context): Type: ret Type { handle = LLVMFloatTypeInContext(c.handle) } end",
      "pub func FreeBuilder(b: Builder): LLVMDisposeBuilder(b.handle) end",
      "pub func FreeContext(ctx: Context):",
      "pub func FreeModule(mod: Module):",
      "pub func FreeTargetMachine(tm: TargetMachine):",
      "pub func FunctionType(ret_ty: Type, params: Vector<Type>, vararg: bool): Type:",
      "pub func GlobalString(b: Builder, s: str, name: str): Value:",
      "pub func HostLinkTriple(): str:",
      "pub func ICmp(b: Builder, pred: int, l: Value, r: Value, name: str): Value:",
      "pub func InitTargets():",
      "pub func InsertBlock(b: Builder): BasicBlock:",
      "pub func Int16Type(c: Context): Type: ret Type { handle = LLVMInt16TypeInContext(c.handle) } end",
      "pub func Int1Type(c: Context): Type: ret Type { handle = LLVMInt1TypeInContext(c.handle) } end",
      "pub func Int32Type(c: Context): Type: ret Type { handle = LLVMInt32TypeInContext(c.handle) } end",
      "pub func Int64Type(c: Context): Type: ret Type { handle = LLVMInt64TypeInContext(c.handle) } end",
      "pub func Int8Type(c: Context): Type: ret Type { handle = LLVMInt8TypeInContext(c.handle) } end",
      "pub func Link(flavor: int, argv: void*, argc: int): bool:",
      "pub func LinkAuto(obj: str, out_path: str, opts: Options): LinkResult:",
      "pub func LinkElf(obj: str, out_path: str, opts: Options): LinkResult:",
      "pub func LinkExternal(obj: str, out_path: str, opts: Options): LinkResult:",
      "pub func LinkMingw(obj: str, out_path: str, opts: Options): LinkResult:",
      "pub func LinkWasi(obj: str, out_path: str, opts: Options): LinkResult:",
      "pub func LldAvailable(): bool:",
      "pub func Load(b: Builder, ty: Type, ptr: Value, name: str): Value:",
      "pub func ModuleToString(mod: Module): str:",
      "pub func Mul(b: Builder, l: Value, r: Value, name: str): Value:",
      "pub func NamedFunction(mod: Module, name: str): Value:",
      "pub func NewBuilder(c: Context): Builder:",
      "pub func NewContext(): Context:",
      "pub func NewModule(ctx: Context, name: str): Module:",
      "pub func NewTargetMachine(triple: str, opt_level: int, native_cpu: bool): TargetMachineResult:",
      "pub func OptimizeEmitParallel(mod: Module, tm: TargetMachine, opt_level: int, parts: int, out_prefix: str): ParallelResult:",
      "pub func OptionsDefault(): Options:",
      "pub func ParallelJobs(): int:",
      "pub func ParallelPartitions(mod: Module, jobs: int): int:",
      "pub func Param(fn: Value, idx: int): Value:",
      "pub func ParseIR(ll_path: str): ParseResult:",
      "pub func PassPipelineOf(opt_level: int): str:",
      "pub func Phi(b: Builder, ty: Type, name: str): Value:",
      "pub func PointerType(c: Context): Type: ret Type { handle = LLVMPointerTypeInContext(c.handle, 0) } end",
      "pub func PositionAtEnd(b: Builder, bb: BasicBlock): LLVMPositionBuilderAtEnd(b.handle, bb.handle) end",
      "pub func Ret(b: Builder, v: Value): Value:",
      "pub func RetVoid(b: Builder): Value:",
      "pub func Run(ll_path: str, opts: Options): Output:",
      "pub func RunJIT(ll_path: str): RunResult:",
      "pub func RunJITArgs(ll_path: str, args: Vector<str>): RunResult:",
      "pub func RunOpt(mod: Module, tm: TargetMachine, opt_level: int): OptResult:",
      "pub func SDiv(b: Builder, l: Value, r: Value, name: str): Value:",
      "pub func SRem(b: Builder, l: Value, r: Value, name: str): Value:",
      "pub func SetGlobalConstant(g: Value, flag: bool): LLVMSetGlobalConstant(g.handle, flag ? 1 : 0) end",
      "pub func SetInitializer(g: Value, v: Value): LLVMSetInitializer(g.handle, v.handle) end",
      "pub func SetLinkage(v: Value, linkage: int): LLVMSetLinkage(v.handle, linkage) end",
      "pub func SetTargetTriple(mod: Module, triple: str):",
      "pub func Store(b: Builder, val: Value, ptr: Value): Value:",
      "pub func Sub(b: Builder, l: Value, r: Value, name: str): Value:",
      "pub func TargetTripleOf(mod: Module): str:",
      "pub func Verify(mod: Module): VerifyResult:",
      "pub func VoidType(c: Context): Type: ret Type { handle = LLVMVoidTypeInContext(c.handle) } end",
      "pub struct BasicBlock:",
      "pub struct Builder:",
      "pub struct Context:",
      "pub struct EmitResult:",
      "pub struct LinkResult:",
      "pub struct Module:",
      "pub struct OptResult:",
      "pub struct Options:",
      "pub struct Output:",
      "pub struct ParallelResult:",
      "pub struct ParseResult:",
      "pub struct RunResult:",
      "pub struct TargetData:",
      "pub struct TargetMachine:",
      "pub struct TargetMachineResult:",
      "pub struct Type:",
      "pub struct Value:",
      "pub struct VerifyResult:"
    ],
    "llvm.triple": [
      "pub func Datalayout(t: str): str:",
      "pub func HostDatalayout(): str:",
      "pub func IsGlibc(t: str): bool:",
      "pub func IsWindows(t: str): bool:",
      "pub func PointerBits(t: str): int:"
    ],
    "log": [
      "pub const FormatJSON := 1",
      "pub const FormatText := 0",
      "pub const LevelDebug := 0",
      "pub const LevelError := 3",
      "pub const LevelInfo := 1",
      "pub const LevelWarn := 2",
      "pub func CloseFile():",
      "pub func Debug(msg: str): _emit(0, msg) end",
      "pub func DebugKV(msg: str, keys: Vector<str>, vals: Vector<str>): _emit_kv(0, msg, keys, vals) end",
      "pub func Debugf(tmpl: str, args: Vector<str>): _emit(0, fmt.Sprintf(tmpl, args)) end",
      "pub func Error(msg: str): _emit(3, msg) end",
      "pub func ErrorKV(msg: str, keys: Vector<str>, vals: Vector<str>): _emit_kv(3, msg, keys, vals) end",
      "pub func Errorf(tmpl: str, args: Vector<str>): _emit(3, fmt.Sprintf(tmpl, args)) end",
      "pub func Field(key: str, val: str): str:",
      "pub func FieldBool(key: str, val: bool): str:",
      "pub func FieldInt(key: str, val: i64): str:",
      "pub func Flush():",
      "pub func GetFormat(): int: ret _format end",
      "pub func GetLevel(): int: ret _level end",
      "pub func Info(msg: str): _emit(1, msg) end",
      "pub func InfoKV(msg: str, keys: Vector<str>, vals: Vector<str>): _emit_kv(1, msg, keys, vals) end",
      "pub func Infof(tmpl: str, args: Vector<str>): _emit(1, fmt.Sprintf(tmpl, args)) end",
      "pub func IsAsync(): bool:",
      "pub func KV(msg: str, fields: Vector<str>): str:",
      "pub func LevelName(l: int): str: ret _level_name(l) end",
      "pub func Log(l: int, msg: str): _emit(l, msg) end",
      "pub func ParseLevel(s: str): int:",
      "pub func SetFormat(f: int): _format = f end",
      "pub func SetLevel(l: int): _level = l end",
      "pub func SetPrefix(p: str): _prefix = p end",
      "pub func SetRotation(max_bytes: i64, max_backups: int):",
      "pub func ShowTime(b: bool): _show_time = b end",
      "pub func StartAsync(capacity: i64): bool:",
      "pub func StopAsync():",
      "pub func ToFile(path: str): int:",
      "pub func ToStderr():",
      "pub func ToStdout():",
      "pub func Warn(msg: str): _emit(2, msg) end",
      "pub func WarnKV(msg: str, keys: Vector<str>, vals: Vector<str>): _emit_kv(2, msg, keys, vals) end",
      "pub func Warnf(tmpl: str, args: Vector<str>): _emit(2, fmt.Sprintf(tmpl, args)) end",
      "pub noret func Fatal(msg: str):"
    ],
    "map": [],
    "math": [
      "pub const E := 2.718281828459045",
      "pub const PI := 3.141592653589793",
      "pub const TAU := 6.283185307179586",
      "pub inline pure func Abs(x: f64): f64: ret fabs(x) end",
      "pub inline pure func AbsI(x: int): int: if x < 0: ret 0 - x end ret x end",
      "pub inline pure func AbsI64(x: i64): i64: if x < 0: ret 0 - x end ret x end",
      "pub inline pure func Acos(x: f64): f64: ret acos(x) end",
      "pub inline pure func Asin(x: f64): f64: ret asin(x) end",
      "pub inline pure func Atan(x: f64): f64: ret atan(x) end",
      "pub inline pure func Atan2(y: f64, x: f64): f64: ret atan2(y, x) end",
      "pub inline pure func Ceil(x: f64): f64: ret ceil(x) end",
      "pub inline pure func ClampF(x: f64, lo: f64, hi: f64): f64:",
      "pub inline pure func ClampI(x: int, lo: int, hi: int): int:",
      "pub inline pure func Cos(x: f64): f64: ret cos(x) end",
      "pub inline pure func Cosh(x: f64): f64: ret (exp(x) + exp(0.0 - x)) / 2.0 end",
      "pub inline pure func Degrees(rad: f64): f64: ret rad * 180.0 / PI end",
      "pub inline pure func Exp(x: f64): f64: ret exp(x) end",
      "pub inline pure func Floor(x: f64): f64: ret floor(x) end",
      "pub inline pure func Hypot(x: f64, y: f64): f64: ret sqrt(x * x + y * y) end",
      "pub inline pure func Inf(): f64:",
      "pub inline pure func IsInf(x: f64): bool:",
      "pub inline pure func IsNaN(x: f64): bool: ret x != x end",
      "pub inline pure func Lerp(a: f64, b: f64, t: f64): f64: ret a + (b - a) * t end",
      "pub inline pure func Log(x: f64): f64: ret log(x) end",
      "pub inline pure func Log10(x: f64): f64: ret log10(x) end",
      "pub inline pure func Log2(x: f64): f64: ret log(x) / log(2.0) end",
      "pub inline pure func Max(a: f64, b: f64): f64: if a > b: ret a end ret b end",
      "pub inline pure func MaxI(a: int, b: int): int: if a > b: ret a end ret b end",
      "pub inline pure func MaxI64(a: i64, b: i64): i64: if a > b: ret a end ret b end",
      "pub inline pure func Min(a: f64, b: f64): f64: if a < b: ret a end ret b end",
      "pub inline pure func MinI(a: int, b: int): int: if a < b: ret a end ret b end",
      "pub inline pure func MinI64(a: i64, b: i64): i64: if a < b: ret a end ret b end",
      "pub inline pure func Mod(x: f64, y: f64): f64: ret fmod(x, y) end",
      "pub inline pure func NaN(): f64:",
      "pub inline pure func Pow(base: f64, power: f64): f64: ret pow(base, power) end",
      "pub inline pure func Radians(deg: f64): f64: ret deg * PI / 180.0 end",
      "pub inline pure func Round(x: f64): f64: ret floor(x + 0.5) end",
      "pub inline pure func Sign(x: f64): f64:",
      "pub inline pure func Sin(x: f64): f64: ret sin(x) end",
      "pub inline pure func Sinh(x: f64): f64: ret (exp(x) - exp(0.0 - x)) / 2.0 end",
      "pub inline pure func Sqrt(x: f64): f64: ret sqrt(x) end",
      "pub inline pure func Tan(x: f64): f64: ret tan(x) end",
      "pub inline pure func Tanh(x: f64): f64:",
      "pub inline pure func Trunc(x: f64): f64:",
      "pub pure func Cbrt(x: f64): f64:",
      "pub pure func Factorial(n: int): i64:",
      "pub pure func Gcd(a: int, b: int): int:",
      "pub pure func GcdI64(a: i64, b: i64): i64:",
      "pub pure func Lcm(a: int, b: int): int:",
      "pub pure func Pow10(n: int): f64:"
    ],
    "matrix": [
      "pub const MAT_EPS := 2.220446049250313e-16",
      "pub const MAT_INF := 1.0e300",
      "pub const MAT_TOL := 1.0e-9",
      "pub func Abs(x &: Matrix): Matrix: ret _map(x, _OP_ABS) end",
      "pub func Acos(x &: Matrix): Matrix: ret _map(x, _OP_ACOS) end",
      "pub func Add(x &: Matrix, y &: Matrix): Matrix: ret _zip(x, y, 0) end",
      "pub func AddColVector(x &: Matrix, col &: Matrix): Matrix:",
      "pub func AddInPlace(dst &: Matrix, src &: Matrix):",
      "pub func AddRowVector(x &: Matrix, row &: Matrix): Matrix:",
      "pub func AddScalar(x &: Matrix, s: f64): Matrix:",
      "pub func AddScalarInPlace(dst &: Matrix, s: f64):",
      "pub func AddScaled(dst &: Matrix, src &: Matrix, alpha: f64):",
      "pub func Adjugate(x &: Matrix): Matrix:",
      "pub func All(x &: Matrix): bool: ret CountNonZero(x) == x.count() end",
      "pub func AllClose(x &: Matrix, y &: Matrix, tol: f64): bool:",
      "pub func AllFinite(x &: Matrix): bool:",
      "pub func Any(x &: Matrix): bool: ret CountNonZero(x) > 0 end",
      "pub func Arange(start: f64, stop: f64, step: f64): Matrix:",
      "pub func ArgMax(x &: Matrix): int:",
      "pub func ArgMin(x &: Matrix): int:",
      "pub func Asin(x &: Matrix): Matrix: ret _map(x, _OP_ASIN) end",
      "pub func Atan(x &: Matrix): Matrix: ret _map(x, _OP_ATAN) end",
      "pub func Augment(a &: Matrix, b &: Matrix): Matrix: ret HStack(a, b) end",
      "pub func BlockDiag(x &: Matrix, y &: Matrix): Matrix:",
      "pub func CayleyHamilton(x &: Matrix): Matrix:",
      "pub func Cbrt(x &: Matrix): Matrix: ret _map(x, _OP_CBRT) end",
      "pub func Ceil(x &: Matrix): Matrix: ret _map(x, _OP_CEIL) end",
      "pub func CenterColumns(x &: Matrix): Matrix:",
      "pub func CharPoly(x &: Matrix): Matrix:",
      "pub func Cholesky(x &: Matrix): Matrix:",
      "pub func CholeskySolve(l &: Matrix, b &: Matrix): Matrix:",
      "pub func Chop(x &: Matrix, tol: f64): Matrix:",
      "pub func Circulant(c &: Matrix): Matrix:",
      "pub func Clip(x &: Matrix, lo: f64, hi: f64): Matrix:",
      "pub func Clone(x &: Matrix): Matrix:",
      "pub func Col(x &: Matrix, j: int): Matrix:",
      "pub func ColMaxs(x &: Matrix): Matrix:",
      "pub func ColMeans(x &: Matrix): Matrix:",
      "pub func ColMins(x &: Matrix): Matrix:",
      "pub func ColSums(x &: Matrix): Matrix:",
      "pub func ColVector(data &: Vector<f64>): Matrix:",
      "pub func ColumnMeans(x &: Matrix): Matrix:",
      "pub func ColumnSpace(x &: Matrix, tol: f64): Matrix:",
      "pub func ColumnSpaceExact(x &: Matrix): Matrix:",
      "pub func ColumnStds(x &: Matrix, sample: bool): Matrix:",
      "pub func Combine(x &: Matrix, a: f64, y &: Matrix, b: f64): Matrix:",
      "pub func Companion(coeffs &: Matrix): Matrix:",
      "pub func Cond1(x &: Matrix): f64:",
      "pub func Cond2(x &: Matrix): f64:",
      "pub func CondInf(x &: Matrix): f64:",
      "pub func CopyInto(dst &: Matrix, src &: Matrix):",
      "pub func Correlation(x &: Matrix): Matrix:",
      "pub func Cos(x &: Matrix): Matrix: ret _map(x, _OP_COS) end",
      "pub func Cosh(x &: Matrix): Matrix: ret _map(x, _OP_COSH) end",
      "pub func CountNonZero(x &: Matrix): int:",
      "pub func Covariance(x &: Matrix, sample: bool): Matrix:",
      "pub func Cross3(u &: Matrix, v &: Matrix): Matrix:",
      "pub func CumProdRows(x &: Matrix): Matrix:",
      "pub func CumSumCols(x &: Matrix): Matrix:",
      "pub func CumSumRows(x &: Matrix): Matrix:",
      "pub func Decompose(x &: Matrix): LU:",
      "pub func DeleteCol(x &: Matrix, j: int): Matrix:",
      "pub func DeleteRow(x &: Matrix, i: int): Matrix:",
      "pub func Density(x &: Matrix): f64:",
      "pub func Det(x &: Matrix): f64:",
      "pub func DetSPD(x &: Matrix): f64:",
      "pub func Diag(data &: Vector<f64>): Matrix:",
      "pub func Diagonal(x &: Matrix): Matrix:",
      "pub func DiagonalOffset(x &: Matrix, k: int): Matrix:",
      "pub func Distance(x &: Matrix, y &: Matrix): f64:",
      "pub func DivElem(x &: Matrix, y &: Matrix): Matrix: ret _zip(x, y, 3) end",
      "pub func DivScalar(x &: Matrix, s: f64): Matrix:",
      "pub func Dot(x &: Matrix, y &: Matrix): f64:",
      "pub func EigReconstruct(f &: EigenSym): Matrix:",
      "pub func EigSym(x &: Matrix): EigenSym:",
      "pub func EigVals(x &: Matrix): Eigen:",
      "pub func EigValsAuto(x &: Matrix): Eigen:",
      "pub func EigValsSym(x &: Matrix): Matrix:",
      "pub func EigVecFor(x &: Matrix, lambda: f64, iters: int): Matrix:",
      "pub func Exp(x &: Matrix): Matrix: ret _map(x, _OP_EXP) end",
      "pub func ExplainedVariance(p &: PCA): Matrix:",
      "pub func Expm(x &: Matrix): Matrix:",
      "pub func Eye(n: int): Matrix:",
      "pub func EyeOffset(rows: int, cols: int, k: int): Matrix:",
      "pub func Flatten(x &: Matrix): Matrix: ret Reshape(x, 1, x.count()) end",
      "pub func FlattenCol(x &: Matrix): Matrix: ret Reshape(x, x.count(), 1) end",
      "pub func FlipHorizontal(x &: Matrix): Matrix:",
      "pub func FlipVertical(x &: Matrix): Matrix:",
      "pub func Floor(x &: Matrix): Matrix: ret _map(x, _OP_FLOOR) end",
      "pub func Free(x &: Matrix): x.a.free() end",
      "pub func FromArray(rows: int, cols: int, data &: Vector<f64>): Matrix:",
      "pub func Full(rows: int, cols: int, x: f64): Matrix:",
      "pub func Givens(n: int, p: int, q: int, theta: f64): Matrix:",
      "pub func Gram(x &: Matrix): Matrix:",
      "pub func HStack(x &: Matrix, y &: Matrix): Matrix:",
      "pub func Hankel(first_col &: Matrix, last_row &: Matrix): Matrix:",
      "pub func Hessenberg(x &: Matrix): Matrix:",
      "pub func Hilbert(n: int): Matrix:",
      "pub func HilbertInverse(n: int): Matrix:",
      "pub func Householder(v &: Matrix): Matrix:",
      "pub func IndexCol(x &: Matrix, k: int): int:",
      "pub func IndexRow(x &: Matrix, k: int): int:",
      "pub func Inertia(x &: Matrix): Matrix:",
      "pub func InsertCol(x &: Matrix, j: int, v &: Matrix): Matrix:",
      "pub func InsertRow(x &: Matrix, i: int, v &: Matrix): Matrix:",
      "pub func Inverse(x &: Matrix): Matrix:",
      "pub func InverseSPD(x &: Matrix): Matrix:",
      "pub func IsBanded(x &: Matrix, lower: int, upper: int, tol: f64): bool:",
      "pub func IsColStochastic(x &: Matrix, tol: f64): bool:",
      "pub func IsConsistent(a &: Matrix, b &: Matrix): bool:",
      "pub func IsDiagonal(x &: Matrix, tol: f64): bool:",
      "pub func IsDiagonallyDominant(a &: Matrix): bool:",
      "pub func IsDoublyStochastic(x &: Matrix, tol: f64): bool:",
      "pub func IsHankel(x &: Matrix, tol: f64): bool:",
      "pub func IsIdempotent(x &: Matrix, tol: f64): bool:",
      "pub func IsIdentity(x &: Matrix, tol: f64): bool:",
      "pub func IsInvertible(x &: Matrix): bool: ret IsSingular(x) == false end",
      "pub func IsInvolutory(x &: Matrix, tol: f64): bool:",
      "pub func IsLowerTriangular(x &: Matrix, tol: f64): bool:",
      "pub func IsNilpotent(x &: Matrix, tol: f64): bool:",
      "pub func IsNormal(x &: Matrix, tol: f64): bool:",
      "pub func IsOrthogonal(x &: Matrix, tol: f64): bool:",
      "pub func IsPermutation(x &: Matrix, tol: f64): bool:",
      "pub func IsPositiveDefinite(x &: Matrix, tol: f64): bool:",
      "pub func IsPositiveSemiDefinite(x &: Matrix, tol: f64): bool:",
      "pub func IsRowStochastic(x &: Matrix, tol: f64): bool:",
      "pub func IsSingular(x &: Matrix): bool:",
      "pub func IsSkewSymmetric(x &: Matrix, tol: f64): bool:",
      "pub func IsSquare(x &: Matrix): bool: ret x.is_square() end",
      "pub func IsSymmetric(x &: Matrix, tol: f64): bool:",
      "pub func IsToeplitz(x &: Matrix, tol: f64): bool:",
      "pub func IsUpperTriangular(x &: Matrix, tol: f64): bool:",
      "pub func IsZero(x &: Matrix, tol: f64): bool:",
      "pub func Kron(x &: Matrix, y &: Matrix): Matrix:",
      "pub func LDLDecompose(x &: Matrix): LDL:",
      "pub func LDLSolve(f &: LDL, b &: Matrix): Matrix:",
      "pub func LUSolve(f &: LU, b &: Matrix): Matrix:",
      "pub func LeastSquares(a &: Matrix, b &: Matrix): Matrix:",
      "pub func LinearRegression(x &: Matrix, y &: Matrix): Matrix:",
      "pub func Linspace(start: f64, stop: f64, num: int): Matrix:",
      "pub func Log(x &: Matrix): Matrix: ret _map(x, _OP_LOG) end",
      "pub func Log10(x &: Matrix): Matrix: ret _map(x, _OP_LOG10) end",
      "pub func Log2(x &: Matrix): Matrix: ret _map(x, _OP_LOG2) end",
      "pub func LogAbsDet(x &: Matrix): f64:",
      "pub func LogDetSPD(x &: Matrix): f64:",
      "pub func LogmSym(x &: Matrix): Matrix:",
      "pub func Logspace(start: f64, stop: f64, num: int, base: f64): Matrix:",
      "pub func LowRankApprox(x &: Matrix, k: int): Matrix:",
      "pub func LowerBandwidth(x &: Matrix, tol: f64): int:",
      "pub func MatMul(x &: Matrix, y &: Matrix): Matrix:",
      "pub func MatMulInto(x &: Matrix, y &: Matrix, out &: Matrix): bool:",
      "pub func MatPow(x &: Matrix, k: int): Matrix:",
      "pub func MatVec(a &: Matrix, x &: Matrix): Matrix:",
      "pub func MatrixRank(x &: Matrix, tol: f64): int:",
      "pub func MatrixSign(x &: Matrix): Matrix:",
      "pub func Max(x &: Matrix): f64:",
      "pub func MaxAbs(x &: Matrix): f64:",
      "pub func MaxElem(x &: Matrix, y &: Matrix): Matrix:",
      "pub func MaxScalar(x &: Matrix, s: f64): Matrix: ret Clip(x, s, MAT_INF) end",
      "pub func Mean(x &: Matrix): f64:",
      "pub func Median(x &: Matrix): f64:",
      "pub func Min(x &: Matrix): f64:",
      "pub func MinElem(x &: Matrix, y &: Matrix): Matrix:",
      "pub func MinScalar(x &: Matrix, s: f64): Matrix:",
      "pub func Minor(x &: Matrix, i: int, j: int): Matrix:",
      "pub func MulColVector(x &: Matrix, col &: Matrix): Matrix:",
      "pub func MulElem(x &: Matrix, y &: Matrix): Matrix: ret _zip(x, y, 2) end",
      "pub func MulElemInPlace(dst &: Matrix, src &: Matrix):",
      "pub func MulRowVector(x &: Matrix, row &: Matrix): Matrix:",
      "pub func MulTranspose(x &: Matrix, y &: Matrix): Matrix:",
      "pub func Neg(x &: Matrix): Matrix: ret Scale(x, 0.0 - 1.0) end",
      "pub func NegInPlace(dst &: Matrix): ScaleInPlace(dst, 0.0 - 1.0) end",
      "pub func NewRng(seed: i64): Rng:",
      "pub func Norm1(x &: Matrix): f64:",
      "pub func Norm2(x &: Matrix): f64:",
      "pub func NormFrobenius(x &: Matrix): f64:",
      "pub func NormInf(x &: Matrix): f64:",
      "pub func NormMax(x &: Matrix): f64: ret _abs_max(x) end",
      "pub func NormNuclear(x &: Matrix): f64:",
      "pub func Normalize(x &: Matrix): Matrix:",
      "pub func NormalizeCols(x &: Matrix): Matrix:",
      "pub func NormalizeRows(x &: Matrix): Matrix:",
      "pub func NullSpace(x &: Matrix, tol: f64): Matrix:",
      "pub func NullSpaceExact(x &: Matrix): Matrix:",
      "pub func Nullity(x &: Matrix): int: ret x.cols - RankExact(x) end",
      "pub func Ones(rows: int, cols: int): Matrix: ret Full(rows, cols, 1.0) end",
      "pub func Orthonormalize(x &: Matrix): Matrix:",
      "pub func Outer(u &: Matrix, v &: Matrix): Matrix:",
      "pub func PCAFit(x &: Matrix): PCA:",
      "pub func PCAFromSVD(x &: Matrix): PCA:",
      "pub func PCATransform(p &: PCA, x &: Matrix, k: int): Matrix:",
      "pub func Pad(x &: Matrix, top: int, bottom: int, left: int, right: int, v: f64): Matrix:",
      "pub func Pascal(n: int): Matrix:",
      "pub func Permutation(perm &: Matrix): Matrix:",
      "pub func PivotColumns(x &: Matrix): Matrix:",
      "pub func PolyEval(x &: Matrix, coeffs &: Matrix): Matrix:",
      "pub func PowElem(x &: Matrix, p: f64): Matrix:",
      "pub func PowSym(x &: Matrix, p: f64): Matrix:",
      "pub func PowerIteration(a &: Matrix, iters: int): Matrix:",
      "pub func Print(x &: Matrix): println ToString(x) end",
      "pub func PrintLabeled(label: str, x &: Matrix):",
      "pub func PrintPrec(x &: Matrix, prec: int): println ToStringPrec(x, prec) end",
      "pub func Prod(x &: Matrix): f64:",
      "pub func PseudoInverse(x &: Matrix, tol: f64): Matrix:",
      "pub func QRDecompose(x &: Matrix): QR:",
      "pub func QRGetQ(f &: QR): Matrix:",
      "pub func QRGetR(f &: QR): Matrix:",
      "pub func QRSolve(f &: QR, b &: Matrix): Matrix:",
      "pub func RREF(x &: Matrix): Matrix:",
      "pub func RSquared(y &: Matrix, fitted &: Matrix): f64:",
      "pub func Random(rows: int, cols: int, lo: f64, hi: f64, seed: i64): Matrix:",
      "pub func RandomNormal(rows: int, cols: int, seed: i64): Matrix:",
      "pub func RandomOrthogonal(n: int, seed: i64): Matrix:",
      "pub func RandomSPD(n: int, seed: i64): Matrix:",
      "pub func RandomSymmetric(n: int, seed: i64): Matrix:",
      "pub func Range(x &: Matrix): f64: ret Max(x) - Min(x) end",
      "pub func RankExact(x &: Matrix): int:",
      "pub func Rayleigh(a &: Matrix, x &: Matrix): f64: ret _rayleigh(a, x) end",
      "pub func Reciprocal(x &: Matrix): Matrix: ret _map(x, _OP_RECIP) end",
      "pub func Reshape(x &: Matrix, rows: int, cols: int): Matrix:",
      "pub func Residual(a &: Matrix, x &: Matrix, b &: Matrix): Matrix:",
      "pub func Roll(x &: Matrix, dr: int, dc: int): Matrix:",
      "pub func Rot90(x &: Matrix, k: int): Matrix:",
      "pub func Rotation2D(theta: f64): Matrix:",
      "pub func Rotation3D(axis: int, theta: f64): Matrix:",
      "pub func Round(x &: Matrix): Matrix: ret _map(x, _OP_ROUND) end",
      "pub func Row(x &: Matrix, i: int): Matrix:",
      "pub func RowEchelon(x &: Matrix): Matrix:",
      "pub func RowMaxs(x &: Matrix): Matrix:",
      "pub func RowMeans(x &: Matrix): Matrix:",
      "pub func RowMins(x &: Matrix): Matrix:",
      "pub func RowSums(x &: Matrix): Matrix:",
      "pub func RowVector(data &: Vector<f64>): Matrix:",
      "pub func SVDecompose(x &: Matrix): SVD:",
      "pub func Scale(x &: Matrix, s: f64): Matrix:",
      "pub func ScaleInPlace(dst &: Matrix, s: f64):",
      "pub func SetAll(x &: Matrix, v: f64):",
      "pub func SetCol(x &: Matrix, j: int, v &: Matrix):",
      "pub func SetDiagonal(x &: Matrix, v &: Matrix):",
      "pub func SetRow(x &: Matrix, i: int, v &: Matrix):",
      "pub func ShapeString(x &: Matrix): str:",
      "pub func ShiftDiagonal(x &: Matrix, c: f64):",
      "pub func ShiftedInverseIteration(a &: Matrix, shift: f64, iters: int): f64:",
      "pub func Sign(x &: Matrix): Matrix: ret _map(x, _OP_SIGN) end",
      "pub func Sin(x &: Matrix): Matrix: ret _map(x, _OP_SIN) end",
      "pub func SingularValues(x &: Matrix): Matrix:",
      "pub func Sinh(x &: Matrix): Matrix: ret _map(x, _OP_SINH) end",
      "pub func SkewPart(x &: Matrix): Matrix:",
      "pub func Solve(a &: Matrix, b &: Matrix): Matrix:",
      "pub func SolveCG(a &: Matrix, b &: Matrix, iters: int, tol: f64): IterResult:",
      "pub func SolveGaussSeidel(a &: Matrix, b &: Matrix, iters: int, tol: f64): IterResult:",
      "pub func SolveGeneral(a &: Matrix, b &: Matrix): Matrix:",
      "pub func SolveJacobi(a &: Matrix, b &: Matrix, iters: int, tol: f64): IterResult:",
      "pub func SolveSOR(a &: Matrix, b &: Matrix, omega: f64, iters: int, tol: f64): IterResult:",
      "pub func SolveSPD(a &: Matrix, b &: Matrix): Matrix:",
      "pub func SolveVec(a &: Matrix, b &: Matrix): Matrix:",
      "pub func SpectralRadius(x &: Matrix): f64:",
      "pub func SpectralRadiusSym(x &: Matrix): f64:",
      "pub func Sqrt(x &: Matrix): Matrix: ret _map(x, _OP_SQRT) end",
      "pub func SqrtSym(x &: Matrix): Matrix: ret PowSym(x, 0.5) end",
      "pub func Sqrtm(x &: Matrix): Matrix:",
      "pub func Square(x &: Matrix): Matrix: ret _map(x, _OP_SQUARE) end",
      "pub func Standardize(x &: Matrix, sample: bool): Matrix:",
      "pub func Std(x &: Matrix, sample: bool): f64: ret math.Sqrt(Var(x, sample)) end",
      "pub func Sub(x &: Matrix, y &: Matrix): Matrix: ret _zip(x, y, 1) end",
      "pub func SubInPlace(dst &: Matrix, src &: Matrix):",
      "pub func SubMatrix(x &: Matrix, r0: int, c0: int, dr: int, dc: int): Matrix:",
      "pub func SubScalar(x &: Matrix, s: f64): Matrix: ret AddScalar(x, 0.0 - s) end",
      "pub func Sum(x &: Matrix): f64: ret _sum_flat(x.a.data, 0, x.count()) end",
      "pub func SwapCols(x &: Matrix, i: int, j: int):",
      "pub func SwapRows(x &: Matrix, i: int, j: int):",
      "pub func SymPart(x &: Matrix): Matrix:",
      "pub func SymmetrizeUpper(x &: Matrix): Matrix:",
      "pub func Tan(x &: Matrix): Matrix: ret _map(x, _OP_TAN) end",
      "pub func Tanh(x &: Matrix): Matrix: ret _map(x, _OP_TANH) end",
      "pub func Tile(x &: Matrix, ry: int, rx: int): Matrix:",
      "pub func ToCSV(x &: Matrix, prec: int): str:",
      "pub func ToRepr(x &: Matrix, prec: int): str:",
      "pub func ToString(x &: Matrix): str: ret ToStringPrec(x, 4) end",
      "pub func ToStringPrec(x &: Matrix, prec: int): str:",
      "pub func Toeplitz(first_col &: Matrix, first_row &: Matrix): Matrix:",
      "pub func Trace(x &: Matrix): f64:",
      "pub func Transpose(x &: Matrix): Matrix:",
      "pub func TransposeInto(x &: Matrix, out &: Matrix): bool:",
      "pub func TransposeMul(x &: Matrix, y &: Matrix): Matrix:",
      "pub func Tril(x &: Matrix, k: int): Matrix:",
      "pub func Triu(x &: Matrix, k: int): Matrix:",
      "pub func Trunc(x &: Matrix): Matrix: ret _map(x, _OP_TRUNC) end",
      "pub func UpperBandwidth(x &: Matrix, tol: f64): int:",
      "pub func VStack(x &: Matrix, y &: Matrix): Matrix:",
      "pub func Vandermonde(x &: Matrix, cols: int): Matrix:",
      "pub func Var(x &: Matrix, sample: bool): f64:",
      "pub func VecMat(x &: Matrix, a &: Matrix): Matrix:",
      "pub func VecNorm(x &: Matrix, p: f64): f64:",
      "pub func Zeros(rows: int, cols: int): Matrix:",
      "pub func add_at(i: int, j: int, v: f64):",
      "pub func at(i: int, j: int): f64: ret this.a.get(i * this.cols + j) end",
      "pub func count(): int: ret this.rows * this.cols end",
      "pub func flat(k: int): f64: ret this.a.get(k) end",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free(): this.a.free() end",
      "pub func free(): this.x.free() end",
      "pub func is_empty(): bool: ret this.rows <= 0 or this.cols <= 0 end",
      "pub func is_square(): bool: ret this.rows == this.cols end",
      "pub func min_dim(): int:",
      "pub func mul_at(i: int, j: int, v: f64):",
      "pub func next_bits(): u64:",
      "pub func next_float(): f64:",
      "pub func next_normal(): f64:",
      "pub func same_shape(o &: Matrix): bool:",
      "pub func set(i: int, j: int, v: f64): this.a.set(i * this.cols + j, v) end",
      "pub func set_flat(k: int, v: f64): this.a.set(k, v) end",
      "pub struct Eigen:",
      "pub struct EigenSym:",
      "pub struct IterResult:",
      "pub struct LDL:",
      "pub struct LU:",
      "pub struct Matrix:",
      "pub struct PCA:",
      "pub struct QR:",
      "pub struct Rng:",
      "pub struct SVD:"
    ],
    "mem": [
      "pub func AllocCount(): i64:",
      "pub func Allocate(size: u64): void*:",
      "pub func AllocateArray(count: u64, size: u64): void*:",
      "pub func AllocateZeroed(size: u64): void*:",
      "pub func ArenaAlloc(a &: Arena, size: u64): void*:",
      "pub func ArenaAllocZeroed(a &: Arena, size: u64): void*:",
      "pub func ArenaCapacity(a &: Arena): u64: ret a.cap end",
      "pub func ArenaFree(a &: Arena):",
      "pub func ArenaRemaining(a &: Arena): u64: ret a.cap - a.used end",
      "pub func ArenaReset(a &: Arena): a.used = 0 as u64 end",
      "pub func ArenaUsed(a &: Arena): u64: ret a.used end",
      "pub func CheckLeaks():",
      "pub func Copy(dst: void*, src: void*, n: u64):",
      "pub func Free(ptr: void*):",
      "pub func FreeCount(): i64:",
      "pub func IsAsanActive(): bool:",
      "pub func IsMemDebug(): bool:",
      "pub func LiveBytes(): i64:",
      "pub func MemDebugActive(): bool:",
      "pub func MemMove(dst: void*, src: void*, n: u64): void*:",
      "pub func NewArena(capacity: u64): Arena:",
      "pub func NewPool(block_size: u64, block_count: u64): Pool:",
      "pub func PeakBytes(): i64:",
      "pub func PoolAlloc(p &: Pool): void*:",
      "pub func PoolBlockSize(p &: Pool): u64: ret p.block_size end",
      "pub func PoolCapacity(p &: Pool): u64: ret p.block_count end",
      "pub func PoolDestroy(p &: Pool):",
      "pub func PoolFree(p &: Pool, ptr: void*):",
      "pub func Reallocate(ptr: void*, size: u64): void*:",
      "pub func Set(ptr: void*, value: int, n: u64):",
      "pub noinline func MustAllocate(size: u64): void*:",
      "pub noinline func MustAllocateZeroed(size: u64): void*:",
      "pub noinline func MustReallocate(ptr: void*, size: u64): void*:",
      "pub noret func OutOfMemory():",
      "pub struct Arena:",
      "pub struct Pool:"
    ],
    "metatrader": [
      "pub const BOOK_TYPE_BUY := 1",
      "pub const BOOK_TYPE_BUY_MARKET := 3",
      "pub const BOOK_TYPE_SELL := 0",
      "pub const BOOK_TYPE_SELL_MARKET := 2",
      "pub const COPY_TICKS_ALL := -1",
      "pub const COPY_TICKS_INFO := 1",
      "pub const COPY_TICKS_TRADE := 2",
      "pub const DEAL_DIVIDEND := 15",
      "pub const DEAL_DIVIDEND_FRANKED := 16",
      "pub const DEAL_ENTRY_IN := 0",
      "pub const DEAL_ENTRY_INOUT := 2",
      "pub const DEAL_ENTRY_OUT := 1",
      "pub const DEAL_ENTRY_OUT_BY := 3",
      "pub const DEAL_REASON_CLIENT := 0",
      "pub const DEAL_REASON_EXPERT := 3",
      "pub const DEAL_REASON_MOBILE := 1",
      "pub const DEAL_REASON_ROLLOVER := 7",
      "pub const DEAL_REASON_SL := 4",
      "pub const DEAL_REASON_SO := 6",
      "pub const DEAL_REASON_SPLIT := 9",
      "pub const DEAL_REASON_TP := 5",
      "pub const DEAL_REASON_VMARGIN := 8",
      "pub const DEAL_REASON_WEB := 2",
      "pub const DEAL_TAX := 17",
      "pub const DEAL_TYPE_BALANCE := 2",
      "pub const DEAL_TYPE_BONUS := 6",
      "pub const DEAL_TYPE_BUY := 0",
      "pub const DEAL_TYPE_BUY_CANCELED := 13",
      "pub const DEAL_TYPE_CHARGE := 4",
      "pub const DEAL_TYPE_COMMISSION := 7",
      "pub const DEAL_TYPE_COMMISSION_AGENT_DAILY := 10",
      "pub const DEAL_TYPE_COMMISSION_AGENT_MONTHLY := 11",
      "pub const DEAL_TYPE_COMMISSION_DAILY := 8",
      "pub const DEAL_TYPE_COMMISSION_MONTHLY := 9",
      "pub const DEAL_TYPE_CORRECTION := 5",
      "pub const DEAL_TYPE_CREDIT := 3",
      "pub const DEAL_TYPE_INTEREST := 12",
      "pub const DEAL_TYPE_SELL := 1",
      "pub const DEAL_TYPE_SELL_CANCELED := 14",
      "pub const DEFAULT_BRIDGE_URL := \"http://127.0.0.1:18812\"",
      "pub const DEFAULT_TIMEOUT_MS := 60000",
      "pub const ORDER_FILLING_BOC := 3",
      "pub const ORDER_FILLING_FOK := 0",
      "pub const ORDER_FILLING_IOC := 1",
      "pub const ORDER_FILLING_RETURN := 2",
      "pub const ORDER_REASON_CLIENT := 0",
      "pub const ORDER_REASON_EXPERT := 3",
      "pub const ORDER_REASON_MOBILE := 1",
      "pub const ORDER_REASON_SL := 4",
      "pub const ORDER_REASON_SO := 6",
      "pub const ORDER_REASON_TP := 5",
      "pub const ORDER_REASON_WEB := 2",
      "pub const ORDER_STATE_CANCELED := 2",
      "pub const ORDER_STATE_EXPIRED := 6",
      "pub const ORDER_STATE_FILLED := 4",
      "pub const ORDER_STATE_PARTIAL := 3",
      "pub const ORDER_STATE_PLACED := 1",
      "pub const ORDER_STATE_REJECTED := 5",
      "pub const ORDER_STATE_REQUEST_ADD := 7",
      "pub const ORDER_STATE_REQUEST_CANCEL := 9",
      "pub const ORDER_STATE_REQUEST_MODIFY := 8",
      "pub const ORDER_STATE_STARTED := 0",
      "pub const ORDER_TIME_DAY := 1",
      "pub const ORDER_TIME_GTC := 0",
      "pub const ORDER_TIME_SPECIFIED := 2",
      "pub const ORDER_TIME_SPECIFIED_DAY := 3",
      "pub const ORDER_TYPE_BUY := 0",
      "pub const ORDER_TYPE_BUY_LIMIT := 2",
      "pub const ORDER_TYPE_BUY_STOP := 4",
      "pub const ORDER_TYPE_BUY_STOP_LIMIT := 6",
      "pub const ORDER_TYPE_CLOSE_BY := 8",
      "pub const ORDER_TYPE_SELL := 1",
      "pub const ORDER_TYPE_SELL_LIMIT := 3",
      "pub const ORDER_TYPE_SELL_STOP := 5",
      "pub const ORDER_TYPE_SELL_STOP_LIMIT := 7",
      "pub const POSITION_REASON_CLIENT := 0",
      "pub const POSITION_REASON_EXPERT := 3",
      "pub const POSITION_REASON_MOBILE := 1",
      "pub const POSITION_REASON_WEB := 2",
      "pub const POSITION_TYPE_BUY := 0",
      "pub const POSITION_TYPE_SELL := 1",
      "pub const RES_E_AUTH_FAILED := 0 - 6",
      "pub const RES_E_AUTO_TRADING_DISABLED := 0 - 8",
      "pub const RES_E_FAIL := 0 - 1",
      "pub const RES_E_INTERNAL_FAIL := 0 - 10000",
      "pub const RES_E_INTERNAL_FAIL_CONNECT := 0 - 10003",
      "pub const RES_E_INTERNAL_FAIL_INIT := 0 - 10003",
      "pub const RES_E_INTERNAL_FAIL_RECEIVE := 0 - 10002",
      "pub const RES_E_INTERNAL_FAIL_SEND := 0 - 10001",
      "pub const RES_E_INTERNAL_FAIL_TIMEOUT := 0 - 10005",
      "pub const RES_E_INVALID_PARAMS := 0 - 2",
      "pub const RES_E_INVALID_VERSION := 0 - 5",
      "pub const RES_E_NOT_FOUND := 0 - 4",
      "pub const RES_E_NO_MEMORY := 0 - 3",
      "pub const RES_E_UNSUPPORTED := 0 - 7",
      "pub const RES_S_OK := 1",
      "pub const SYMBOL_CALC_MODE_CFD := 3",
      "pub const SYMBOL_CALC_MODE_CFDINDEX := 4",
      "pub const SYMBOL_CALC_MODE_CFDLEVERAGE := 5",
      "pub const SYMBOL_CALC_MODE_EXCH_BONDS := 35",
      "pub const SYMBOL_CALC_MODE_EXCH_BONDS_MOEX := 37",
      "pub const SYMBOL_CALC_MODE_EXCH_FUTURES := 33",
      "pub const SYMBOL_CALC_MODE_EXCH_FUTURES_FORTS := 34",
      "pub const SYMBOL_CALC_MODE_EXCH_STOCKS := 32",
      "pub const SYMBOL_CALC_MODE_EXCH_STOCKS_MOEX := 36",
      "pub const SYMBOL_CALC_MODE_FOREX := 0",
      "pub const SYMBOL_CALC_MODE_FOREX_NO_LEVERAGE := 1",
      "pub const SYMBOL_CALC_MODE_FUTURES := 2",
      "pub const SYMBOL_CALC_MODE_SERV_COLLATERAL := 38",
      "pub const SYMBOL_TRADE_MODE_CLOSEONLY := 3",
      "pub const SYMBOL_TRADE_MODE_DISABLED := 0",
      "pub const SYMBOL_TRADE_MODE_FULL := 4",
      "pub const SYMBOL_TRADE_MODE_LONGONLY := 1",
      "pub const SYMBOL_TRADE_MODE_SHORTONLY := 2",
      "pub const TICK_FLAG_ASK := 4",
      "pub const TICK_FLAG_BID := 2",
      "pub const TICK_FLAG_BUY := 32",
      "pub const TICK_FLAG_LAST := 8",
      "pub const TICK_FLAG_SELL := 64",
      "pub const TICK_FLAG_VOLUME := 16",
      "pub const TIMEFRAME_D1 := 16408",
      "pub const TIMEFRAME_H1 := 16385",
      "pub const TIMEFRAME_H12 := 16396",
      "pub const TIMEFRAME_H2 := 16386",
      "pub const TIMEFRAME_H3 := 16387",
      "pub const TIMEFRAME_H4 := 16388",
      "pub const TIMEFRAME_H6 := 16390",
      "pub const TIMEFRAME_H8 := 16392",
      "pub const TIMEFRAME_M1 := 1",
      "pub const TIMEFRAME_M10 := 10",
      "pub const TIMEFRAME_M12 := 12",
      "pub const TIMEFRAME_M15 := 15",
      "pub const TIMEFRAME_M2 := 2",
      "pub const TIMEFRAME_M20 := 20",
      "pub const TIMEFRAME_M3 := 3",
      "pub const TIMEFRAME_M30 := 30",
      "pub const TIMEFRAME_M4 := 4",
      "pub const TIMEFRAME_M5 := 5",
      "pub const TIMEFRAME_M6 := 6",
      "pub const TIMEFRAME_MN1 := 49153",
      "pub const TIMEFRAME_W1 := 32769",
      "pub const TRADE_ACTION_CLOSE_BY := 10",
      "pub const TRADE_ACTION_DEAL := 1",
      "pub const TRADE_ACTION_MODIFY := 7",
      "pub const TRADE_ACTION_PENDING := 5",
      "pub const TRADE_ACTION_REMOVE := 8",
      "pub const TRADE_ACTION_SLTP := 6",
      "pub const TRADE_RETCODE_CANCEL := 10007",
      "pub const TRADE_RETCODE_CLIENT_DISABLES_AT := 10027",
      "pub const TRADE_RETCODE_CLOSE_ONLY := 10044",
      "pub const TRADE_RETCODE_CLOSE_ORDER_EXIST := 10039",
      "pub const TRADE_RETCODE_CONNECTION := 10031",
      "pub const TRADE_RETCODE_DONE := 10009",
      "pub const TRADE_RETCODE_DONE_PARTIAL := 10010",
      "pub const TRADE_RETCODE_ERROR := 10011",
      "pub const TRADE_RETCODE_FIFO_CLOSE := 10045",
      "pub const TRADE_RETCODE_FROZEN := 10029",
      "pub const TRADE_RETCODE_HEDGE_PROHIBITED := 10046",
      "pub const TRADE_RETCODE_INVALID := 10013",
      "pub const TRADE_RETCODE_INVALID_CLOSE_VOLUME := 10038",
      "pub const TRADE_RETCODE_INVALID_EXPIRATION := 10022",
      "pub const TRADE_RETCODE_INVALID_FILL := 10030",
      "pub const TRADE_RETCODE_INVALID_ORDER := 10035",
      "pub const TRADE_RETCODE_INVALID_PRICE := 10015",
      "pub const TRADE_RETCODE_INVALID_STOPS := 10016",
      "pub const TRADE_RETCODE_INVALID_VOLUME := 10014",
      "pub const TRADE_RETCODE_LIMIT_ORDERS := 10033",
      "pub const TRADE_RETCODE_LIMIT_POSITIONS := 10040",
      "pub const TRADE_RETCODE_LIMIT_VOLUME := 10034",
      "pub const TRADE_RETCODE_LOCKED := 10028",
      "pub const TRADE_RETCODE_LONG_ONLY := 10042",
      "pub const TRADE_RETCODE_MARKET_CLOSED := 10018",
      "pub const TRADE_RETCODE_NO_CHANGES := 10025",
      "pub const TRADE_RETCODE_NO_MONEY := 10019",
      "pub const TRADE_RETCODE_ONLY_REAL := 10032",
      "pub const TRADE_RETCODE_ORDER_CHANGED := 10023",
      "pub const TRADE_RETCODE_PLACED := 10008",
      "pub const TRADE_RETCODE_POSITION_CLOSED := 10036",
      "pub const TRADE_RETCODE_PRICE_CHANGED := 10020",
      "pub const TRADE_RETCODE_PRICE_OFF := 10021",
      "pub const TRADE_RETCODE_REJECT := 10006",
      "pub const TRADE_RETCODE_REJECT_CANCEL := 10041",
      "pub const TRADE_RETCODE_REQUOTE := 10004",
      "pub const TRADE_RETCODE_SERVER_DISABLES_AT := 10026",
      "pub const TRADE_RETCODE_SHORT_ONLY := 10043",
      "pub const TRADE_RETCODE_TIMEOUT := 10012",
      "pub const TRADE_RETCODE_TOO_MANY_REQUESTS := 10024",
      "pub const TRADE_RETCODE_TRADE_DISABLED := 10017",
      "pub func BridgeUrl(): str:",
      "pub func CopyRatesFrom(symbol: str, timeframe: int, date_from: i64, count: int): Vector<Rate>:",
      "pub func CopyRatesFromPos(symbol: str, timeframe: int, start_pos: int, count: int): Vector<Rate>:",
      "pub func CopyRatesRange(symbol: str, timeframe: int, date_from: i64, date_to: i64): Vector<Rate>:",
      "pub func CopyTicksFrom(symbol: str, date_from: i64, count: int, flags: int): Vector<Tick>:",
      "pub func CopyTicksRange(symbol: str, date_from: i64, date_to: i64, flags: int): Vector<Tick>:",
      "pub func GetAccountInfo(): AccountInfo:",
      "pub func GetSymbolInfo(symbol: str): SymbolInfo:",
      "pub func GetTerminalInfo(): TerminalInfo:",
      "pub func HistoryDealsGet(date_from: i64, date_to: i64): Vector<TradeDeal>:",
      "pub func HistoryDealsGetGroup(date_from: i64, date_to: i64, group: str): Vector<TradeDeal>:",
      "pub func HistoryDealsGetPosition(position: i64): Vector<TradeDeal>:",
      "pub func HistoryDealsGetTicket(ticket: i64): Vector<TradeDeal>:",
      "pub func HistoryDealsTotal(date_from: i64, date_to: i64): int:",
      "pub func HistoryOrdersGet(date_from: i64, date_to: i64): Vector<TradeOrder>:",
      "pub func HistoryOrdersGetGroup(date_from: i64, date_to: i64, group: str): Vector<TradeOrder>:",
      "pub func HistoryOrdersGetPosition(position: i64): Vector<TradeOrder>:",
      "pub func HistoryOrdersGetTicket(ticket: i64): Vector<TradeOrder>:",
      "pub func HistoryOrdersTotal(date_from: i64, date_to: i64): int:",
      "pub func Initialize(path: str = \"\", login: i64 = 0 as i64, password: str = \"\", server: str = \"\", timeout_ms: int = DEFAULT_TIMEOUT_MS, portable: bool = false): bool:",
      "pub func IsConnected(): bool:",
      "pub func LastError(): LastErrorInfo:",
      "pub func Login(login: i64, password: str = \"\", server: str = \"\", timeout_ms: int = DEFAULT_TIMEOUT_MS): bool:",
      "pub func MarketBookAdd(symbol: str): bool:",
      "pub func MarketBookGet(symbol: str): Vector<BookInfo>:",
      "pub func MarketBookRelease(symbol: str): bool:",
      "pub func Ok(): bool:",
      "pub func OrderCalcMargin(action: int, symbol: str, volume: f64, price: f64): f64:",
      "pub func OrderCalcProfit(action: int, symbol: str, volume: f64, price_open: f64, price_close: f64): f64:",
      "pub func OrderCheck(request: TradeRequest): OrderCheckResult:",
      "pub func OrderSend(request: TradeRequest): OrderSendResult:",
      "pub func OrdersGet(): Vector<TradeOrder>:",
      "pub func OrdersGetGroup(group: str): Vector<TradeOrder>:",
      "pub func OrdersGetSymbol(symbol: str): Vector<TradeOrder>:",
      "pub func OrdersGetTicket(ticket: i64): Vector<TradeOrder>:",
      "pub func OrdersTotal(): int:",
      "pub func PositionsGet(): Vector<TradePosition>:",
      "pub func PositionsGetGroup(group: str): Vector<TradePosition>:",
      "pub func PositionsGetSymbol(symbol: str): Vector<TradePosition>:",
      "pub func PositionsGetTicket(ticket: i64): Vector<TradePosition>:",
      "pub func PositionsTotal(): int:",
      "pub func SetBridgeUrl(url: str):",
      "pub func Shutdown():",
      "pub func SymbolInfoTick(symbol: str): Tick:",
      "pub func SymbolSelect(symbol: str, enable: bool): bool:",
      "pub func SymbolsGet(): Vector<SymbolInfo>:",
      "pub func SymbolsGetGroup(group: str): Vector<SymbolInfo>:",
      "pub func SymbolsTotal(): int:",
      "pub func Version(): VersionInfo:",
      "pub struct AccountInfo:",
      "pub struct BookInfo:",
      "pub struct LastErrorInfo:",
      "pub struct OrderCheckResult:",
      "pub struct OrderSendResult:",
      "pub struct Rate:",
      "pub struct SymbolInfo:",
      "pub struct TerminalInfo:",
      "pub struct Tick:",
      "pub struct TradeDeal:",
      "pub struct TradeOrder:",
      "pub struct TradePosition:",
      "pub struct TradeRequest:",
      "pub struct VersionInfo:"
    ],
    "net": [],
    "net.censor": [
      "pub const DecisionBlock := 2",
      "pub const DecisionDirect := 1",
      "pub const DecisionProxy := 0",
      "pub const KindHTTP := 2",
      "pub const KindSOCKS4 := 5",
      "pub const KindSOCKS5 := 4",
      "pub const KindSSH := 3",
      "pub const KindTLS := 1",
      "pub const KindTooShort := 6",
      "pub const KindUnknown := 0",
      "pub const MaxRecordPayload := 16000",
      "pub const SplitEven := 0",
      "pub const SplitFirst := 2",
      "pub const SplitRandom := 1",
      "pub func AddRule(s &: DomainSet, rule: str): bool:",
      "pub func AddRules(s &: DomainSet, text: str): int:",
      "pub func Classify(c: Classifier, host: str): int:",
      "pub func Concat(pieces: Vector<compress.ByteBuf>): compress.ByteBuf:",
      "pub func DecoyResponse(): str:",
      "pub func DelayMs(min_ms: int, max_ms: int): int:",
      "pub func ExtractSNI(p: void*, n: int): str:",
      "pub func FilteredList(): str:",
      "pub func FilteredSet(): DomainSet:",
      "pub func FragmentClientHello(p: void*, n: int, pieces: int, policy: int, seed: i64): Vector<compress.ByteBuf>:",
      "pub func FragmentRecords(p: void*, n: int, sizes: Vector<int>): Vector<compress.ByteBuf>:",
      "pub func FreeDomainSet(s &: DomainSet):",
      "pub func FreePieces(pieces &: Vector<compress.ByteBuf>):",
      "pub func FreeProbeGuard(g &: ProbeGuard):",
      "pub func FreeReplayCache(c &: ReplayCache):",
      "pub func FromHex(text: str): compress.ByteBuf:",
      "pub func GuardAllowed(g: ProbeGuard, ip: str, now_ms: i64): bool:",
      "pub func GuardRecordFail(g &: ProbeGuard, ip: str, now_ms: i64): bool:",
      "pub func GuardRecordOK(g &: ProbeGuard, ip: str):",
      "pub func IranDirectList(): str:",
      "pub func IranDirectSet(): DomainSet:",
      "pub func IsPrivateHost(host: str): bool:",
      "pub func KindName(k: int): str:",
      "pub func MatchDomain(s: DomainSet, host: str): bool:",
      "pub func NewClassifier(default_decision: int): Classifier:",
      "pub func NewDomainSet(): DomainSet:",
      "pub func NewProbeGuard(max_fails: int, window_ms: i64, ban_ms: i64): ProbeGuard:",
      "pub func NewReplayCache(ttl_ms: i64, max_entries: int): ReplayCache:",
      "pub func PadLength(payload_len: int, min_pad: int, max_pad: int, block: int): int:",
      "pub func ParseClientHello(p: void*, n: int): ClientHello:",
      "pub func RandomBytes(n: int): compress.ByteBuf:",
      "pub func RandomInt(lo: int, hi: int): int:",
      "pub func ReplaySeen(c &: ReplayCache, key: str, now_ms: i64): bool:",
      "pub func SNISplitSizes(p: void*, n: int, head_first: bool): Vector<int>:",
      "pub func ShouldFallback(authenticated: bool): bool:",
      "pub func Slice(p: void*, n: int, sizes: Vector<int>): Vector<compress.ByteBuf>:",
      "pub func Sniff(p: void*, n: int): int:",
      "pub func SplitSizes(total: int, policy: int, pieces: int, param: int, seed: i64): Vector<int>:",
      "pub func ToHex(b: compress.ByteBuf): str:",
      "pub func UnwrapRecord(p: void*, n: int, payload &: compress.ByteBuf): int:",
      "pub func WrapRecord(p: void*, n: int, pad: int): compress.ByteBuf:",
      "pub func WrapStream(p: void*, n: int, min_pad: int, max_pad: int): compress.ByteBuf:",
      "pub struct Classifier:",
      "pub struct ClientHello:",
      "pub struct DomainSet:",
      "pub struct ProbeGuard:",
      "pub struct ReplayCache:"
    ],
    "net.dns": [
      "pub const ClassIN := 1",
      "pub const TypeA := 1",
      "pub const TypeAAAA := 28",
      "pub const TypeCNAME := 5",
      "pub const TypeMX := 15",
      "pub const TypeNS := 2",
      "pub const TypePTR := 12",
      "pub const TypeSOA := 6",
      "pub const TypeTXT := 16",
      "pub func Decode(data: void*, n: int): Message:",
      "pub func DefaultServers(): Vector<str>:",
      "pub func EncodeQuery(name: str, qtype: int, id: int): compress.ByteBuf:",
      "pub func Lookup(host: str): str:",
      "pub func LookupA(name: str): Vector<str>:",
      "pub func LookupAAAA(name: str): Vector<str>:",
      "pub func LookupCNAME(name: str): str:",
      "pub func LookupMX(name: str): Records:",
      "pub func LookupPTR(ip: str): Vector<str>:",
      "pub func LookupTXT(name: str): Vector<str>:",
      "pub func QueryServer(server: str, name: str, qtype: int, timeout_ms: int): Message:",
      "pub struct Message:",
      "pub struct Question:",
      "pub struct Questions:",
      "pub struct Record:",
      "pub struct Records:"
    ],
    "net.doh": [
      "pub const KindDoH := 0",
      "pub const KindDoHGet := 1",
      "pub const KindDoT := 2",
      "pub const KindUDP := 3",
      "pub func Begzar(): Vector<Server>:",
      "pub func CacheSize(r: Resolver): int:",
      "pub func ClearCache(r: Resolver):",
      "pub func CloseIdleConnections():",
      "pub func Cloudflare(): Server:",
      "pub func Cloudflare6(): Server:",
      "pub func CloudflareDoT(): Server:",
      "pub func DefaultServers(): Vector<Server>:",
      "pub func Electro(): Vector<Server>:",
      "pub func EncodeResponse(id: int, name: str, qtype: int, rcode: int, records: Vector<dns.Record>): compress.ByteBuf:",
      "pub func FreeAnswer(a &: Answer):",
      "pub func FreeResponse(r &: Response):",
      "pub func FreeServers(v &: Vector<Server>):",
      "pub func Google(): Server:",
      "pub func Google6(): Server:",
      "pub func GoogleDoT(): Server:",
      "pub func IranPlainServers(): Vector<Server>:",
      "pub func IsIP(host: str): bool:",
      "pub func LookupA(r: Resolver, name: str): Vector<str>:",
      "pub func LookupAAAA(r: Resolver, name: str): Vector<str>:",
      "pub func LookupCNAME(r: Resolver, name: str): str:",
      "pub func LookupHost(r: Resolver, name: str): Vector<str>:",
      "pub func LookupTXT(r: Resolver, name: str): Vector<str>:",
      "pub func NewDoT(name: str, host: str, addr: str): Server:",
      "pub func NewPlain(name: str, addr: str): Server:",
      "pub func NewResolver(servers: Vector<Server>): Resolver:",
      "pub func NewServer(name: str, kind: int, url: str): Server:",
      "pub func ParseIPv4(text: str, out &: compress.ByteBuf): bool:",
      "pub func ParseIPv6(text: str, out &: compress.ByteBuf): bool:",
      "pub func ParseURL(raw: str): Url:",
      "pub func Quad9(): Server:",
      "pub func Quad96(): Server:",
      "pub func Quad9DoT(): Server:",
      "pub func Query(srv: Server, name: str, qtype: int, timeout_ms: int): Response:",
      "pub func QueryAddr(srv: Server, addr: str, name: str, qtype: int, timeout_ms: int): Response:",
      "pub func Radar(): Vector<Server>:",
      "pub func Resolve(r: Resolver, name: str, qtype: int): Answer:",
      "pub func ResolveAt(r: Resolver, name: str, qtype: int, now_ms: i64): Answer:",
      "pub func ReusedConnections(): i64:",
      "pub func Server403(): Vector<Server>:",
      "pub func SetBootstrap(r: Resolver, servers: Vector<Server>):",
      "pub func SetTTLLimits(r: Resolver, min_ttl: int, max_ttl: int, neg_ttl: int):",
      "pub func SetTimeout(r: Resolver, timeout_ms: int):",
      "pub func Shecan(): Vector<Server>:",
      "pub func StartStub(r: Resolver, host: str, port: int): Stub:",
      "pub func Stats(r: Resolver): ResolverStats:",
      "pub func StopStub(s: Stub):",
      "pub func StubServed(s: Stub): i64:",
      "pub func WithBootstrap(s: Server, addr: str): Server:",
      "pub func WithIPv6(s: Server): Server:",
      "pub struct Answer:",
      "pub struct CacheEntry:",
      "pub struct Resolver:",
      "pub struct ResolverStats:",
      "pub struct Response:",
      "pub struct Server:",
      "pub struct Stub:",
      "pub struct Url:"
    ],
    "net.email": [
      "pub func AuthLogin(c &: SMTPClient, username: str, password: str): bool:",
      "pub func AuthPlain(c &: SMTPClient, username: str, password: str): bool:",
      "pub func AuthXOAuth2(c &: SMTPClient, username: str, access_token: str): bool:",
      "pub func BuildMessage(from: str, to_addr: str, subject: str, text_body: str, html_body: str): str:",
      "pub func BuildXOAuth2(username: str, access_token: str): str:",
      "pub func Command(c &: IMAPClient, cmd: str): IMAPReply:",
      "pub func Data(c &: SMTPClient, raw_message: str): bool:",
      "pub func Dele(c &: POP3Client, msgnum: int): bool:",
      "pub func DialIMAP(host: str, port: int): IMAPClient:",
      "pub func DialIMAPTLS(host: str, port: int): IMAPClient:",
      "pub func DialPOP3(host: str, port: int): POP3Client:",
      "pub func DialPOP3TLS(host: str, port: int): POP3Client:",
      "pub func DialSMTP(host: str, port: int): SMTPClient:",
      "pub func DialSMTPTLS(host: str, port: int): SMTPClient:",
      "pub func Fetch(c &: IMAPClient, seq: str, items: str): Vector<str>:",
      "pub func Hello(c &: SMTPClient, domain: str): bool:",
      "pub func List(c &: IMAPClient, reference: str, pattern: str): Vector<str>:",
      "pub func Login(c &: IMAPClient, username: str, password: str): bool:",
      "pub func LoginXOAuth2(c &: IMAPClient, username: str, access_token: str): bool:",
      "pub func Logout(c &: IMAPClient):",
      "pub func MailFrom(c &: SMTPClient, addr: str): bool:",
      "pub func POP3List(c &: POP3Client): Vector<str>:",
      "pub func POP3Quit(c &: POP3Client):",
      "pub func Pass(c &: POP3Client, password: str): bool:",
      "pub func Quit(c &: SMTPClient):",
      "pub func RcptTo(c &: SMTPClient, addr: str): bool:",
      "pub func Retr(c &: POP3Client, msgnum: int): str:",
      "pub func Select(c &: IMAPClient, mailbox: str): bool:",
      "pub func Send(host: str, port: int, use_tls: bool, username: str, password: str, from: str, to_addr: str, subject: str, text_body: str, html_body: str): bool:",
      "pub func StartTLS(c &: SMTPClient, host: str): bool:",
      "pub func Stat(c &: POP3Client): str:",
      "pub func User(c &: POP3Client, username: str): bool:",
      "pub struct IMAPClient:",
      "pub struct IMAPReply:",
      "pub struct POP3Client:",
      "pub struct SMTPClient:"
    ],
    "net.fastcgi": [
      "pub func Add(p &: Params, name: str, value: str):",
      "pub func Connect(host: str, port: int, timeout_ms: int): tcp.Conn:",
      "pub func Execute(c: tcp.Conn, params: Params, data: void*, n: int, timeout_ms: int): Response:",
      "pub func Free(p &: Params):",
      "pub func FreeResponse(r &: Response):",
      "pub func NewParams(): Params:",
      "pub struct Header:",
      "pub struct Param:",
      "pub struct Params:",
      "pub struct Response:"
    ],
    "net.http": [
      "pub const SERVER_VERSION := SALAM_VERSION",
      "pub func AddHeader(ctx: Context, k: str, v: str):",
      "pub func AddHeader(h: i64, k: str, v: str): salam_ctx_kv_push(h, 2, k, v) end",
      "pub func Body(ctx: Context): str: ret salam_ctx_get(ctx.h, 3) end",
      "pub func Body(h: i64): str: ret salam_ctx_get(h, 3) end",
      "pub func Body(r: Response): str:",
      "pub func BodyBytes(ctx: Context): void *: ret salam_ctx_get(ctx.h, 3) as void * end",
      "pub func BodyBytes(h: i64): void *: ret salam_ctx_get(h, 3) as void * end",
      "pub func BodyLen(ctx: Context): int: ret _rc(ctx.h).body_len end",
      "pub func BodyLen(h: i64): int: ret _rc(h).body_len end",
      "pub func Bytes(ctx: Context, content_type: str, p: void *, n: int): Bytes(ctx.h, content_type, p, n) end",
      "pub func Bytes(h: i64, content_type: str, p: void *, n: int):",
      "pub func ClearCookie(ctx: Context, name: str): _ctx_set_cookie(ctx.h, ExpiredCookie(name, \"/\", \"\")) end",
      "pub func ClearCookie(h: i64, name: str):",
      "pub func ClearCookieAt(h: i64, name: str, path: str, domain: str):",
      "pub func ClearCookies():",
      "pub func ConnOf(ctx: Context): tcp.Conn:",
      "pub func CookieHeader(cookies: HashMap<str, str>): str:",
      "pub func CookieMap(r: Response): HashMap<str, str>:",
      "pub func CookieValue(ctx: Context, name: str): str: ret _ctx_cookie(ctx.h, name) end",
      "pub func CookieValue(h: i64, name: str): str:",
      "pub func Cookies(ctx: Context): HashMap<str, str>: ret _ctx_cookies(ctx.h) end",
      "pub func Cookies(h: i64): HashMap<str, str>:",
      "pub func Ctx(h: i64): Context:",
      "pub func Delete(url: str): Response: ret _simple(\"DELETE\", url, \"\", \"\") end",
      "pub func Delete(url: str): Response: ret this.Request(\"DELETE\", url, \"\") end",
      "pub func DeleteWith(url: str, headers: HashMap<str, str>): Response:",
      "pub func Do(method: str, url: str, headers: HashMap<str, str>, body: str, opts: RequestOptions): Response:",
      "pub func EnableAccessLog(s &: Server):",
      "pub func EncodeForm(params: HashMap<str, str>): str:",
      "pub func EndpointOk(e: Endpoint): bool:",
      "pub func Error(r: Response): str:",
      "pub func ExpiredCookie(name: str, path: str, domain: str): Cookie:",
      "pub func ExpiringCookie(name: str, value: str, max_age_seconds: int): Cookie:",
      "pub func File(h: i64, path: str, content_type: str): bool:",
      "pub func FileRange(h: i64, path: str, content_type: str, offset: int, length: int): bool:",
      "pub func FileStat(path: str, size &: i64, mtime &: i64): bool:",
      "pub func FileStat(path: str, size &: i64, mtime &: i64): bool:",
      "pub func FileStat(path: str, size &: i64, mtime &: i64): bool:",
      "pub func FileStat(path: str, size &: i64, mtime &: i64): bool:",
      "pub func FileStat(path: str, size &: i64, mtime &: i64): bool:",
      "pub func Form(ctx: Context, field: str): str:",
      "pub func Form(h: i64, field: str): str:",
      "pub func Free():",
      "pub func FreeRaw(r &: RawResponse):",
      "pub func FreeResponse(r: Response):",
      "pub func Get(url: str): Response: ret _simple(\"GET\", url, \"\", \"\") end",
      "pub func Get(url: str): Response: ret this.Request(\"GET\", url, \"\") end",
      "pub func GetBytesWith(url: str, headers: HashMap<str, str>): BytesResponse:",
      "pub func GetHeader(r: Response, name: str): str:",
      "pub func GetWith(url: str, headers: HashMap<str, str>): Response:",
      "pub func HasCookie(ctx: Context, name: str): bool: ret _ctx_has_cookie(ctx.h, name) end",
      "pub func HasCookie(h: i64, name: str): bool:",
      "pub func Head(url: str): Response: ret _simple(\"HEAD\", url, \"\", \"\") end",
      "pub func Head(url: str): Response: ret this.Request(\"HEAD\", url, \"\") end",
      "pub func HeadWith(url: str, headers: HashMap<str, str>): Response:",
      "pub func Header(ctx: Context, name: str): str:",
      "pub func Header(h: i64, name: str): str: ret salam_ctx_kv_get(h, 0, name) end",
      "pub func HeaderValue(head: str, name: str): str:",
      "pub func HeaderValues(r: Response, name: str): Vector<str>:",
      "pub func Headers(r: Response): HashMap<str, str>:",
      "pub func HideTokens(s &: Server):",
      "pub func Host(e: Endpoint): str:",
      "pub func Html(ctx: Context, html: str):",
      "pub func Html(h: i64, html: str):",
      "pub func IsEdge(): bool:",
      "pub func Json(ctx: Context, json: str):",
      "pub func Json(h: i64, json: str):",
      "pub func LocalPort(h: i64): int:",
      "pub func Method(ctx: Context): str: ret salam_ctx_get(ctx.h, 0) end",
      "pub func Method(h: i64): str: ret salam_ctx_get(h, 0) end",
      "pub func Multipart(ctx: Context): mime.MultipartParts: ret Multipart(ctx.h) end",
      "pub func Multipart(h: i64): mime.MultipartParts:",
      "pub func NewClient(): Client:",
      "pub func NewCookie(name: str, value: str): Cookie:",
      "pub func NewHeaders(): HashMap<str, str>:",
      "pub func NewServer(port: int): Server:",
      "pub func Ok(r: Response): bool:",
      "pub func Options(url: str): Response: ret _simple(\"OPTIONS\", url, \"\", \"\") end",
      "pub func Options(url: str): Response: ret this.Request(\"OPTIONS\", url, \"\") end",
      "pub func OptionsWith(url: str, headers: HashMap<str, str>): Response:",
      "pub func Own(h: i64, s: str): str: ret _ctx_own_once(h, s) end",
      "pub func Param(ctx: Context, name: str): str:",
      "pub func Param(h: i64, name: str): str: ret salam_ctx_kv_get(h, 1, name) end",
      "pub func ParseEndpoint(endpoint: str): Endpoint:",
      "pub func Patch(url: str, body: str): Response: ret _simple(\"PATCH\", url, \"\", body) end",
      "pub func Patch(url: str, body: str): Response: ret this.Request(\"PATCH\", url, body) end",
      "pub func PatchWith(url: str, body: str, headers: HashMap<str, str>): Response:",
      "pub func Path(ctx: Context): str: ret salam_ctx_get(ctx.h, 1) end",
      "pub func Path(h: i64): str: ret salam_ctx_get(h, 1) end",
      "pub func Port(e: Endpoint): int:",
      "pub func Post(url: str, body: str): Response: ret _simple(\"POST\", url, \"\", body) end",
      "pub func Post(url: str, body: str): Response: ret this.Request(\"POST\", url, body) end",
      "pub func PostWith(url: str, body: str, headers: HashMap<str, str>): Response:",
      "pub func Put(url: str, body: str): Response: ret _simple(\"PUT\", url, \"\", body) end",
      "pub func Put(url: str, body: str): Response: ret this.Request(\"PUT\", url, body) end",
      "pub func PutWith(url: str, body: str, headers: HashMap<str, str>): Response:",
      "pub func Query(ctx: Context, key: str): str:",
      "pub func Query(h: i64, key: str): str:",
      "pub func Raw(r: Response): str:",
      "pub func RawHeaders(r: Response): str:",
      "pub func RawLimit(): int: ret _raw_limit end",
      "pub func RawQuery(ctx: Context): str: ret salam_ctx_get(ctx.h, 2) end",
      "pub func RawQuery(h: i64): str: ret salam_ctx_get(h, 2) end",
      "pub func RawText(r: RawResponse): str:",
      "pub func Redirect(ctx: Context, url: str):",
      "pub func Redirect(h: i64, loc: str):",
      "pub func Request(method: str, url: str, body: str): Response:",
      "pub func Request(method: str, url: str, headers: HashMap<str, str>, body: str): Response:",
      "pub func RequestBytes(method: str, url: str, header_block: str, body: str): BytesResponse:",
      "pub func RequestRaw(method: str, url: str, header_block: str, body: str): Response:",
      "pub func RequestRaw(method: str, url: str, header_block: str, body: str): Response:",
      "pub func RequestWith(method: str, url: str, body: str, extra: HashMap<str, str>): Response:",
      "pub func Run(s: Server):",
      "pub func RunBackground(s: Server): bool:",
      "pub func RunBackgroundPort(s: Server): int:",
      "pub func RunTLS(s: Server, cert_file: str, key_file: str):",
      "pub func Secure(e: Endpoint): bool:",
      "pub func SendRaw(ep: Endpoint, head: str, body: void*, n: int): RawResponse:",
      "pub func SendRawTLS(",
      "pub func SendRawTimeout(",
      "pub func SetCookie(ctx: Context, c: Cookie): _ctx_set_cookie(ctx.h, c) end",
      "pub func SetCookie(h: i64, c: Cookie):",
      "pub func SetCookie(name: str, value: str):",
      "pub func SetCookieLines(r: Response): Vector<str>:",
      "pub func SetHeader(ctx: Context, k: str, v: str):",
      "pub func SetHeader(h: i64, k: str, v: str): salam_ctx_kv_add(h, 2, k, v) end",
      "pub func SetHeader(name: str, value: str):",
      "pub func SetHost(s &: Server, host: str):",
      "pub func SetIdleTimeout(idle_ms: int):",
      "pub func SetKeepAliveIdle(millis: int):",
      "pub func SetKeepAliveMaxRequests(n: int):",
      "pub func SetMaxBody(bytes: int):",
      "pub func SetMaxBodyBytes(n: int):",
      "pub func SetMaxHeaderBytes(n: int):",
      "pub func SetMaxRedirects(n: int):",
      "pub func SetRawLimit(bytes: int):",
      "pub func SetStatus(ctx: Context, code: int):",
      "pub func SetStatus(h: i64, code: int): salam_ctx_set_status(h, code) end",
      "pub func SetTimeout(total_ms: int):",
      "pub func Status(h: i64): int:",
      "pub func Status(r: Response): int:",
      "pub func Text(ctx: Context, text: str):",
      "pub func Text(h: i64, text: str):",
      "pub func UrlDecode(s: str): str:",
      "pub func Use(s &: Server, r: router.Router):",
      "pub func WithQuery(base: str, params: HashMap<str, str>): str:",
      "pub struct BytesResponse:",
      "pub struct Client:",
      "pub struct Context:",
      "pub struct Cookie:",
      "pub struct Endpoint:",
      "pub struct RawResponse:",
      "pub struct RequestOptions:",
      "pub struct Response:",
      "pub struct Server:"
    ],
    "net.http.middleware": [
      "pub func AllowAll(ctx: i64):",
      "pub func Cache(ctx: i64, seconds: int):",
      "pub func Log(ctx: i64):",
      "pub func NoCache(ctx: i64):",
      "pub func Secure(ctx: i64):"
    ],
    "net.http.session": [
      "pub const DefaultCookieName := \"salam_sid\"",
      "pub const DefaultMaxAge := 86400",
      "pub func CSRFToken(s &: Session): str:",
      "pub func CSRFVerify(s: Session, token: str): bool:",
      "pub func CleanupExpired(): int: ret _cleanup_expired() end",
      "pub func ClearValues(s &: Session):",
      "pub func Configure(cookie_name: str, max_age_seconds: int, secure: bool, same_site: str):",
      "pub func DeleteValue(s &: Session, key: str): bool:",
      "pub func Destroy(id: str): _store_delete(id) end",
      "pub func End(h: i64):",
      "pub func Get(id: str, ok &: bool): Session:",
      "pub func HasValue(s: Session, key: str): bool:",
      "pub func New(): Session:",
      "pub func Regenerate(h: i64, s &: Session):",
      "pub func Save(s: Session): _store_put(s.id, s) end",
      "pub func SetValue(s &: Session, key: str, value: str):",
      "pub func Start(h: i64): Session:",
      "pub func Value(s: Session, key: str): str:",
      "pub struct Session:",
      "pub struct SessionData:"
    ],
    "net.http.swagger": [
      "pub const BINARY_SCHEMA := \"{\\\"type\\\":\\\"string\\\",\\\"format\\\":\\\"binary\\\"}\"",
      "pub const FORM_TYPE := \"application/x-www-form-urlencoded\"",
      "pub const HTML_TYPE := \"text/html; charset=utf-8\"",
      "pub const JSON_TYPE := \"application/json\"",
      "pub const TEXT_SCHEMA := \"{\\\"type\\\":\\\"string\\\"}\"",
      "pub const TEXT_TYPE := \"text/plain; charset=utf-8\"",
      "pub func Accepts<T>(d &: Doc, description: str, sample: T):",
      "pub func AcceptsForm<T>(d &: Doc, description: str, sample: T):",
      "pub func AcceptsOptional<T>(d &: Doc, description: str, sample: T):",
      "pub func AcceptsRaw(d &: Doc, description: str, content_type: str, schema: str, required: bool):",
      "pub func ApiKeyAuth(d &: Doc, name: str, loc: str, param: str):",
      "pub func At(d &: Doc, method: str, pattern: str): bool:",
      "pub func BearerAuth(d &: Doc, name: str, format: str):",
      "pub func Contact(d &: Doc, name: str, url: str, email: str):",
      "pub func Cookie(d &: Doc, name: str, description: str, required: bool):",
      "pub func Deprecated(d &: Doc):",
      "pub func Describe(d &: Doc, text: str):",
      "pub func Details(d &: Doc, text: str):",
      "pub func Free(d &: Doc):",
      "pub func Header(d &: Doc, name: str, description: str, required: bool):",
      "pub func License(d &: Doc, name: str, url: str):",
      "pub func Missing(d: Doc, r: router.Router): Vector<str>:",
      "pub func Mount(d: Doc, r &: router.Router, prefix: str):",
      "pub func MountSpec(spec: str, title: str, r &: router.Router, prefix: str):",
      "pub func New(title: str, version: str): Doc:",
      "pub func OperationId(d &: Doc, id: str):",
      "pub func Page(title: str, spec_url: str): str:",
      "pub func PathParam(d &: Doc, name: str, description: str):",
      "pub func Problems(d: Doc): Vector<str>:",
      "pub func Query(d &: Doc, name: str, description: str, required: bool):",
      "pub func QueryEnum(",
      "pub func QueryTyped<T>(d &: Doc, name: str, description: str, required: bool, sample: T):",
      "pub func Returns<T>(d &: Doc, code: int, description: str, sample: T):",
      "pub func ReturnsFile(d &: Doc, code: int, description: str, content_type: str):",
      "pub func ReturnsHeader(d &: Doc, code: int, name: str, description: str):",
      "pub func ReturnsHtml(d &: Doc, code: int, description: str):",
      "pub func ReturnsNothing(d &: Doc, code: int, description: str):",
      "pub func ReturnsRaw(d &: Doc, code: int, description: str, content_type: str, schema: str):",
      "pub func ReturnsText(d &: Doc, code: int, description: str):",
      "pub func Route(d &: Doc, method: str, pattern: str): int:",
      "pub func Scan(d &: Doc, r: router.Router):",
      "pub func ScanPrefix(d &: Doc, r: router.Router, prefix: str):",
      "pub func Secure(d &: Doc, scheme: str):",
      "pub func Serve(d: Doc, port: int): bool:",
      "pub func ServeSpec(spec: str, title: str, port: int): bool:",
      "pub func Server(d &: Doc, url: str, note: str):",
      "pub func Spec(d: Doc): str:",
      "pub func SpecFromFile(path: str): str:",
      "pub func SpecIndent(d: Doc): str:",
      "pub func Summary(d &: Doc, text: str):",
      "pub func Tag(d &: Doc, name: str):",
      "pub func Undocumented(d: Doc): Vector<str>:",
      "pub func WriteSpec(d: Doc, path: str): bool:",
      "pub struct Definition:",
      "pub struct Doc:",
      "pub struct Op:",
      "pub struct Param:",
      "pub struct Reply:",
      "pub struct Scheme:"
    ],
    "net.http.validate": [
      "pub func Assert(ctx: i64, ok: bool, message: str):",
      "pub func IsEmail(value: str): bool:",
      "pub func Length(value: str, min_len: int, max_len: int): bool:",
      "pub func Matches(value: str, pattern: str): bool throws:",
      "pub func Required(value: str): bool:"
    ],
    "net.http2": [
      "pub const H2_CANCEL := 8",
      "pub const H2_COMPRESSION_ERROR := 9",
      "pub const H2_CONNECT_ERROR := 10",
      "pub const H2_CONTINUATION := 9",
      "pub const H2_DATA := 0",
      "pub const H2_DEFAULT_FRAME_SIZE := 16384",
      "pub const H2_DEFAULT_TABLE_SIZE := 4096",
      "pub const H2_DEFAULT_WINDOW := 65535",
      "pub const H2_ENHANCE_YOUR_CALM := 11",
      "pub const H2_FLAG_ACK := 1",
      "pub const H2_FLAG_END_HEADERS := 4",
      "pub const H2_FLAG_END_STREAM := 1",
      "pub const H2_FLAG_PADDED := 8",
      "pub const H2_FLAG_PRIORITY := 32",
      "pub const H2_FLOW_CONTROL_ERROR := 3",
      "pub const H2_FRAME_SIZE_ERROR := 6",
      "pub const H2_GOAWAY := 7",
      "pub const H2_HEADERS := 1",
      "pub const H2_HTTP_1_1_REQUIRED := 13",
      "pub const H2_INADEQUATE_SECURITY := 12",
      "pub const H2_INTERNAL_ERROR := 2",
      "pub const H2_MAX_FRAME_LIMIT := 16777215",
      "pub const H2_NO_ERROR := 0",
      "pub const H2_PING := 6",
      "pub const H2_POLL_CONNECTION := 0",
      "pub const H2_POLL_ERROR := 0 - 1",
      "pub const H2_PREFACE := \"PRI * HTTP/2.0\\r\\n\\r\\nSM\\r\\n\\r\\n\"",
      "pub const H2_PRIORITY := 2",
      "pub const H2_PROTOCOL_ERROR := 1",
      "pub const H2_PUSH_PROMISE := 5",
      "pub const H2_REFUSED_STREAM := 7",
      "pub const H2_RST_STREAM := 3",
      "pub const H2_SETTINGS := 4",
      "pub const H2_SETTINGS_ENABLE_PUSH := 2",
      "pub const H2_SETTINGS_HEADER_TABLE_SIZE := 1",
      "pub const H2_SETTINGS_INITIAL_WINDOW_SIZE := 4",
      "pub const H2_SETTINGS_MAX_CONCURRENT_STREAMS := 3",
      "pub const H2_SETTINGS_MAX_FRAME_SIZE := 5",
      "pub const H2_SETTINGS_MAX_HEADER_LIST_SIZE := 6",
      "pub const H2_SETTINGS_TIMEOUT := 4",
      "pub const H2_STREAM_CLOSED := 5",
      "pub const H2_STREAM_CLOSED_STATE := 4",
      "pub const H2_STREAM_HALF_CLOSED_LOCAL := 2",
      "pub const H2_STREAM_HALF_CLOSED_REMOTE := 3",
      "pub const H2_STREAM_IDLE := 0",
      "pub const H2_STREAM_OPEN := 1",
      "pub const H2_TRANSPORT_PLAIN := 0",
      "pub const H2_TRANSPORT_TLS := 1",
      "pub const H2_WINDOW_UPDATE := 8",
      "pub const HPACK_ENTRY_OVERHEAD := 32",
      "pub const HPACK_STATIC_COUNT := 61",
      "pub func ApplySettings(s &: Settings, f: Frame): bool:",
      "pub func AwaitAnyHeaders(c &: Conn, max_frames: int): int:",
      "pub func AwaitStreamEnd(c &: Conn, stream_id: int, max_frames: int): bool:",
      "pub func ClientHandshake(c &: Conn): bool:",
      "pub func CloseConn(c &: Conn):",
      "pub func CloseTransport(t &: Transport):",
      "pub func ConnOk(c: Conn): bool:",
      "pub func DataOf(f: Frame, ok &: bool): compress.ByteBuf:",
      "pub func DecodeHeaderList(t &: DynTable, block: compress.ByteBuf, ok &: bool): HeaderList:",
      "pub func DefaultSettings(): Settings:",
      "pub func DynCount(t: DynTable): int:",
      "pub func DynGet(t: DynTable, index: int): Header:",
      "pub func DynInsert(t &: DynTable, h: Header):",
      "pub func DynSetMaxSize(t &: DynTable, max_size: int):",
      "pub func DynSize(t: DynTable): int:",
      "pub func EncodeHeader(out &: compress.ByteBuf, t &: DynTable, h: Header, use_huffman: bool):",
      "pub func EncodeHeaderList(t &: DynTable, hl: HeaderList, use_huffman: bool): compress.ByteBuf:",
      "pub func EncodeTableSizeUpdate(out &: compress.ByteBuf, t &: DynTable, new_size: int):",
      "pub func ErrorCodeOf(f: Frame): int:",
      "pub func ErrorName(code: int): str:",
      "pub func FrameEncode(f: Frame): compress.ByteBuf:",
      "pub func FrameHasFlag(f: Frame, flag: int): bool:",
      "pub func FrameTypeName(kind: int): str:",
      "pub func FreeFrame(f &: Frame):",
      "pub func HeaderBlockOf(f: Frame, ok &: bool): compress.ByteBuf:",
      "pub func HeadersAdd(hl &: HeaderList, name: str, value: str):",
      "pub func HeadersAddSensitive(hl &: HeaderList, name: str, value: str):",
      "pub func HeadersCount(hl: HeaderList): int:",
      "pub func HeadersGet(hl: HeaderList, name: str): str:",
      "pub func HeadersHas(hl: HeaderList, name: str): bool:",
      "pub func HuffmanDecode(src: compress.ByteBuf, from: int, len: int, ok &: bool): compress.ByteBuf:",
      "pub func HuffmanDecodeBuf(src: compress.ByteBuf, ok &: bool): compress.ByteBuf:",
      "pub func HuffmanEncode(out &: compress.ByteBuf, p: void*, n: int):",
      "pub func HuffmanEncodeStr(s: str): compress.ByteBuf:",
      "pub func HuffmanEncodedLen(p: void*, n: int): int:",
      "pub func HuffmanEncodedLenStr(s: str): int:",
      "pub func MakeGoAway(last_stream_id: int, error_code: int, debug: str): Frame:",
      "pub func MakePing(payload: compress.ByteBuf, ack: bool): Frame:",
      "pub func MakeRstStream(stream_id: int, error_code: int): Frame:",
      "pub func MakeSettingsAck(): Frame:",
      "pub func MakeSettingsFrame(s: Settings): Frame:",
      "pub func MakeWindowUpdate(stream_id: int, increment: int): Frame:",
      "pub func NewConn(t: Transport, is_server: bool): Conn:",
      "pub func NewDynTable(max_size: int): DynTable:",
      "pub func NewFrame(kind: int, flags: int, stream_id: int): Frame:",
      "pub func NewHeader(name: str, value: str): Header:",
      "pub func NewSensitiveHeader(name: str, value: str): Header:",
      "pub func NextStreamId(c &: Conn): int:",
      "pub func PlainTransport(fd: i64): Transport:",
      "pub func Poll(c &: Conn): int:",
      "pub func PutSetting(out &: compress.ByteBuf, id: int, v: int):",
      "pub func ReadFrame(t &: Transport, max_frame_size: int): Frame:",
      "pub func ReadPreface(t &: Transport): bool:",
      "pub func SendData(c &: Conn, stream_id: int, body: compress.ByteBuf, end_stream: bool): bool:",
      "pub func SendGoAway(c &: Conn, error_code: int, debug: str): bool:",
      "pub func SendHeaders(c &: Conn, stream_id: int, hl: HeaderList, end_stream: bool): bool:",
      "pub func SendPing(c &: Conn, payload: compress.ByteBuf): bool:",
      "pub func SendRstStream(c &: Conn, stream_id: int, error_code: int): bool:",
      "pub func SendTrailers(c &: Conn, stream_id: int, hl: HeaderList): bool:",
      "pub func ServerHandshake(c &: Conn): bool:",
      "pub func StaticGet(index: int): Header:",
      "pub func StreamAt(c: Conn, id: int): Stream:",
      "pub func StreamCount(c: Conn): int:",
      "pub func TLSTransport(c: tls.Conn): Transport:",
      "pub func TableFind(t: DynTable, name: str, value: str, exact &: bool): int:",
      "pub func TableGet(t: DynTable, index: int, ok &: bool): Header:",
      "pub func WindowIncrementOf(f: Frame): int:",
      "pub func WriteFrame(t &: Transport, f: Frame): bool:",
      "pub func WritePreface(t &: Transport): bool:",
      "pub struct Conn:",
      "pub struct DynTable:",
      "pub struct Frame:",
      "pub struct Header:",
      "pub struct HeaderList:",
      "pub struct HufTables:",
      "pub struct Settings:",
      "pub struct Stream:",
      "pub struct StreamTable:",
      "pub struct TlsBox:",
      "pub struct Transport:"
    ],
    "net.httpd": [
      "pub func Check(path: str): int:",
      "pub func LoadFile(path: str): bool:",
      "pub func LoadText(text: str, file: str): bool:",
      "pub func LocationFor(site: int, path: str): int:",
      "pub func LocationPattern(loc: int): str:",
      "pub func ParseDuration(text: str): i64:",
      "pub func ProblemAt(i: int): str:",
      "pub func ProblemCount(): int:",
      "pub func Run(): int:",
      "pub func SiteCount(): int:",
      "pub func SiteFor(host: str, port: int): int:",
      "pub func SiteNames(site: int): str:",
      "pub func Stop():"
    ],
    "net.httpd.conf": [
      "pub const VAL_NUM := 2",
      "pub const VAL_STR := 1",
      "pub const VAL_WORD := 0",
      "pub func ChildAt(d: Doc, node: int, i: int): int:",
      "pub func Count(d: Doc, node: int): int:",
      "pub func ErrorText(d: Doc, file: str): str:",
      "pub func Find(d: Doc, node: int, name: str): int:",
      "pub func Free(d &: Doc):",
      "pub func Name(d: Doc, node: int): str:",
      "pub func Parse(text: str): Doc:",
      "pub func Root(): int:",
      "pub func ValueText(d: Doc, node: int, i: int): str:",
      "pub struct Doc:",
      "pub struct Node:",
      "pub struct Value:"
    ],
    "net.httpproxy": [
      "pub const MaxHeadBytes := 65536",
      "pub const MaxHeaders := 200",
      "pub func AddUser(cfg &: ServerConfig, user: str, pass: str):",
      "pub func AllowPrivate(cfg &: ServerConfig, enabled: bool):",
      "pub func BasicCredentials(value: str, user &: str, pass &: str): bool:",
      "pub func BasicHeader(user: str, pass: str): str:",
      "pub func ClientHandshake(s: dyn tunnel.Stream, c: Client, host: str, port: int): HandshakeResult:",
      "pub func Close():",
      "pub func CloseWrite():",
      "pub func Connect(c: Client, host: str, port: int): ConnectResult:",
      "pub func DialConn(c: Client, host: str, port: int): tcp.Conn:",
      "pub func Get(c: Client, url: str): Response:",
      "pub func Handle(cfg: ServerConfig, s: dyn tunnel.Stream):",
      "pub func Handshake(s: dyn tunnel.Stream): tunnel.Session:",
      "pub func Handshake(s: dyn tunnel.Stream, target: tunnel.Addr): bool:",
      "pub func HeaderCount(h: Head, name: str): int:",
      "pub func HeaderGet(h: Head, name: str): str:",
      "pub func HeaderHas(h: Head, name: str): bool:",
      "pub func HeaderHasToken(h: Head, name: str, token: str): bool:",
      "pub func IsHopByHop(name: str): bool:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func NewClient(host: str, port: int): Client:",
      "pub func NewClientAuth(host: str, port: int, username: str, password: str): Client:",
      "pub func NewConnector(c: Client): HttpConnector:",
      "pub func NewInbound(cfg: ServerConfig): HttpInbound:",
      "pub func NewServerConfig(port: int): ServerConfig:",
      "pub func Ok(): bool:",
      "pub func ParseRequestHead(text: str): Head:",
      "pub func ParseResponseHead(text: str): Head:",
      "pub func ParseURL(s: str): URL:",
      "pub func Post(c: Client, url: str, content_type: str, body: str): Response:",
      "pub func Read(_max: int): str:",
      "pub func ReadBytes(_buf: void*, _max: int): int:",
      "pub func Reply(s: dyn tunnel.Stream, sess: tunnel.Session, ok: bool):",
      "pub func Request(c: Client, method: str, url: str, headers: str, body: str): Response:",
      "pub func ResponseText(code: int, extra_headers: str, body: str, close: bool): str:",
      "pub func Serve(cfg: ServerConfig): bool:",
      "pub func Server(): tunnel.Addr:",
      "pub func SetAuth(cfg &: ServerConfig, check: func (str, str) bool):",
      "pub func SetConnector(cfg &: ServerConfig, connect: func (str, int) socks.Outbound):",
      "pub func SetDeadline(millis: int):",
      "pub func SetDialer(cfg &: ServerConfig, d: dyn tunnel.Dialer):",
      "pub func SetPolicy(cfg &: ServerConfig, p: tunnel.DestPolicy):",
      "pub func SetTLS(cfg &: ServerConfig, cert_file: str, key_file: str): bool:",
      "pub func Shutdown():",
      "pub func SplitHostPort(s: str, default_port: int): HostPort:",
      "pub func Start(cfg: ServerConfig): Server:",
      "pub func StatusReason(code: int): str:",
      "pub func Stop(sv: Server):",
      "pub func Write(data: str): int:",
      "pub func WriteBytes(ptr: void*, n: int): int:",
      "pub struct Client:",
      "pub struct ConnectResult:",
      "pub struct HandshakeResult:",
      "pub struct Head:",
      "pub struct HostPort:",
      "pub struct HttpConnector:",
      "pub struct HttpInbound:",
      "pub struct Response:",
      "pub struct Server:",
      "pub struct ServerConfig:",
      "pub struct URL:"
    ],
    "net.internal": [],
    "net.internal.errors": [
      "pub const KindAddressInUse := 5",
      "pub const KindClosed := 9",
      "pub const KindConnectionRefused := 2",
      "pub const KindConnectionReset := 3",
      "pub const KindDNSFailure := 7",
      "pub const KindHostUnreachable := 4",
      "pub const KindInvalidArgument := 10",
      "pub const KindNone := 0",
      "pub const KindProtocolError := 6",
      "pub const KindTimeout := 1",
      "pub const KindWouldBlock := 8",
      "pub func IsClosed(e: NetError): bool:",
      "pub func IsError(e: NetError): bool:",
      "pub func IsRefused(e: NetError): bool:",
      "pub func IsTimeout(e: NetError): bool:",
      "pub func IsWouldBlock(e: NetError): bool:",
      "pub func KindName(kind: int): str:",
      "pub func New(kind: int, message: str): NetError:",
      "pub func NewSys(kind: int, message: str, sys_errno: int): NetError:",
      "pub func None(): NetError:",
      "pub func String(e: NetError): str:",
      "pub struct NetError:"
    ],
    "net.internal.netbuf": [
      "pub func Available(b: Buffer): int:",
      "pub func Compact(b &: Buffer):",
      "pub func Consume(b &: Buffer, n: int):",
      "pub func Free(b &: Buffer):",
      "pub func New(): Buffer:",
      "pub func NewCap(capacity: int): Buffer:",
      "pub func Peek(b: Buffer, n: int): compress.ByteBuf:",
      "pub func ReadN(b &: Buffer, n: int): compress.ByteBuf:",
      "pub func Reset(b &: Buffer):",
      "pub func Unread(b: Buffer): int:",
      "pub func WriteBuf(b &: Buffer, src: compress.ByteBuf):",
      "pub func WriteBytes(b &: Buffer, p: void*, n: int):",
      "pub func WriteStr(b &: Buffer, s: str):",
      "pub struct Buffer:"
    ],
    "net.internal.nettls": [
      "pub func Close(c &: tls.Conn):",
      "pub func ConnError(c: tls.Conn): str:",
      "pub func ConnOk(c: tls.Conn): bool:",
      "pub func Dial(host: str, port: int, cfg: tls.Config): tls.Conn:",
      "pub func NewConfig(server_name: str): tls.Config:",
      "pub func Read(c &: tls.Conn, max: int): str:",
      "pub func ReadBytes(c &: tls.Conn, buf: void*, max: int): int:",
      "pub func WrapClient(fd: i64, cfg: tls.Config): tls.Conn:",
      "pub func Write(c &: tls.Conn, data: str): int:",
      "pub func WriteBytes(c &: tls.Conn, ptr: void*, n: int): int:"
    ],
    "net.internal.poller": [
      "pub const BackendEpoll := 1",
      "pub const BackendKqueue := 2",
      "pub const BackendPoll := 4",
      "pub const BackendWSAPoll := 3",
      "pub const Readable := 1",
      "pub const Writable := 2",
      "pub func Close(p &: Poller):",
      "pub func Modify(p &: Poller, fd: i64, interest: int): bool:",
      "pub func New(): Poller:",
      "pub func Register(p &: Poller, fd: i64, interest: int): bool:",
      "pub func Unregister(p &: Poller, fd: i64): bool:",
      "pub func Wait(p &: Poller, timeout_ms: int): Events:",
      "pub struct Event:",
      "pub struct Events:",
      "pub struct Poller:",
      "pub struct RegisteredFd:",
      "pub struct RegisteredFds:"
    ],
    "net.internal.rawsock": [
      "pub const AF_INET := 2",
      "pub const AF_INET6 := 10",
      "pub const AF_INET6 := 23",
      "pub const AF_INET6 := 24",
      "pub const AF_INET6 := 28",
      "pub const AF_INET6 := 30",
      "pub const SOCK_DGRAM := 2",
      "pub const SOCK_STREAM := 1",
      "pub const ShutRd := 0",
      "pub const ShutRdWr := 2",
      "pub const ShutWr := 1",
      "pub func Accept(server: Socket): Socket:",
      "pub func CanonIP(host: str): str:",
      "pub func Close(sock: Socket):",
      "pub func Connect(host: str, port: int): Socket:",
      "pub func ConnectAnyTimeout(hosts &: Vector<str>, port: int, millis: int): Socket:",
      "pub func ConnectProto(host: str, port: int, socktype: int): Socket:",
      "pub func ConnectTimeout(host: str, port: int, millis: int): Socket:",
      "pub func FromFd(fd: i64): Socket:",
      "pub func HexIPv6(host: str): str:",
      "pub func HostPort(host: str, port: int): str:",
      "pub func IsIPv4(host: str): bool:",
      "pub func IsIPv6(host: str): bool:",
      "pub func Listen(port: int): Socket:",
      "pub func ListenDual(port: int, socktype: int): Socket:",
      "pub func ListenOn(host: str, port: int, socktype: int): Socket:",
      "pub func ListenV6(host: str, port: int, socktype: int, v6only: bool): Socket:",
      "pub func LocalAddr(s: Socket, out_port &: int): str:",
      "pub func LocalPort(s: Socket): int:",
      "pub func Ok(sock: Socket): bool:",
      "pub func Open(family: int, socktype: int): Socket:",
      "pub func OpenDual(socktype: int): Socket:",
      "pub func OpenFor(host: str, socktype: int): Socket:",
      "pub func PeerAddr(s: Socket, out_port &: int): str:",
      "pub func PeerHost(s: Socket): str:",
      "pub func Recv(sock: Socket, max: int): str:",
      "pub func RecvBytes(sock: Socket, buf: void*, max: int): int:",
      "pub func RecvFrom(sock: Socket, max: int, out_host &: str, out_port &: int): str:",
      "pub func RecvFromBytes(sock: Socket, buf: void*, max: int, out_host &: str, out_port &: int): int:",
      "pub func Resolve(host: str): str:",
      "pub func Resolve6(host: str): str:",
      "pub func ResolveAddr4Raw(host: str): int:",
      "pub func ResolveAll(host: str): Vector<str>:",
      "pub func ResolveAny(host: str): str:",
      "pub func Send(sock: Socket, data: str): int:",
      "pub func SendBytes(sock: Socket, ptr: void*, n: int): int:",
      "pub func SendTo(sock: Socket, host: str, port: int, data: str): int:",
      "pub func SendToBytes(sock: Socket, host: str, port: int, ptr: void*, n: int): int:",
      "pub func SetBroadcast(sock: Socket, enable: bool):",
      "pub func SetKeepAlive(sock: Socket, enable: bool):",
      "pub func SetNoDelay(sock: Socket, enable: bool):",
      "pub func SetNonBlocking(sock: Socket, enable: bool):",
      "pub func SetOpt(sock: Socket, level: int, optname: int, ptr: void*, optlen: int): int:",
      "pub func SetTimeout(sock: Socket, millis: int):",
      "pub func SetV6Only(sock: Socket, enable: bool): bool:",
      "pub func Shutdown(sock: Socket):",
      "pub func ShutdownWrite(sock: Socket):",
      "pub func V6Prefix(host: str, bits: int): str:",
      "pub func WaitReadable(sock: Socket, timeout_ms: int): bool:",
      "pub func WaitReadable2(a: Socket, b: Socket, timeout_ms: int): int:",
      "pub struct Socket:"
    ],
    "net.mime": [
      "pub func CloseWriter(w &: MultipartWriter): compress.ByteBuf:",
      "pub func ContentTypeHeader(w: MultipartWriter): str:",
      "pub func FreeMultipart(parts &: MultipartParts):",
      "pub func MimeExt(ext: str): str:",
      "pub func MimeType(p: str): str:",
      "pub func NewMultipartWriter(): MultipartWriter:",
      "pub func ParamGet(ct: ContentType, key: str): str:",
      "pub func ParseContentType(header: str): ContentType:",
      "pub func ParseMultipart(data: void*, n: int, boundary: str): MultipartParts:",
      "pub func PartIndex(parts: MultipartParts, name: str): int:",
      "pub func PartValue(parts: MultipartParts, name: str): str:",
      "pub func StatusText(code: int): str:",
      "pub func WriteField(w &: MultipartWriter, name: str, value: str):",
      "pub func WriteFileBytes(w &: MultipartWriter, name: str, filename: str, content_type: str, data: void*, n: int):",
      "pub func WriteFileStr(w &: MultipartWriter, name: str, filename: str, content_type: str, data: str):",
      "pub struct ContentType:",
      "pub struct ContentTypeParam:",
      "pub struct ContentTypeParams:",
      "pub struct MultipartHeader:",
      "pub struct MultipartHeaders:",
      "pub struct MultipartPart:",
      "pub struct MultipartParts:",
      "pub struct MultipartWriter:"
    ],
    "net.nats": [
      "pub func Ack(nc &: Conn, m: Msg): bool:",
      "pub func AddConsumer(nc &: Conn, stream: str, durable: str, filter: str, timeout_ms: int): JSResult:",
      "pub func AddPushConsumer(nc &: Conn, stream: str, durable: str, filter: str, deliver: str, queue: str, timeout_ms: int): JSResult:",
      "pub func AddStream(nc &: Conn, name: str, subjects: Vector<str>, timeout_ms: int): JSResult:",
      "pub func AutoUnsubscribe(nc &: Conn, s: Subscription, max: int): bool:",
      "pub func BufferedBytes(nc: Conn): int:",
      "pub func Close(nc &: Conn):",
      "pub func Connect(url: str): Conn:",
      "pub func ConnectWith(url: str, opts: Options): Conn:",
      "pub func DefaultOptions(): Options:",
      "pub func DeleteConsumer(nc &: Conn, stream: str, durable: str, timeout_ms: int): JSResult:",
      "pub func DeleteStream(nc &: Conn, name: str, timeout_ms: int): JSResult:",
      "pub func Delivered(nc: Conn, s: Subscription): int:",
      "pub func Drain(nc &: Conn, timeout_ms: int): bool:",
      "pub func Fetch(nc &: Conn, stream: str, durable: str, batch: int, timeout_ms: int): Batch:",
      "pub func Flush(nc &: Conn, timeout_ms: int): bool:",
      "pub func HeaderAdd(h &: Header, key: str, value: str):",
      "pub func HeaderCount(h: Header): int:",
      "pub func HeaderDel(h &: Header, key: str):",
      "pub func HeaderEncode(h: Header): str:",
      "pub func HeaderGet(h: Header, key: str): str:",
      "pub func HeaderHas(h: Header, key: str): bool:",
      "pub func HeaderParse(block: str, status &: int, status_text &: str): Header:",
      "pub func HeaderSet(h &: Header, key: str, value: str):",
      "pub func HeaderValues(h: Header, key: str): Vector<str>:",
      "pub func InProgress(nc &: Conn, m: Msg): bool:",
      "pub func IsClosed(nc: Conn): bool:",
      "pub func IsConnected(nc: Conn): bool:",
      "pub func IsReconnecting(nc: Conn): bool:",
      "pub func IsValidSubscription(nc: Conn, s: Subscription): bool:",
      "pub func JSPublish(nc &: Conn, subject: str, data: str, timeout_ms: int): PubAck:",
      "pub func JSPublishHeaders(nc &: Conn, subject: str, h: Header, data: str, timeout_ms: int): PubAck:",
      "pub func JSRequest(nc &: Conn, api: str, body: str, timeout_ms: int): JSResult:",
      "pub func KVCreate(nc &: Conn, bucket: str, history: int, timeout_ms: int): JSResult:",
      "pub func KVDelete(nc &: Conn, bucket: str, key: str, timeout_ms: int): PubAck:",
      "pub func KVDeleteBucket(nc &: Conn, bucket: str, timeout_ms: int): JSResult:",
      "pub func KVGet(nc &: Conn, bucket: str, key: str, timeout_ms: int): KVEntry:",
      "pub func KVPut(nc &: Conn, bucket: str, key: str, value: str, timeout_ms: int): PubAck:",
      "pub func LastError(nc: Conn): str:",
      "pub func MaxPayload(nc: Conn): int:",
      "pub func MsgSequence(m: Msg): int:",
      "pub func Nak(nc &: Conn, m: Msg): bool:",
      "pub func NewHeader(): Header:",
      "pub func NewInbox(nc: Conn): str:",
      "pub func NextMsg(nc &: Conn, s: Subscription, timeout_ms: int): Msg:",
      "pub func NextPush(nc &: Conn, s: Subscription, timeout_ms: int): Msg:",
      "pub func Pending(nc: Conn, s: Subscription): int:",
      "pub func Publish(nc &: Conn, subject: str, data: str): bool:",
      "pub func PublishHeaders(nc &: Conn, subject: str, h: Header, data: str): bool:",
      "pub func PublishMsg(nc &: Conn, m: Msg): bool:",
      "pub func PublishRequest(nc &: Conn, subject: str, reply: str, data: str): bool:",
      "pub func Pump(nc &: Conn, timeout_ms: int): int:",
      "pub func PurgeStream(nc &: Conn, name: str, timeout_ms: int): JSResult:",
      "pub func QueueSubscribe(nc &: Conn, subject: str, queue: str): Subscription:",
      "pub func Reconnects(nc: Conn): int:",
      "pub func Request(nc &: Conn, subject: str, data: str, timeout_ms: int): Msg:",
      "pub func RequestMsg(nc &: Conn, subject: str, h: Header, data: str, timeout_ms: int): Msg:",
      "pub func Respond(nc &: Conn, m: Msg, data: str): bool:",
      "pub func StreamInfo(nc &: Conn, name: str, timeout_ms: int): StreamState:",
      "pub func SubjectMatches(pattern: str, subject: str): bool:",
      "pub func Subscribe(nc &: Conn, subject: str): Subscription:",
      "pub func SubscribeHandler(nc &: Conn, subject: str, queue: str, handler: func (Msg)): Subscription:",
      "pub func SubscribeReplier(nc &: Conn, subject: str, queue: str, handler: func (Msg) str): Subscription:",
      "pub func SubscriptionCount(nc: Conn): int:",
      "pub func Term(nc &: Conn, m: Msg): bool:",
      "pub func Unsubscribe(nc &: Conn, s: Subscription): bool:",
      "pub func ValidSubject(subject: str): bool:",
      "pub struct Batch:",
      "pub struct Conn:",
      "pub struct Header:",
      "pub struct JSResult:",
      "pub struct KVEntry:",
      "pub struct Msg:",
      "pub struct Options:",
      "pub struct PubAck:",
      "pub struct ServerInfo:",
      "pub struct Stats:",
      "pub struct StreamState:",
      "pub struct Subscription:"
    ],
    "net.proxy": [
      "pub const TypeHTTP := 0",
      "pub const TypeSOCKS5 := 1",
      "pub func Add(c &: Chain, p: Proxy):",
      "pub func Dial(p: Proxy, target_host: str, target_port: int): tcp.Conn:",
      "pub func DialChain(c: Chain, target_host: str, target_port: int): tcp.Conn:",
      "pub func NewChain(): Chain:",
      "pub func NewHTTPProxy(addr: str): Proxy:",
      "pub func NewHTTPProxyAuth(addr: str, username: str, password: str): Proxy:",
      "pub func NewSOCKS5Proxy(addr: str): Proxy:",
      "pub func NewSOCKS5ProxyAuth(addr: str, username: str, password: str): Proxy:",
      "pub struct Chain:",
      "pub struct Proxy:"
    ],
    "net.reality": [
      "pub func Accept(fd: i64, ss: ServerSettings): Accepted:",
      "pub func DialOver(fd: i64, s: Settings): tls.Conn:",
      "pub func FormatParams(s: Settings): str:",
      "pub func GenerateKey(): KeyPair:",
      "pub func NewShortId(bytes: int): str:",
      "pub func ParseParams(query: str): Settings:",
      "pub func PublicKeyOf(private_key: str): str:",
      "pub func ValidPublicKey(public_key: str): bool:",
      "pub func ValidShortId(short_id: str): bool:",
      "pub struct Accepted:",
      "pub struct KeyPair:",
      "pub struct ServerSettings:",
      "pub struct Settings:"
    ],
    "net.router": [
      "pub func Delete(r &: Router, path: str, fn: i64): _add(r, \"DELETE\", path, fn) end",
      "pub func Dispatch(r: Router, method: str, path: str): Match:",
      "pub func EnableListing(r &: Router):",
      "pub func FreeMatch(m &: Match):",
      "pub func Get(r &: Router, path: str, fn: i64): _add(r, \"GET\", path, fn) end",
      "pub func Group(r &: Router, prefix: str, method: str, path: str, fn: i64):",
      "pub func Head(r &: Router, path: str, fn: i64): _add(r, \"HEAD\", path, fn) end",
      "pub func Method(r &: Router, method: str, path: str, fn: i64):",
      "pub func NewRouter(): Router:",
      "pub func Options(r &: Router, path: str, fn: i64): _add(r, \"OPTIONS\", path, fn) end",
      "pub func ParamGet(m: Match, key: str): str:",
      "pub func Patch(r &: Router, path: str, fn: i64): _add(r, \"PATCH\", path, fn) end",
      "pub func Post(r &: Router, path: str, fn: i64): _add(r, \"POST\", path, fn) end",
      "pub func Put(r &: Router, path: str, fn: i64): _add(r, \"PUT\", path, fn) end",
      "pub func SetFallback(r &: Router, fn: i64):",
      "pub func Static(r &: Router, prefix: str, dir: str):",
      "pub struct Match:",
      "pub struct Param:",
      "pub struct ParamList:",
      "pub struct Route:",
      "pub struct Router:"
    ],
    "net.shadowsocks": [
      "pub const ATYP_DOMAIN := 3",
      "pub const ATYP_IPV4 := 1",
      "pub const ATYP_IPV6 := 4",
      "pub const EIH_LEN := 16",
      "pub const IDENTITY_CONTEXT := \"shadowsocks 2022 identity subkey\"",
      "pub const MAX_CHUNK := 0x3fff",
      "pub const OBFS_HTTP := 1",
      "pub const OBFS_NONE := 0",
      "pub const OBFS_TLS := 2",
      "pub const TAG_LEN := 16",
      "pub func Accept(s: Server): Conn:",
      "pub func AcceptOver(s: Server, io: dyn tunnel.Stream): Conn:",
      "pub func AddUser(s: Server, name: str, password: str): bool:",
      "pub func AsStream(c: Conn): dyn tunnel.Stream:",
      "pub func Blake3DeriveKey(context: str, p: void*, n: int, out: void*, outlen: int):",
      "pub func Blake3Hash(p: void*, n: int, out: void*, outlen: int):",
      "pub func Blake3KeyedHash(key32: void*, p: void*, n: int, out: void*, outlen: int):",
      "pub func Blake3SessionKey(psk: void*, klen: int, salt: void*, slen: int, out: void*):",
      "pub func BufAppend(b &: Buf, src: void*, n: int):",
      "pub func BufAppendByte(b &: Buf, v: int):",
      "pub func BufAppendStr(b &: Buf, s: str):",
      "pub func BufAt(b: Buf, off: int): void*:",
      "pub func BufConsume(b &: Buf, n: int):",
      "pub func BufFree(b &: Buf):",
      "pub func BufFromHex(hex: str): Buf:",
      "pub func BufReserve(b &: Buf, extra: int):",
      "pub func BufToHex(b: Buf): str:",
      "pub func BufToStr(b: Buf): str:",
      "pub func BufWipe(b &: Buf):",
      "pub func BytesToKey(password: str, klen: int, out: void*):",
      "pub func ChainFree(c &: KeyChain):",
      "pub func ChainKey(c: KeyChain, i: int): void*:",
      "pub func ChainOf(m: Method, password: str): KeyChain:",
      "pub func Close():",
      "pub func Close(c: Conn):",
      "pub func CloseWrite():",
      "pub func DecodeAll(d &: Decoder, data: void*, n: int, out &: Buf): bool:",
      "pub func DecoderFree(d &: Decoder):",
      "pub func Destroy(s: Server):",
      "pub func Dial(cfg: Config, target_host: str, target_port: int): Conn:",
      "pub func DialOver(s: dyn tunnel.Stream, cfg: Config, target_host: str, target_port: int): Conn:",
      "pub func EihOpen(ipsk: void*, klen: int, salt: void*, slen: int, block16: void*, out_hash16: void*): bool:",
      "pub func EihSeal(ipsk: void*, klen: int, salt: void*, slen: int, next_psk: void*, out16: void*): bool:",
      "pub func EmitSalt(e &: Encoder, out &: Buf):",
      "pub func EncodeStream(e &: Encoder, data: void*, n: int, out &: Buf):",
      "pub func EncodeTarget(host: str, port: int, out &: Buf): bool:",
      "pub func EncoderFree(e &: Encoder):",
      "pub func Feed(d &: Decoder, data: void*, n: int):",
      "pub func FilterCheck(f &: SaltFilter, salt: void*, n: int): bool:",
      "pub func FilterFree(f &: SaltFilter):",
      "pub func FilterSeen(f &: SaltFilter, salt: void*, n: int): bool:",
      "pub func FormatUri(u: Uri): str:",
      "pub func HexOf(p: void*, n: int): str:",
      "pub func HkdfSha1(key: void*, klen: int, salt: void*, slen: int, info: str, out: void*, olen: int):",
      "pub func IdentityHash(psk: void*, klen: int, out16: void*):",
      "pub func IdentityKey(ipsk: void*, klen: int, salt: void*, slen: int, out: void*):",
      "pub func Listen(port: int, method: str, password: str): Server:",
      "pub func ListenObfs(port: int, method: str, password: str, obfs: str): Server:",
      "pub func ListenOn(host: str, port: int, method: str, password: str, obfs: str): Server:",
      "pub func LookupMethod(name: str): Method:",
      "pub func MakeKey(m: Method, password: str): Buf:",
      "pub func NewBuf(cap0: int): Buf:",
      "pub func NewDecoder(m: Method, master: void*): Decoder:",
      "pub func NewEncoder(m: Method, master: void*, salt: void*): Encoder:",
      "pub func NewEncoderRandom(m: Method, master: void*): Encoder:",
      "pub func NewSaltFilter(cap: int): SaltFilter:",
      "pub func NewUdpSession(): UdpSession:",
      "pub func NextChunk(d &: Decoder, out &: Buf): int:",
      "pub func ObfsFree(o &: Obfs):",
      "pub func ObfsInit(mode: int, server: bool, host: str): Obfs:",
      "pub func ObfsMode(name: str): int:",
      "pub func ObfsUnwrap(o &: Obfs, p: void*, n: int, out &: Buf): int:",
      "pub func ObfsWrap(o &: Obfs, p: void*, n: int, out &: Buf):",
      "pub func Ok(): bool:",
      "pub func Ok(c: Conn): bool:",
      "pub func PackUdp(m: Method, key: void*, host: str, port: int, data: void*, n: int, out &: Buf): bool:",
      "pub func PackUdp2022(",
      "pub func ParsePlugin(text: str): Plugin:",
      "pub func ParseTarget(p: void*, n: int, t &: Target): int:",
      "pub func ParseUri(text: str): Uri:",
      "pub func PasswordKey(m: Method, password: str): Buf:",
      "pub func PluginFree(p: Plugin):",
      "pub func PluginGet(p: Plugin, key: str, fallback: str): str:",
      "pub func PluginHas(p: Plugin, key: str): bool:",
      "pub func PtrAt(p: void*, off: int): void*:",
      "pub func RandomSalt(m: Method, out: void*):",
      "pub func Read(c: Conn, buf: void*, max: int): int:",
      "pub func Read(max: int): str:",
      "pub func ReadBytes(buf: void*, max: int): int:",
      "pub func ReadStr(c: Conn, max: int): str:",
      "pub func Relay(c: Conn):",
      "pub func SealFrame(e &: Encoder, pt: void*, n: int, out &: Buf):",
      "pub func Serve(s: Server, handler: func (Conn)):",
      "pub func ServeRelay(s: Server):",
      "pub func ServerOk(s: Server): bool:",
      "pub func ServerPort(s: Server): int:",
      "pub func SessionAccept(s &: UdpSession, pid: i64): bool:",
      "pub func SessionSubkey(m: Method, master: void*, salt: void*, out: void*):",
      "pub func SetDeadline(millis: int):",
      "pub func Shutdown():",
      "pub func Shutdown(c: Conn):",
      "pub func Stop(s: Server):",
      "pub func TakeFrame(d &: Decoder, n: int, out &: Buf): int:",
      "pub func TakeSalt(d &: Decoder): bool:",
      "pub func TargetOf(c: Conn): Target:",
      "pub func ToConfig(u: Uri): Config:",
      "pub func Udp2022Identity(m: Method, ipsk: void*, p: void*, n: int, out_hash16: void*): bool:",
      "pub func Udp2022Peek(m: Method, hdr_key: void*, p: void*, n: int, sid &: i64): bool:",
      "pub func UdpAddUser(s &: UdpServer, password: str): bool:",
      "pub func UdpClose(c: UdpClient):",
      "pub func UdpDestroy(s &: UdpServer):",
      "pub func UdpDial(cfg: Config): UdpClient:",
      "pub func UdpListen(port: int, method: str, password: str): UdpServer:",
      "pub func UdpListenOn(host: str, port: int, method: str, password: str): UdpServer:",
      "pub func UdpRecv(c: UdpClient, buf: void*, max: int, from &: Target): int:",
      "pub func UdpSend(c: UdpClient, host: str, port: int, data: void*, n: int): bool:",
      "pub func UdpServe(s &: UdpServer):",
      "pub func UdpServerPort(s: UdpServer): int:",
      "pub func UdpSetTimeout(c: UdpClient, millis: int):",
      "pub func UdpStep(s &: UdpServer): int:",
      "pub func UdpStop(s: UdpServer):",
      "pub func UnpackUdp(m: Method, key: void*, p: void*, n: int, t &: Target, out &: Buf): bool:",
      "pub func UnpackUdp2022(",
      "pub func Write(c: Conn, data: void*, n: int): int:",
      "pub func Write(data: str): int:",
      "pub func WriteBytes(ptr: void*, n: int): int:",
      "pub func WriteStr(c: Conn, s: str): int:",
      "pub struct Buf:",
      "pub struct Config:",
      "pub struct Conn:",
      "pub struct ConnState:",
      "pub struct Decoder:",
      "pub struct Encoder:",
      "pub struct KeyChain:",
      "pub struct Method:",
      "pub struct Obfs:",
      "pub struct Plugin:",
      "pub struct SaltFilter:",
      "pub struct Server:",
      "pub struct ServerState:",
      "pub struct Target:",
      "pub struct UdpClient:",
      "pub struct UdpServer:",
      "pub struct UdpSession:",
      "pub struct Uri:"
    ],
    "net.socketio": [
      "pub const EIO_CLOSE := 1",
      "pub const EIO_MESSAGE := 4",
      "pub const EIO_NOOP := 6",
      "pub const EIO_OPEN := 0",
      "pub const EIO_PING := 2",
      "pub const EIO_PONG := 3",
      "pub const EIO_UPGRADE := 5",
      "pub const EV_CONNECT := 2",
      "pub const EV_CONNECT_ERROR := 4",
      "pub const EV_DISCONNECT := 3",
      "pub const EV_ERROR := 5",
      "pub const EV_EVENT := 1",
      "pub const EV_NONE := 0",
      "pub const EV_PING := 10",
      "pub const EV_RECONNECT := 6",
      "pub const EV_RECONNECT_ATTEMPT := 7",
      "pub const EV_RECONNECT_ERROR := 8",
      "pub const EV_RECONNECT_FAILED := 9",
      "pub const EV_TIMEOUT := 11",
      "pub const EV_UPGRADE := 12",
      "pub const PKT_ACK := 3",
      "pub const PKT_BINARY_ACK := 6",
      "pub const PKT_BINARY_EVENT := 5",
      "pub const PKT_CONNECT := 0",
      "pub const PKT_CONNECT_ERROR := 4",
      "pub const PKT_DISCONNECT := 1",
      "pub const PKT_EVENT := 2",
      "pub const PUMP_CLOSED := 2",
      "pub const PUMP_OK := 0",
      "pub const PUMP_TIMEOUT := 1",
      "pub const REASON_CLIENT_DISCONNECT := \"io client disconnect\"",
      "pub const REASON_PARSE_ERROR := \"parse error\"",
      "pub const REASON_PING_TIMEOUT := \"ping timeout\"",
      "pub const REASON_SERVER_DISCONNECT := \"io server disconnect\"",
      "pub const REASON_TRANSPORT_CLOSE := \"transport close\"",
      "pub const REASON_TRANSPORT_ERROR := \"transport error\"",
      "pub const TRANSPORT_AUTO := 0",
      "pub const TRANSPORT_POLLING := 2",
      "pub const TRANSPORT_WEBSOCKET := 1",
      "pub func AckArg(a: Ack, i: int): str:",
      "pub func AckBool(a: Ack, i: int): bool:",
      "pub func AckBytes(a: Ack, i: int): Bytes:",
      "pub func AckCount(a: Ack): int:",
      "pub func AckFloat(a: Ack, i: int): f64:",
      "pub func AckFree(a &: Ack):",
      "pub func AckInt(a: Ack, i: int): i64:",
      "pub func AckIsBinary(a: Ack, i: int): bool:",
      "pub func AckStr(a: Ack, i: int): str:",
      "pub func AckValue(a: Ack, i: int): value.Value:",
      "pub func Active(c: Client): bool:",
      "pub func AddBinaryStr(a &: Args, s: str):",
      "pub func AddBool(a &: Args, b: bool):",
      "pub func AddBytes(a &: Args, ptr: void*, n: int):",
      "pub func AddFloat(a &: Args, n: f64):",
      "pub func AddInt(a &: Args, n: i64):",
      "pub func AddJSON(a &: Args, raw: str):",
      "pub func AddNull(a &: Args):",
      "pub func AddStr(a &: Args, s: str):",
      "pub func AddValue(a &: Args, v: value.Value):",
      "pub func AnyListenerCount(c: Client): int:",
      "pub func Arg(ev: Event, i: int): str:",
      "pub func ArgBool(ev: Event, i: int): bool:",
      "pub func ArgBytes(ev: Event, i: int): Bytes:",
      "pub func ArgCount(ev: Event): int:",
      "pub func ArgFloat(ev: Event, i: int): f64:",
      "pub func ArgInt(ev: Event, i: int): i64:",
      "pub func ArgIsBinary(ev: Event, i: int): bool:",
      "pub func ArgStr(ev: Event, i: int): str:",
      "pub func ArgValue(ev: Event, i: int): value.Value:",
      "pub func ArgsCount(a: Args): int:",
      "pub func ArgsFree(a &: Args):",
      "pub func ArgsJSON(a: Args, name: str): str:",
      "pub func Attempts(c: Client): int:",
      "pub func AuthOf(c: Client): str:",
      "pub func Buffered(c: Client): int:",
      "pub func BytesAt(b: Bytes, i: int): int:",
      "pub func BytesFree(b &: Bytes):",
      "pub func BytesFromStr(s: str): Bytes:",
      "pub func BytesToBase64(b: Bytes): str:",
      "pub func BytesToStr(b: Bytes): str:",
      "pub func Close(c: Client):",
      "pub func CloseManager(m: Manager):",
      "pub func Connect(c: Client): bool:",
      "pub func DecodePacket(text: str): Packet:",
      "pub func Dial(url: str): Client:",
      "pub func DialWith(url: str, opts: Options): Client:",
      "pub func Disconnect(c: Client):",
      "pub func Disconnected(c: Client): bool:",
      "pub func Emit(c: Client, name: str): bool:",
      "pub func EmitAck(c: Client, name: str, a: Args, timeout_ms: int): Ack:",
      "pub func EmitArgs(c: Client, name: str, a: Args): bool:",
      "pub func EmitBool(c: Client, name: str, b: bool): bool:",
      "pub func EmitBytes(c: Client, name: str, ptr: void*, n: int): bool:",
      "pub func EmitFloat(c: Client, name: str, n: f64): bool:",
      "pub func EmitInt(c: Client, name: str, n: i64): bool:",
      "pub func EmitJSON(c: Client, name: str, raw: str): bool:",
      "pub func EmitStr(c: Client, name: str, s: str): bool:",
      "pub func EmitVolatile(c: Client, name: str, a: Args): bool:",
      "pub func EmitWithAck(c: Client, name: str, a: Args, timeout_ms: int, cb: func (Ack)): bool:",
      "pub func EncodeEngine(kind: int, body: str): str:",
      "pub func EncodePacket(p: Packet): str:",
      "pub func EndpointOf(c: Client): Endpoint:",
      "pub func EngineBody(payload: str): str:",
      "pub func EngineKind(payload: str): int:",
      "pub func EventFree(ev &: Event):",
      "pub func HasListeners(c: Client, name: str): bool:",
      "pub func Id(c: Client): str:",
      "pub func IsConnected(c: Client): bool:",
      "pub func IsOpen(m: Manager): bool:",
      "pub func Item(raw: str, i: int): str:",
      "pub func ItemBool(raw: str, i: int): bool:",
      "pub func ItemCount(raw: str): int:",
      "pub func ItemFloat(raw: str, i: int): f64:",
      "pub func ItemInt(raw: str, i: int): i64:",
      "pub func ItemStr(raw: str, i: int): str:",
      "pub func ItemValue(raw: str, i: int): value.Value:",
      "pub func JoinPayloads(items: Vector<str>): str:",
      "pub func LastError(c: Client): str:",
      "pub func ListenerCount(c: Client, name: str): int:",
      "pub func ManagerError(m: Manager): str:",
      "pub func ManagerOf(c: Client): Manager:",
      "pub func MaxPayload(c: Client): int:",
      "pub func Namespace(c: Client): str:",
      "pub func NewArgs(): Args:",
      "pub func NewBytes(ptr: void*, n: int): Bytes:",
      "pub func NewManager(url: str, opts: Options): Manager:",
      "pub func NewOptions(): Options:",
      "pub func Next(c: Client, timeout_ms: int): Event:",
      "pub func NextEvent(c: Client, timeout_ms: int): Event:",
      "pub func Of(m: Manager, nsp: str): Client:",
      "pub func Off(c: Client, name: str):",
      "pub func OffAll(c: Client):",
      "pub func OffAny(c: Client):",
      "pub func OffAnyOutgoing(c: Client):",
      "pub func On(c: Client, name: str, cb: func (Event)):",
      "pub func OnAny(c: Client, cb: func (Event)):",
      "pub func OnAnyOutgoing(c: Client, cb: func (Event)):",
      "pub func Once(c: Client, name: str, cb: func (Event)):",
      "pub func Open(m: Manager): bool:",
      "pub func OptionsOf(m: Manager): Options:",
      "pub func Origin(e: Endpoint): str:",
      "pub func ParseURL(raw: str): Endpoint:",
      "pub func Pending(c: Client): int:",
      "pub func PingInterval(c: Client): int:",
      "pub func PingTimeout(c: Client): int:",
      "pub func Placeholder(num: int): str:",
      "pub func PlaceholderNum(frag: str): int:",
      "pub func PrependAny(c: Client, cb: func (Event)):",
      "pub func PrependAnyOutgoing(c: Client, cb: func (Event)):",
      "pub func Pump(c: Client, timeout_ms: int): int:",
      "pub func PumpManager(m: Manager, timeout_ms: int): int:",
      "pub func Queued(c: Client): int:",
      "pub func Recovered(c: Client): bool:",
      "pub func RefusalReason(c: Client): str:",
      "pub func Refused(c: Client): bool:",
      "pub func Reply(ev: Event, a: Args): bool:",
      "pub func ReplyJSON(ev: Event, raw: str): bool:",
      "pub func ReplyStr(ev: Event, s: str): bool:",
      "pub func Run(c: Client):",
      "pub func RunFor(c: Client, ms: int):",
      "pub func Send(c: Client, msg: str): bool:",
      "pub func SetAuth(c: Client, auth json: str):",
      "pub func SetRandomizationFactor(m: Manager, percent: int):",
      "pub func SetReconnection(m: Manager, enabled: bool):",
      "pub func SetReconnectionAttempts(m: Manager, n: int):",
      "pub func SetReconnectionDelay(m: Manager, ms: int):",
      "pub func SetReconnectionDelayMax(m: Manager, ms: int):",
      "pub func SetTimeout(m: Manager, ms: int):",
      "pub func Sid(c: Client): str:",
      "pub func Sockets(m: Manager): Vector<Client>:",
      "pub func SplitJSONArray(text: str): Vector<str>:",
      "pub func SplitPayloads(body: str): Vector<str>:",
      "pub func Transport(c: Client): int:",
      "pub func TransportName(c: Client): str:",
      "pub struct Ack:",
      "pub struct Args:",
      "pub struct Bytes:",
      "pub struct Client:",
      "pub struct Endpoint:",
      "pub struct Event:",
      "pub struct Manager:",
      "pub struct Options:",
      "pub struct Packet:"
    ],
    "net.socks": [
      "pub const AtypDomain := 3",
      "pub const AtypIPv4 := 1",
      "pub const AtypIPv6 := 4",
      "pub const AuthNoAcceptable := 255",
      "pub const AuthNone := 0",
      "pub const AuthUserPass := 2",
      "pub const CmdBind := 2",
      "pub const CmdConnect := 1",
      "pub const CmdUDPAssociate := 3",
      "pub const Rep4BadUser := 93",
      "pub const Rep4Granted := 90",
      "pub const Rep4NoIdentd := 92",
      "pub const Rep4Rejected := 91",
      "pub const RepAtypNotSupported := 8",
      "pub const RepCmdNotSupported := 7",
      "pub const RepConnRefused := 5",
      "pub const RepGeneralFailure := 1",
      "pub const RepHostUnreachable := 4",
      "pub const RepNetUnreachable := 3",
      "pub const RepNotAllowed := 2",
      "pub const RepSucceeded := 0",
      "pub const RepTTLExpired := 6",
      "pub const Socks4 := 4",
      "pub const Socks4a := 40",
      "pub const Socks5 := 5",
      "pub const VerSocks4 := 4",
      "pub const VerSocks5 := 5",
      "pub func AddUser(cfg &: ServerConfig, user: str, pass: str):",
      "pub func AllowPrivate(cfg &: ServerConfig, enabled: bool):",
      "pub func Associate(c: Client): UDPSession:",
      "pub func Bind(c: Client, host: str, port: int): ConnectResult:",
      "pub func BindAccept(s: dyn tunnel.Stream, c: Client): HandshakeResult:",
      "pub func ClassifyHost(host: str): int:",
      "pub func ClientHandshake(s: dyn tunnel.Stream, c: Client, cmd: int, host: str, port: int): HandshakeResult:",
      "pub func CloseUDP(u: UDPSession):",
      "pub func Connect(c: Client, host: str, port: int): ConnectResult:",
      "pub func Decode4Reply(data: Vector<u8>, out &: Reply): bool:",
      "pub func Decode4Request(data: Vector<u8>, out &: Request): int:",
      "pub func DecodeAddress(data: Vector<u8>, off: int, out &: Address): int:",
      "pub func DecodeReply(data: Vector<u8>, out &: Reply): int:",
      "pub func DecodeRequest(data: Vector<u8>, out &: Request): int:",
      "pub func DecodeUDPHeader(data: Vector<u8>, out &: UDPHeader): bool:",
      "pub func DialConn(c: Client, host: str, port: int): tcp.Conn:",
      "pub func DirectConnect(host: str, port: int, timeout_ms: int): Outbound:",
      "pub func Encode4Reply(code: int, host: str, port: int): Vector<u8>:",
      "pub func Encode4Request(cmd: int, host: str, port: int, user: str): Vector<u8>:",
      "pub func EncodeAddress(a: Address): Vector<u8>:",
      "pub func EncodeAuthReply(ok: bool): Vector<u8>:",
      "pub func EncodeAuthRequest(user: str, pass: str): Vector<u8>:",
      "pub func EncodeGreeting(methods: Vector<u8>): Vector<u8>:",
      "pub func EncodeMethodChoice(method: int): Vector<u8>:",
      "pub func EncodeReply(code: int, a: Address): Vector<u8>:",
      "pub func EncodeRequest(cmd: int, a: Address): Vector<u8>:",
      "pub func EncodeUDPHeader(a: Address, frag: int): Vector<u8>:",
      "pub func FormatIPv4(v: Vector<u8>, off: int): str:",
      "pub func FormatIPv6(v: Vector<u8>, off: int): str:",
      "pub func Go(fn: i64, arg: void*): bool:",
      "pub func Handle(cfg: ServerConfig, s: dyn tunnel.Stream):",
      "pub func Handshake(s: dyn tunnel.Stream): tunnel.Session:",
      "pub func Handshake(s: dyn tunnel.Stream): tunnel.Session:",
      "pub func Handshake(s: dyn tunnel.Stream, target: tunnel.Addr): bool:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func NewAddress(host: str, port: int): Address:",
      "pub func NewClient(host: str, port: int): Client:",
      "pub func NewClientAuth(host: str, port: int, username: str, password: str): Client:",
      "pub func NewConnector(c: Client): SocksConnector:",
      "pub func NewInbound(cfg: ServerConfig): Socks5Inbound:",
      "pub func NewInbound4(cfg: ServerConfig): Socks4Inbound:",
      "pub func NewServerConfig(port: int): ServerConfig:",
      "pub func ParseIPv4(s: str, out &: Vector<u8>): bool:",
      "pub func ParseIPv6(s: str, out &: Vector<u8>): bool:",
      "pub func PolicyConnect(p: tunnel.DestPolicy, host: str, port: int, timeout_ms: int): Outbound:",
      "pub func Relay(a: dyn tunnel.Stream, b: dyn tunnel.Stream, idle_ms: int): RelayStats:",
      "pub func Reply(s: dyn tunnel.Stream, _sess: tunnel.Session, ok: bool):",
      "pub func Reply(s: dyn tunnel.Stream, sess: tunnel.Session, ok: bool):",
      "pub func ReplyText(code: int): str:",
      "pub func Serve(cfg: ServerConfig): bool:",
      "pub func Server(): tunnel.Addr:",
      "pub func SetAuth(cfg &: ServerConfig, check: func (str, str) bool):",
      "pub func SetConnector(cfg &: ServerConfig, connect: func (str, int) Outbound):",
      "pub func SetDialer(cfg &: ServerConfig, d: dyn tunnel.Dialer):",
      "pub func SetPolicy(cfg &: ServerConfig, p: tunnel.DestPolicy):",
      "pub func Start(cfg: ServerConfig): Server:",
      "pub func Stop(sv: Server):",
      "pub func ToHex(v: Vector<u8>): str:",
      "pub func UDPReceiveBytes(u: UDPSession, buf: void*, max: int, from &: Address): int:",
      "pub func UDPSend(u: UDPSession, host: str, port: int, data: str): int:",
      "pub func UDPSendBytes(u: UDPSession, host: str, port: int, ptr: void*, n: int): int:",
      "pub func UDPSetTimeout(u: UDPSession, millis: int):",
      "pub struct Address:",
      "pub struct Client:",
      "pub struct ConnectResult:",
      "pub struct HandshakeResult:",
      "pub struct Outbound:",
      "pub struct RelayStats:",
      "pub struct Reply:",
      "pub struct Request:",
      "pub struct Server:",
      "pub struct ServerConfig:",
      "pub struct Socks4Inbound:",
      "pub struct Socks5Inbound:",
      "pub struct SocksConnector:",
      "pub struct UDPHeader:",
      "pub struct UDPSession:"
    ],
    "net.tcp": [
      "pub func Accept(srv: Server): Conn:",
      "pub func Bind(port: int): Server:",
      "pub func BindDual(port: int): Server:",
      "pub func BindOn(host: str, port: int): Server:",
      "pub func BindV6(host: str, port: int, v6only: bool): Server:",
      "pub func Close(c: Conn):",
      "pub func CloseServer(srv: Server):",
      "pub func ConnFromFd(fd: i64): Conn:",
      "pub func ConnLocalAddr(c: Conn): str:",
      "pub func ConnOk(c: Conn): bool:",
      "pub func Dial(host: str, port: int): Conn:",
      "pub func DialAnyTimeout(hosts &: Vector<str>, port: int, millis: int): Conn:",
      "pub func DialTLS(host: str, port: int): tls.Conn:",
      "pub func DialTimeout(host: str, port: int, millis: int): Conn:",
      "pub func FreePort(): int:",
      "pub func Get(p &: Pool, host: str, port: int, now_ms: i64): Conn:",
      "pub func JoinHostPort(host: str, port: int): str:",
      "pub func LocalAddr(srv: Server): str:",
      "pub func NewPool(): Pool:",
      "pub func Ok(srv: Server): bool:",
      "pub func PeerAddr(c: Conn): str:",
      "pub func PeerPort(c: Conn): int:",
      "pub func PoolLen(p: Pool): int:",
      "pub func Port(srv: Server): int:",
      "pub func Put(p &: Pool, host: str, port: int, c: Conn, now_ms: i64):",
      "pub func Read(c: Conn, max: int): str:",
      "pub func ReadBytes(c: Conn, buf: void*, max: int): int:",
      "pub func SetDeadline(c: Conn, millis: int):",
      "pub func SetKeepAlive(c: Conn, enable: bool):",
      "pub func SetNoDelay(c: Conn, enable: bool):",
      "pub func SetReadDeadline(c: Conn, millis: int):",
      "pub func SetWriteDeadline(c: Conn, millis: int):",
      "pub func UpgradeTLS(c: Conn, cfg: tls.Config): tls.Conn:",
      "pub func WaitListening(host: str, port: int, timeout_ms: int): bool:",
      "pub func WakeServer(host: str, port: int):",
      "pub func Write(c: Conn, data: str): int:",
      "pub func WriteBytes(c: Conn, ptr: void*, n: int): int:",
      "pub func WriteHTTP(c: Conn, status_line: str, content_type: str, body: str):",
      "pub struct Conn:",
      "pub struct Pool:",
      "pub struct PoolEntries:",
      "pub struct PoolEntry:",
      "pub struct Server:"
    ],
    "net.transport": [
      "pub const AddrDomain := 2",
      "pub const AddrIPv4 := 1",
      "pub const AddrIPv6 := 3",
      "pub const KindStream := 2",
      "pub const KindTCP := 0",
      "pub const KindTLS := 1",
      "pub const MuxMaxPacket := 8192",
      "pub func Accept(l: Listener): Conn:",
      "pub func AcceptRaw(l: Listener): Conn:",
      "pub func AsStream(c: Conn): dyn tunnel.Stream:",
      "pub func At(b: Bytes, i: int): int:",
      "pub func BytesPtr(b: Bytes, off: int): void*:",
      "pub func Close():",
      "pub func Close():",
      "pub func Close():",
      "pub func Close(c &: Conn):",
      "pub func CloseListener(l: Listener):",
      "pub func CloseWrite():",
      "pub func CloseWrite():",
      "pub func CloseWrite():",
      "pub func CloseWriteConn(c &: Conn):",
      "pub func Consume(b &: Bytes, n: int):",
      "pub func DetectKind(host: str): int:",
      "pub func Dial(host: str, port: int, s: Settings): Conn:",
      "pub func DialEarly(host: str, port: int, s: Settings, early: Bytes): Conn:",
      "pub func Equal(a: Bytes, b: Bytes): bool:",
      "pub func FormatIPv6(p: u8*): str:",
      "pub func FormatUUID(b: Bytes): str:",
      "pub func FragmentSizes(total: int, min: int, max: int): Vector<int>:",
      "pub func FreeBytes(b &: Bytes):",
      "pub func FromHex(h: str): Bytes:",
      "pub func FromStr(s: str): Bytes:",
      "pub func FromStream(s: dyn tunnel.Stream, client: bool): Conn:",
      "pub func Listen(port: int, s: Settings): Listener:",
      "pub func ListenAll(port: int, s: Settings): Listener:",
      "pub func ListenAt(host: str, port: int, s: Settings): Listener:",
      "pub func ListenerFrom(server: tcp.Server, s: Settings): Listener:",
      "pub func ListenerOk(l: Listener): bool:",
      "pub func ListenerPort(l: Listener): int:",
      "pub func MuxAccept(m: Mux, out &: MuxIncoming): bool:",
      "pub func MuxClose(m: Mux):",
      "pub func MuxOk(m: Mux): bool:",
      "pub func MuxOpen(m: Mux, addr: Addr, udp: bool): dyn tunnel.Stream:",
      "pub func NewAddr(host: str, port: int): Addr:",
      "pub func NewBytes(cap0: int): Bytes:",
      "pub func NewMuxClient(up: dyn tunnel.Stream): Mux:",
      "pub func NewMuxServer(up: dyn tunnel.Stream): Mux:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(c: Conn): bool:",
      "pub func ParseUUID(s: str): Bytes:",
      "pub func Peek16(b: Bytes, i: int): int:",
      "pub func Peek32(b: Bytes, i: int): i64:",
      "pub func Put16(b &: Bytes, v: int):",
      "pub func Put32(b &: Bytes, v: i64):",
      "pub func Put64(b &: Bytes, v: u64):",
      "pub func Put8(b &: Bytes, v: int):",
      "pub func PutAddr(b &: Bytes, a: Addr): bool:",
      "pub func PutBytes(b &: Bytes, src: Bytes):",
      "pub func PutRaw(b &: Bytes, src: void*, n: int):",
      "pub func PutStr(b &: Bytes, s: str):",
      "pub func PutZeros(b &: Bytes, n: int):",
      "pub func Read(c &: Conn, buf: void*, max: int): int:",
      "pub func Read(max: int): str:",
      "pub func Read(max: int): str:",
      "pub func Read(max: int): str:",
      "pub func ReadAddr(b: Bytes, off: int, a &: Addr): int:",
      "pub func ReadBytes(buf: void*, max: int): int:",
      "pub func ReadBytes(buf: void*, max: int): int:",
      "pub func ReadBytes(buf: void*, max: int): int:",
      "pub func ReadFull(c &: Conn, buf: void*, n: int): bool:",
      "pub func Reserve(b &: Bytes, need: int):",
      "pub func ResetBytes(b &: Bytes):",
      "pub func Set8(b &: Bytes, i: int, v: int):",
      "pub func SetDeadline(millis: int):",
      "pub func SetDeadline(millis: int):",
      "pub func SetDeadline(millis: int):",
      "pub func SetReadTimeout(c &: Conn, ms: int):",
      "pub func Shutdown():",
      "pub func Shutdown():",
      "pub func Shutdown():",
      "pub func ShutdownConn(c &: Conn):",
      "pub func SwitchDirect(c &: Conn): bool:",
      "pub func ToHex(b: Bytes): str:",
      "pub func Upgrade(c &: Conn, s: Settings): bool:",
      "pub func Write(c &: Conn, p: void*, n: int): bool:",
      "pub func Write(data: str): int:",
      "pub func Write(data: str): int:",
      "pub func Write(data: str): int:",
      "pub func WriteBytes(c &: Conn, b: Bytes): bool:",
      "pub func WriteBytes(ptr: void*, n: int): int:",
      "pub func WriteBytes(ptr: void*, n: int): int:",
      "pub func WriteBytes(ptr: void*, n: int): int:",
      "pub struct Addr:",
      "pub struct Bytes:",
      "pub struct Conn:",
      "pub struct Listener:",
      "pub struct Mux:",
      "pub struct MuxIncoming:",
      "pub struct Settings:"
    ],
    "net.trojan": [
      "pub const AtypDomain := 3",
      "pub const AtypIPv4 := 1",
      "pub const AtypIPv6 := 4",
      "pub const CmdConnect := 1",
      "pub const CmdUDP := 3",
      "pub const LinkTCP := 0",
      "pub const LinkTLS := 1",
      "pub const LinkWS := 2",
      "pub const ModePlain := 1",
      "pub const ModeTLS := 0",
      "pub const ModeWS := 2",
      "pub const ParseInvalid := 2",
      "pub const ParseNeedMore := 1",
      "pub const ParseOK := 0",
      "pub func AddPassword(cfg &: ServerConfig, password: str):",
      "pub func AddPasswordHash(cfg &: ServerConfig, hash: str):",
      "pub func AllowPrivate(cfg &: ServerConfig, enabled: bool):",
      "pub func AsStream(lp: Link*): dyn tunnel.Stream:",
      "pub func Close():",
      "pub func CloseWrite():",
      "pub func Dial(cfg: ClientConfig, host: str, port: int): Link:",
      "pub func DialUDP(cfg: ClientConfig): Link:",
      "pub func EncodeAddr(host: str, port: int): compress.ByteBuf:",
      "pub func EncodeRequest(password: str, cmd: int, host: str, port: int): compress.ByteBuf:",
      "pub func EncodeRequestHash(hash: str, cmd: int, host: str, port: int): compress.ByteBuf:",
      "pub func EncodeUDPPacket(host: str, port: int, payload: void*, n: int): compress.ByteBuf:",
      "pub func Fallback(lp: Link*, cfg: ServerConfig, seen: compress.ByteBuf): bool:",
      "pub func FormatIPv4(p: void*, off: int): str:",
      "pub func FormatIPv6(p: void*, off: int): str:",
      "pub func FreeSession(s &: Session):",
      "pub func Handshake(l &: Link, cfg: ServerConfig): Session:",
      "pub func Handshake(s: dyn tunnel.Stream): tunnel.Session:",
      "pub func Handshake(s: dyn tunnel.Stream, target: tunnel.Addr): bool:",
      "pub func HexOf(b: compress.ByteBuf): str:",
      "pub func InboundAddPassword(inb &: Inbound, password: str):",
      "pub func LinkClose(l &: Link):",
      "pub func LinkFd(l: Link): i64:",
      "pub func LinkOk(l: Link): bool:",
      "pub func LinkRead(l &: Link, buf: void*, max: int): int:",
      "pub func LinkSetTimeout(l: Link, millis: int):",
      "pub func LinkShutdown(l: Link):",
      "pub func LinkWrite(l &: Link, p: void*, n: int): bool:",
      "pub func LinkWriteBuf(l &: Link, b: compress.ByteBuf): bool:",
      "pub func LinkWriteStr(l &: Link, s: str): bool:",
      "pub func Listen(cfg: ServerConfig, port: int): Server:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func NewClientConfig(server_host: str, server_port: int, password: str): ClientConfig:",
      "pub func NewConnector(server_host: str, server_port: int, password: str): Connector:",
      "pub func NewInbound(): Inbound:",
      "pub func NewServerConfig(cert_file: str, key_file: str): ServerConfig:",
      "pub func NewTCPLink(c: tcp.Conn): Link:",
      "pub func NewTLSLink(c: tls.Conn): Link:",
      "pub func NewUDPPacket(): UDPPacket:",
      "pub func NewWSLink(c: websocket.Conn): Link:",
      "pub func Ok(): bool:",
      "pub func ParseAddr(p: void*, n: int, off: int, atyp &: int, host &: str, port &: int): int:",
      "pub func ParseIPv4(text: str, out &: compress.ByteBuf): bool:",
      "pub func ParseIPv6(text: str, out &: compress.ByteBuf): bool:",
      "pub func ParseRequest(p: void*, n: int): Request:",
      "pub func ParseUDPPacket(p: void*, n: int): UDPPacket:",
      "pub func PasswordHash(password: str): str:",
      "pub func Read(max: int): str:",
      "pub func ReadBytes(buf: void*, max: int): int:",
      "pub func ReadUDPPacket(l &: Link, pkt &: UDPPacket, payload &: compress.ByteBuf): bool:",
      "pub func Relay(a: Link*, b: Link*): i64:",
      "pub func Reply(_s: dyn tunnel.Stream, _sess: tunnel.Session, _ok: bool):",
      "pub func SendUDP(l &: Link, host: str, port: int, p: void*, n: int): bool:",
      "pub func Serve(cfg: ServerConfig, port: int): Server:",
      "pub func ServeLink(lp: Link*, cfg: ServerConfig): int:",
      "pub func ServePlain(cfg: ServerConfig, port: int): Server:",
      "pub func ServeWS(cfg: ServerConfig, port: int): Server:",
      "pub func Server(): tunnel.Addr:",
      "pub func ServerPort(s: Server): int:",
      "pub func SetBind(cfg &: ServerConfig, host: str):",
      "pub func SetDeadline(millis: int):",
      "pub func SetDialer(cfg &: ServerConfig, d: dyn tunnel.Dialer):",
      "pub func SetFallback(cfg &: ServerConfig, host: str, port: int):",
      "pub func SetMode(cfg &: ServerConfig, mode: int):",
      "pub func SetPolicy(cfg &: ServerConfig, p: tunnel.DestPolicy):",
      "pub func SetRouter(cfg &: ServerConfig, rd: tunnel.RouterDialer):",
      "pub func SetStats(cfg &: ServerConfig, st: tunnel.Stats):",
      "pub func Sha224(p: void*, n: int): compress.ByteBuf:",
      "pub func Sha224Hex(s: str): str:",
      "pub func Shutdown():",
      "pub func Stats(s: Server): ServerStats:",
      "pub func Stop(s: Server):",
      "pub func Write(data: str): int:",
      "pub func WriteBytes(ptr: void*, n: int): int:",
      "pub func WriteUDPPacket(l &: Link, host: str, port: int, p: void*, n: int): bool:",
      "pub struct ClientConfig:",
      "pub struct Connector:",
      "pub struct Inbound:",
      "pub struct Link:",
      "pub struct LinkStream:",
      "pub struct Request:",
      "pub struct Server:",
      "pub struct ServerConfig:",
      "pub struct ServerStats:",
      "pub struct Session:",
      "pub struct UDPPacket:"
    ],
    "net.tunnel": [
      "pub const ADDR_DOMAIN := 3",
      "pub const ADDR_IPV4 := 1",
      "pub const ADDR_IPV6 := 4",
      "pub const CMD_CONNECT := 1",
      "pub const CMD_UDP := 3",
      "pub const DeadlineDirect := 0 - 2",
      "pub const IRAN_DOMAINS := \"# bundled Iran direct list\\ndomain:ir\\ndomain:xn--mgba3a4f16a\\ndomain:xn--mgba3a4fra1a\\ndigikala.com\\naparat.com\\nsnapp.taxi\\ntapsi.cab\\nbale.ai\\neitaa.com\\ntelewebion.com\\nfilimo.com\\nnamava.ir\\nrubika.ir\\nsoroush-app.ir\\n\"",
      "pub const MIXED_HTTP := 1",
      "pub const MIXED_SOCKS4 := 4",
      "pub const MIXED_SOCKS5 := 5",
      "pub const MIXED_UNKNOWN := 0",
      "pub const M_CIDR := 5",
      "pub const M_DOMAIN := 1",
      "pub const M_GEOIP := 8",
      "pub const M_GEOSITE := 7",
      "pub const M_KEYWORD := 3",
      "pub const M_PORT := 6",
      "pub const M_REGEX := 4",
      "pub const M_SUFFIX := 2",
      "pub func Abort():",
      "pub func Accept(): dyn Pending:",
      "pub func Active(): i64:",
      "pub func B64Decode(s: str): str:",
      "pub func B64EncodeUrl(s: str): str:",
      "pub func Block(): dyn Dialer:",
      "pub func BuildDialer(c: Config): RouterDialer:",
      "pub func BuildRouter(c: Config): Router:",
      "pub func ByteString(b: int): str:",
      "pub func ChainAdd(c &: Chain, hop: dyn Connector):",
      "pub func ClearGeo():",
      "pub func Close():",
      "pub func Close():",
      "pub func Close():",
      "pub func Close():",
      "pub func Close():",
      "pub func Close():",
      "pub func Close():",
      "pub func CloseWrite():",
      "pub func CloseWrite():",
      "pub func CloseWrite():",
      "pub func CloseWrite():",
      "pub func CloseWrite():",
      "pub func CloseWrite():",
      "pub func ConfigFromNodes(nodes: Vector<Node>, listen_port: int): Config:",
      "pub func ConfigToJson(c: Config): str:",
      "pub func CreateInbound(cfg: InboundConfig): dyn InboundProtocol:",
      "pub func CreateOutbound(cfg: OutboundConfig): dyn Dialer:",
      "pub func DecodeSocks(ptr: void*, n: int): Addr:",
      "pub func DecodeVless(ptr: void*, n: int): Addr:",
      "pub func DetectMixed(first: int): int:",
      "pub func Dial(_target: Addr): dyn Stream:",
      "pub func Dial(target: Addr): dyn Stream:",
      "pub func Dial(target: Addr): dyn Stream:",
      "pub func Dial(target: Addr): dyn Stream:",
      "pub func Dial(target: Addr): dyn Stream:",
      "pub func Dial(target: Addr): dyn Stream:",
      "pub func Dial(target: Addr): dyn Stream:",
      "pub func DialChecked(target: Addr): GuardResult:",
      "pub func DialTcp(host: str, port: int, timeout_ms: int): dyn Stream:",
      "pub func Direct(): dyn Dialer:",
      "pub func DomainSetContains(s: DomainSet, host: str): bool:",
      "pub func DomainSetFull(s &: DomainSet, host: str):",
      "pub func DomainSetKeyword(s &: DomainSet, word: str):",
      "pub func DomainSetRegex(s &: DomainSet, pattern: str): bool:",
      "pub func DomainSetSuffix(s &: DomainSet, host: str):",
      "pub func Down(): i64:",
      "pub func EncodeSocks(a: Addr): Vector<u8>:",
      "pub func EncodeVless(a: Addr): Vector<u8>:",
      "pub func Expired(): bool:",
      "pub func Failed(): i64:",
      "pub func FallbackAdd(f &: Fallback, d: dyn Dialer):",
      "pub func FormatIP(b: Vector<int>): str:",
      "pub func Free():",
      "pub func FreeStats(s: Stats):",
      "pub func Go(fn: i64, arg: void*): bool:",
      "pub func Guard(inner: dyn Dialer, p: DestPolicy): GuardDialer:",
      "pub func GuardRouter(rd: RouterDialer, p: DestPolicy): GuardDialer:",
      "pub func Handle(s: dyn Stream, sess: Session):",
      "pub func Handshake(_s: dyn Stream): Session:",
      "pub func Handshake(_s: dyn Stream, _target: Addr): bool:",
      "pub func Handshake(s: dyn Stream): Session:",
      "pub func HasGeoIp(name: str): bool:",
      "pub func HasGeoSite(spec: str): bool:",
      "pub func HasInbound(name: str): bool:",
      "pub func HasOutbound(name: str): bool:",
      "pub func IdleMs(): i64:",
      "pub func IpSetAdd(s &: IpSet, cidr: str): bool:",
      "pub func IpSetAddNet(s &: IpSet, net: Vector<int>, prefix: int):",
      "pub func IpSetContains(s: IpSet, ip: Vector<int>): bool:",
      "pub func IranRouter(direct_tag: str, proxy_tag: str): Router:",
      "pub func IsIP(s: str): bool:",
      "pub func IsLoopbackHost(host: str): bool:",
      "pub func IsPrivateAddress(ip: str): bool:",
      "pub func IsSpecialIP(b: Vector<int>): bool:",
      "pub func LimitsActive(l: ConnLimits): i64:",
      "pub func LimitsEnter(l: ConnLimits, fd: i64): Admit:",
      "pub func LimitsHandshakeDone(l: ConnLimits, a &: Admit):",
      "pub func LimitsRelease(l: ConnLimits, a &: Admit):",
      "pub func ListenLocal(port: int): AcceptServer:",
      "pub func ListenLocal6(port: int): AcceptServer:",
      "pub func ListenTcp(port: int): TcpInbound:",
      "pub func ListenTcpAt(host: str, port: int): TcpInbound:",
      "pub func ListenTcpDual(port: int): AcceptServer:",
      "pub func ListenTcpDualInbound(port: int): TcpInbound:",
      "pub func ListenTcpOn(host: str, port: int): AcceptServer:",
      "pub func LoadConfig(path: str): Config:",
      "pub func LoadGeoIpDat(ptr: void*, n: int, names: Vector<str>): int:",
      "pub func LoadGeoIpFile(path: str, names: Vector<str>): int:",
      "pub func LoadGeoSiteDat(ptr: void*, n: int, names: Vector<str>): int:",
      "pub func LoadGeoSiteFile(path: str, names: Vector<str>): int:",
      "pub func LoadRules(path: str, default_tag: str): RuleSet:",
      "pub func Lookup(_host: str): LookupResult:",
      "pub func LookupGeoIp(name: str): IpSet:",
      "pub func LookupGeoSite(spec: str): DomainSet:",
      "pub func Match(target: Addr): str:",
      "pub func MatchHost(host: str, port: int): str:",
      "pub func MixedSetHttp(m &: MixedProtocol, p: dyn InboundProtocol):",
      "pub func MixedSetSocks4(m &: MixedProtocol, p: dyn InboundProtocol):",
      "pub func MixedSetSocks5(m &: MixedProtocol, p: dyn InboundProtocol):",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func NewAcceptServer(a: dyn Acceptor, host: str): AcceptServer:",
      "pub func NewAddr(host: str, port: int): Addr:",
      "pub func NewChain(base: dyn Dialer): Chain:",
      "pub func NewConnLimits(max_connections: int, max_per_source: int, deadline_ms: int): ConnLimits:",
      "pub func NewDestPolicy(): DestPolicy:",
      "pub func NewDomainSet(): DomainSet:",
      "pub func NewFallback(): Fallback:",
      "pub func NewForwarder(dialer: dyn Dialer, proto: dyn InboundProtocol): ForwardHandler:",
      "pub func NewGuardedForwarder(guard: GuardDialer, proto: dyn InboundProtocol): ForwardHandler:",
      "pub func NewIdleTimer(limit_ms: i64): IdleTimer:",
      "pub func NewIpSet(): IpSet:",
      "pub func NewMixed(): MixedProtocol:",
      "pub func NewPipe(): PipePair:",
      "pub func NewRouter(default_tag: str): Router:",
      "pub func NewRouterDialer(router: Router): RouterDialer:",
      "pub func NewRule(tag: str): Rule:",
      "pub func NewSourceTable(): SourceTable:",
      "pub func NewStats(): Stats:",
      "pub func NodeAddr(n: Node): Addr:",
      "pub func NodeFromOutbound(o: OutboundConfig): Node:",
      "pub func NodeLabel(n: Node): str:",
      "pub func NodeToLink(n: Node): str:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Ok(): bool:",
      "pub func Open(): dyn Stream:",
      "pub func OutboundFromNode(n: Node, tag: str): OutboundConfig:",
      "pub func ParseAddr(s: str): Addr:",
      "pub func ParseCidr(text: str): Matcher:",
      "pub func ParseConfig(text: str): Config:",
      "pub func ParseDomainList(text: str, attr: str): DomainSet:",
      "pub func ParseIP(s: str): Vector<int>:",
      "pub func ParseIPv4(s: str): Vector<int>:",
      "pub func ParseIPv6(text: str): Vector<int>:",
      "pub func ParseIpList(text: str): IpSet:",
      "pub func ParseLink(link: str): Node:",
      "pub func ParseRules(text: str, default_tag: str): RuleSet:",
      "pub func ParseSubscription(text: str): Subscription:",
      "pub func PctDecode(s: str): str:",
      "pub func PctEncode(s: str): str:",
      "pub func Pick(tag: str): dyn Dialer:",
      "pub func PipeA(p: PipePair): dyn Stream:",
      "pub func PipeB(p: PipePair): dyn Stream:",
      "pub func PolicyAllowCidr(p &: DestPolicy, text: str): bool:",
      "pub func PolicyAllowPrivate(p &: DestPolicy, enabled: bool):",
      "pub func PolicyAllowSuffix(p &: DestPolicy, suffix: str):",
      "pub func PolicyCheckBytes(p: DestPolicy, ip: Vector<int>): bool:",
      "pub func PolicyCheckIP(p: DestPolicy, ip: str): bool:",
      "pub func PolicyCheckName(p: DestPolicy, host: str): bool:",
      "pub func PolicyDenyCidr(p &: DestPolicy, text: str): bool:",
      "pub func PolicyDenySuffix(p &: DestPolicy, suffix: str):",
      "pub func PolicyForBind(p: DestPolicy, bind_host: str): DestPolicy:",
      "pub func PolicyPlan(p: DestPolicy, a: Addr, resolve: bool): Plan:",
      "pub func PolicySetResolver(p &: DestPolicy, r: dyn HostResolver):",
      "pub func Port(): int:",
      "pub func Port(): int:",
      "pub func Read(_max: int): str:",
      "pub func Read(max: int): str:",
      "pub func Read(max: int): str:",
      "pub func Read(max: int): str:",
      "pub func Read(max: int): str:",
      "pub func Read(max: int): str:",
      "pub func ReadByte(s: dyn Stream): int:",
      "pub func ReadBytes(_buf: void*, _max: int): int:",
      "pub func ReadBytes(buf: void*, max: int): int:",
      "pub func ReadBytes(buf: void*, max: int): int:",
      "pub func ReadBytes(buf: void*, max: int): int:",
      "pub func ReadBytes(buf: void*, max: int): int:",
      "pub func ReadBytes(buf: void*, max: int): int:",
      "pub func ReadFull(s: dyn Stream, buf: void*, n: int): bool:",
      "pub func ReadSocksAddr(s: dyn Stream): Addr:",
      "pub func ReadUntil(s: dyn Stream, delim: str, max: int): str:",
      "pub func ReadVlessAddr(s: dyn Stream): Addr:",
      "pub func RegisterGeoIp(name: str, set: IpSet):",
      "pub func RegisterGeoSite(name: str, set: DomainSet):",
      "pub func RegisterInbound(m: dyn InboundMaker):",
      "pub func RegisterOutbound(m: dyn OutboundMaker):",
      "pub func Relay(a: dyn Stream, b: dyn Stream): RelayResult:",
      "pub func RelayWith(a: dyn Stream, b: dyn Stream, st: Stats, idle_ms: int): RelayResult:",
      "pub func Remote(): str:",
      "pub func Reply(_s: dyn Stream, _sess: Session, _ok: bool):",
      "pub func Reply(s: dyn Stream, sess: Session, ok: bool):",
      "pub func Resolve(host: str): Vector<Vector<int>>:",
      "pub func RouterAdd(rt &: Router, r: Rule):",
      "pub func RouterDialerAdd(rd &: RouterDialer, tag: str, d: dyn Dialer):",
      "pub func RuleCidr(r &: Rule, text: str): bool:",
      "pub func RuleDomain(r &: Rule, host: str):",
      "pub func RuleDomainSpec(r &: Rule, spec: str): bool:",
      "pub func RuleGeoIp(r &: Rule, name: str): bool:",
      "pub func RuleGeoSite(r &: Rule, name: str): bool:",
      "pub func RuleIpSpec(r &: Rule, spec: str): bool:",
      "pub func RuleKeyword(r &: Rule, word: str):",
      "pub func RuleMatches(r: Rule, target: Addr): bool:",
      "pub func RuleMatchesResolved(r: Rule, target: Addr, ips: Vector<Vector<int>>): bool:",
      "pub func RulePort(r &: Rule, spec: str): bool:",
      "pub func RulePrivate(r &: Rule):",
      "pub func RuleRegex(r &: Rule, pattern: str): bool:",
      "pub func RuleSuffix(r &: Rule, suffix: str):",
      "pub func Serve(proto: dyn InboundProtocol, h: dyn Handler):",
      "pub func ServeBackground(inb: TcpInbound, proto: dyn InboundProtocol, h: dyn Handler):",
      "pub func ServeForever(inb: TcpInbound, proto: dyn InboundProtocol, h: dyn Handler):",
      "pub func Server(): Addr:",
      "pub func SetDeadline(millis: int):",
      "pub func SetDeadline(millis: int):",
      "pub func SetDeadline(millis: int):",
      "pub func SetDeadline(millis: int):",
      "pub func SetDeadline(millis: int):",
      "pub func SetDeadline(millis: int):",
      "pub func SetGeoDir(dir: str):",
      "pub func SetResolver(rt &: Router, r: dyn HostResolver, ttl_ms: i64):",
      "pub func Shutdown():",
      "pub func Shutdown():",
      "pub func Shutdown():",
      "pub func Shutdown():",
      "pub func Shutdown():",
      "pub func Shutdown():",
      "pub func SourceEnter(t: SourceTable, remote: str, limit: int): bool:",
      "pub func SourceKey(remote: str): str:",
      "pub func SourceLeave(t: SourceTable, remote: str):",
      "pub func StartAccepting(srv: AcceptServer, proto: dyn InboundProtocol, h: dyn Handler):",
      "pub func Stop():",
      "pub func Stop():",
      "pub func String(): str:",
      "pub func Summary(): str:",
      "pub func Total(): i64:",
      "pub func Touch():",
      "pub func Up(): i64:",
      "pub func Valid(): bool:",
      "pub func ValidateConfig(c: Config): Vector<str>:",
      "pub func VectorBytes(v: Vector<u8>): void*:",
      "pub func Via(upstream: dyn Dialer, hop: dyn Connector): dyn Dialer:",
      "pub func WatchDone(ticket: i64): bool:",
      "pub func WatchExpired(): i64:",
      "pub func WatchHandshake(fd: i64, total_ms: int): i64:",
      "pub func WithPrefix(s: dyn Stream, prefix: str): dyn Stream:",
      "pub func WrapTcp(c: tcp.Conn): dyn Stream:",
      "pub func WrapTls(c: tls.Conn): dyn Stream:",
      "pub func WrapWebSocket(c: websocket.Conn): dyn Stream:",
      "pub func Write(_data: str): int:",
      "pub func Write(data: str): int:",
      "pub func Write(data: str): int:",
      "pub func Write(data: str): int:",
      "pub func Write(data: str): int:",
      "pub func Write(data: str): int:",
      "pub func WriteAll(s: dyn Stream, data: str): bool:",
      "pub func WriteAllBytes(s: dyn Stream, ptr: void*, n: int): bool:",
      "pub func WriteBytes(_ptr: void*, _n: int): int:",
      "pub func WriteBytes(ptr: void*, n: int): int:",
      "pub func WriteBytes(ptr: void*, n: int): int:",
      "pub func WriteBytes(ptr: void*, n: int): int:",
      "pub func WriteBytes(ptr: void*, n: int): int:",
      "pub func WriteBytes(ptr: void*, n: int): int:",
      "pub struct AcceptServer:",
      "pub struct Addr:",
      "pub struct Admit:",
      "pub struct BlockDialer:",
      "pub struct Chain:",
      "pub struct ClosedStream:",
      "pub struct Config:",
      "pub struct ConnLimits:",
      "pub struct DestPolicy:",
      "pub struct DirectDialer:",
      "pub struct DomainSet:",
      "pub struct Fallback:",
      "pub struct ForwardHandler:",
      "pub struct GuardDialer:",
      "pub struct GuardResult:",
      "pub struct IdleTimer:",
      "pub struct InboundConfig:",
      "pub struct IpSet:",
      "pub struct LookupResult:",
      "pub struct Matcher:",
      "pub struct MixedProtocol:",
      "pub struct Node:",
      "pub struct NullConnector:",
      "pub struct NullProtocol:",
      "pub struct NullResolver:",
      "pub struct OutboundConfig:",
      "pub struct PipePair:",
      "pub struct PipeStream:",
      "pub struct Plan:",
      "pub struct PrefixStream:",
      "pub struct ProxyDialer:",
      "pub struct ReadyConn:",
      "pub struct RelayResult:",
      "pub struct ResolveCache:",
      "pub struct Router:",
      "pub struct RouterDialer:",
      "pub struct Rule:",
      "pub struct RuleConfig:",
      "pub struct RuleSet:",
      "pub struct Session:",
      "pub struct SourceTable:",
      "pub struct Stats:",
      "pub struct Subscription:",
      "pub struct TcpAcceptor:",
      "pub struct TcpInbound:",
      "pub struct TcpStream:",
      "pub struct TlsStream:",
      "pub struct WsStream:"
    ],
    "net.udp": [
      "pub func Bind(port: int): Socket:",
      "pub func BindDual(port: int): Socket:",
      "pub func BindOn(host: str, port: int): Socket:",
      "pub func BindV6(host: str, port: int, v6only: bool): Socket:",
      "pub func Close(s: Socket):",
      "pub func Dial(host: str, port: int): Socket:",
      "pub func JoinMulticast(s: Socket, group_ip: str): bool:",
      "pub func LeaveMulticast(s: Socket, group_ip: str): bool:",
      "pub func LocalAddr(s: Socket): str:",
      "pub func Ok(s: Socket): bool:",
      "pub func Open(): Socket:",
      "pub func OpenAny(): Socket:",
      "pub func OpenFor(host: str): Socket:",
      "pub func Port(s: Socket): int:",
      "pub func Read(s: Socket, max: int): str:",
      "pub func Receive(s: Socket, max: int): Packet:",
      "pub func ReceiveBytes(s: Socket, buf: void*, max: int, out_host &: str, out_port &: int): int:",
      "pub func Send(s: Socket, host: str, port: int, data: str): int:",
      "pub func SendBytes(s: Socket, host: str, port: int, ptr: void*, n: int): int:",
      "pub func SendTo(s: Socket, host: str, port: int, data: str): int:",
      "pub func SetBroadcast(s: Socket, enable: bool):",
      "pub func SetTimeout(s: Socket, millis: int):",
      "pub func SetV6Only(s: Socket, enable: bool): bool:",
      "pub func Write(s: Socket, data: str): int:",
      "pub struct Packet:",
      "pub struct Socket:"
    ],
    "net.utls": [
      "pub func Build(sp: Spec, o: Options): Hello:",
      "pub func FreeBytes(b &: Bytes):",
      "pub func FreeHello(h &: Hello):",
      "pub func JA3(b: Bytes): str:",
      "pub func LegacyProfileNames(): str:",
      "pub func PqSeed(h: Hello): void*:",
      "pub func Profile(name: str): Spec:",
      "pub func ProfileNames(): str:",
      "pub func Record(h: Hello): Bytes:",
      "pub func SessionIdOffset(): int:",
      "pub func SetSessionId(h &: Hello, sid: void*):",
      "pub func ToHex(b: Bytes): str:",
      "pub func WrapClient(fd: i64, sp: Spec, o: Options, cfg: tls.Config): tls.Conn:",
      "pub struct Bytes:",
      "pub struct Hello:",
      "pub struct Options:",
      "pub struct Spec:"
    ],
    "net.vless": [
      "pub const CmdMux := 3",
      "pub const CmdTCP := 1",
      "pub const CmdUDP := 2",
      "pub const FlowVision := \"xtls-rprx-vision\"",
      "pub const VisionContinue := 0",
      "pub const VisionDirect := 2",
      "pub const VisionEnd := 1",
      "pub const VisionPaddedPackets := 8",
      "pub func Accept(t: transport.Conn, users: Vector<User>): Conn:",
      "pub func AcceptOver(s: dyn tunnel.Stream, users: Vector<User>): Conn:",
      "pub func AsStream(c: Conn): dyn tunnel.Stream:",
      "pub func Client(t: transport.Conn, uuid: str, flow: str, command: int, addr: transport.Addr): Conn:",
      "pub func Close():",
      "pub func Close(c &: Conn):",
      "pub func CloseWrite():",
      "pub func DecodeRequest(b: transport.Bytes, r &: Request): int:",
      "pub func Dial(",
      "pub func DialLink(l: Link, command: int, target: transport.Addr): Conn:",
      "pub func DialOver(s: dyn tunnel.Stream, uuid: str, flow: str, command: int, target: transport.Addr): Conn:",
      "pub func EncodeRequest(r: Request): transport.Bytes:",
      "pub func FormatLink(l: Link): str:",
      "pub func FreeVision(v &: Vision):",
      "pub func LinkSettings(l: Link): transport.Settings:",
      "pub func MuxClient(c: Conn): transport.Mux:",
      "pub func MuxServer(c: Conn): transport.Mux:",
      "pub func NewUser(uuid: str, flow: str): User:",
      "pub func NewVision(uuid: transport.Bytes): Vision:",
      "pub func Ok(): bool:",
      "pub func ParseLink(link: str): Link:",
      "pub func Read(c &: Conn, buf: void*, max: int): int:",
      "pub func Read(max: int): str:",
      "pub func ReadBytes(buf: void*, max: int): int:",
      "pub func ReadPacket(c &: Conn, out &: transport.Bytes): bool:",
      "pub func ReadRequest(t &: transport.Conn, r &: Request): bool:",
      "pub func SetDeadline(millis: int):",
      "pub func Shutdown():",
      "pub func VisionPad(v &: Vision, p: void*, n: int, command: int, long_padding: bool): transport.Bytes:",
      "pub func VisionRead(t &: transport.Conn, v &: Vision, buf: void*, max: int): int:",
      "pub func VisionUnpad(v &: Vision, p: void*, n: int, out &: transport.Bytes): bool:",
      "pub func VisionWrite(t &: transport.Conn, v &: Vision, p: void*, n: int): bool:",
      "pub func Write(c &: Conn, p: void*, n: int): bool:",
      "pub func Write(data: str): int:",
      "pub func WriteBytes(ptr: void*, n: int): int:",
      "pub func WritePacket(c &: Conn, p: void*, n: int): bool:",
      "pub struct Conn:",
      "pub struct Link:",
      "pub struct Request:",
      "pub struct User:",
      "pub struct Vision:"
    ],
    "net.vmess": [
      "pub const CmdMux := 3",
      "pub const CmdTCP := 1",
      "pub const CmdUDP := 2",
      "pub const OptAuthLength := 16",
      "pub const OptChunkMask := 4",
      "pub const OptChunkStream := 1",
      "pub const OptPadding := 8",
      "pub const SecAES128GCM := 3",
      "pub const SecChaCha20Poly1305 := 4",
      "pub const SecNone := 5",
      "pub const SecZero := 6",
      "pub const TimeWindow := 120",
      "pub func AES128Block(key: transport.Bytes, block: transport.Bytes, decrypt: bool): transport.Bytes:",
      "pub func Accept(t: transport.Conn, users: Vector<User>, rf &: ReplayFilter): Conn:",
      "pub func AcceptOver(s: dyn tunnel.Stream, users: Vector<User>, rf &: ReplayFilter): Conn:",
      "pub func AsStream(c: Conn): dyn tunnel.Stream:",
      "pub func CRC32(data: transport.Bytes): i64:",
      "pub func Client(t: transport.Conn, uuid: str, security: int, option: int, command: int, addr: transport.Addr): Conn:",
      "pub func Close():",
      "pub func Close(c &: Conn):",
      "pub func CloseWrite():",
      "pub func CmdKey(uuid: transport.Bytes): transport.Bytes:",
      "pub func CreateAuthID(cmd_key: transport.Bytes, ts: i64, rand4: transport.Bytes): transport.Bytes:",
      "pub func DecodeRequest(b: transport.Bytes, r &: Request): bool:",
      "pub func DefaultOption(security: int): int:",
      "pub func Dial(",
      "pub func DialLink(l: Link, command: int, target: transport.Addr): Conn:",
      "pub func DialOver(s: dyn tunnel.Stream, uuid: str, security: int, command: int, target: transport.Addr): Conn:",
      "pub func EncodeChunks(",
      "pub func EncodeRequest(r: Request): transport.Bytes:",
      "pub func FNV1a(data: transport.Bytes): i64:",
      "pub func FormatLink(l: Link): str:",
      "pub func KDF(key: transport.Bytes, label: str, a: transport.Bytes, b: transport.Bytes): transport.Bytes:",
      "pub func KDF12(key: transport.Bytes, label: str, a: transport.Bytes, b: transport.Bytes): transport.Bytes:",
      "pub func KDF16(key: transport.Bytes, label: str, a: transport.Bytes, b: transport.Bytes): transport.Bytes:",
      "pub func LinkSettings(l: Link): transport.Settings:",
      "pub func MuxClient(c: Conn): transport.Mux:",
      "pub func MuxServer(c: Conn): transport.Mux:",
      "pub func NewReplayFilter(): ReplayFilter:",
      "pub func NewUser(uuid: str): User:",
      "pub func Ok(): bool:",
      "pub func OpenAuthID(cmd_key: transport.Bytes, authid: transport.Bytes, ts &: i64): bool:",
      "pub func OpenHeader(",
      "pub func OpenHeaderLength(",
      "pub func OpenResponseHeader(resp_key: transport.Bytes, resp_iv: transport.Bytes, enc: transport.Bytes): transport.Bytes:",
      "pub func OpenResponseLength(resp_key: transport.Bytes, resp_iv: transport.Bytes, enc_len: transport.Bytes): int:",
      "pub func ParseLink(link: str): Link:",
      "pub func Read(c &: Conn, buf: void*, max: int): int:",
      "pub func Read(max: int): str:",
      "pub func ReadBytes(buf: void*, max: int): int:",
      "pub func ReadPacket(c &: Conn, out &: transport.Bytes): bool:",
      "pub func SealHeader(",
      "pub func SealHeaderNow(cmd_key: transport.Bytes, data: transport.Bytes): transport.Bytes:",
      "pub func SealResponseHeader(resp_key: transport.Bytes, resp_iv: transport.Bytes, header: transport.Bytes): transport.Bytes:",
      "pub func SecurityByName(name: str): int:",
      "pub func SecurityName(sec: int): str:",
      "pub func SetDeadline(millis: int):",
      "pub func Sha256(data: transport.Bytes): transport.Bytes:",
      "pub func Shake128(msg: transport.Bytes, outlen: int): transport.Bytes:",
      "pub func Shutdown():",
      "pub func Write(c &: Conn, p: void*, n: int): bool:",
      "pub func Write(data: str): int:",
      "pub func WriteBytes(ptr: void*, n: int): int:",
      "pub struct Conn:",
      "pub struct Link:",
      "pub struct ReplayFilter:",
      "pub struct Request:",
      "pub struct User:"
    ],
    "net.vpn": [
      "pub const PENDING_PER_SOURCE := 32",
      "pub func Abort():",
      "pub func Accept(): dyn tunnel.Pending:",
      "pub func BuildDialer(c: tunnel.Config): tunnel.RouterDialer:",
      "pub func Close():",
      "pub func Dial(target: tunnel.Addr): dyn tunnel.Stream:",
      "pub func Dial(target: tunnel.Addr): dyn tunnel.Stream:",
      "pub func Dial(target: tunnel.Addr): dyn tunnel.Stream:",
      "pub func Dial(target: tunnel.Addr): dyn tunnel.Stream:",
      "pub func DialerFromNode(n: tunnel.Node): dyn tunnel.Dialer:",
      "pub func Handshake(s: dyn tunnel.Stream): tunnel.Session:",
      "pub func Handshake(s: dyn tunnel.Stream): tunnel.Session:",
      "pub func Handshake(s: dyn tunnel.Stream): tunnel.Session:",
      "pub func InboundPolicy(ib: tunnel.InboundConfig): tunnel.DestPolicy:",
      "pub func Lookup(host: str): tunnel.LookupResult:",
      "pub func Make(cfg: tunnel.InboundConfig): dyn tunnel.InboundProtocol:",
      "pub func Make(cfg: tunnel.OutboundConfig): dyn tunnel.Dialer:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func Name(): str:",
      "pub func NodeSettings(n: tunnel.Node): transport.Settings:",
      "pub func Ok(): bool:",
      "pub func Ok(l: Listener): bool:",
      "pub func Open(): dyn tunnel.Stream:",
      "pub func Port(): int:",
      "pub func Protocol(): str:",
      "pub func Protocol(): str:",
      "pub func Register():",
      "pub func RegisterWith(o: Options):",
      "pub func Remote(): str:",
      "pub func Reply(_s: dyn tunnel.Stream, sess: tunnel.Session, ok: bool):",
      "pub func Reply(_s: dyn tunnel.Stream, sess: tunnel.Session, ok: bool):",
      "pub func Reply(_s: dyn tunnel.Stream, sess: tunnel.Session, ok: bool):",
      "pub func RunConfig(path: str, every: int, limit: int): int:",
      "pub func Start(ib: tunnel.InboundConfig, dialer: dyn tunnel.Dialer, stats: tunnel.Stats): Listener:",
      "pub func StartAll(c: tunnel.Config, stats: tunnel.Stats): Vector<Listener>:",
      "pub func StartRouted(ib: tunnel.InboundConfig, rd: tunnel.RouterDialer, stats: tunnel.Stats): Listener:",
      "pub func Stop(l: Listener):",
      "pub func StreamSettings(raw: str): transport.Settings:",
      "pub func Summary(st: tunnel.Stats): str:",
      "pub func ToTransportAddr(a: tunnel.Addr): transport.Addr:",
      "pub func ToTunnelAddr(a: transport.Addr): tunnel.Addr:",
      "pub func Valid(): bool:",
      "pub func Wait(st: tunnel.Stats, every: int, limit: int):",
      "pub struct DohResolver:",
      "pub struct InMaker:",
      "pub struct Listener:",
      "pub struct Options:",
      "pub struct OutMaker:",
      "pub struct SsDialer:",
      "pub struct SsInbound:",
      "pub struct TransportAcceptor:",
      "pub struct TransportDialer:",
      "pub struct TransportPending:",
      "pub struct VlessDialer:",
      "pub struct VlessInbound:",
      "pub struct VmessDialer:",
      "pub struct VmessInbound:"
    ],
    "net.websocket": [
      "pub const BINARY := 2",
      "pub const CLOSE := 8",
      "pub const NONE := 0",
      "pub const PING := 9",
      "pub const PONG := 10",
      "pub const TEXT := 1",
      "pub const TIMEOUT := 100",
      "pub func Accept(srv: Server): Conn:",
      "pub func AcceptConn(fd: i64): Conn:",
      "pub func AcceptKey(key: str): str:",
      "pub func AcceptWSS(srv: Server): Conn:",
      "pub func Broadcast(h &: Hub, room: str, msg: str): int:",
      "pub func BroadcastBinary(h &: Hub, room: str, data: str): int:",
      "pub func Close(c &: Conn):",
      "pub func CloseServer(srv: Server):",
      "pub func Dial(host: str, port: int, path: str): Conn:",
      "pub func DialWSS(host: str, port: int, path: str): Conn:",
      "pub func DialWSSUnverified(host: str, port: int, path: str, extra: str): Conn:",
      "pub func DialWSSWith(host: str, port: int, path: str, extra: str): Conn:",
      "pub func DialWith(host: str, port: int, path: str, extra: str): Conn:",
      "pub func HandshakeRequest(host: str, path: str, key: str): str:",
      "pub func HandshakeRequestWith(host: str, path: str, key: str, extra: str): str:",
      "pub func HandshakeResponse(request: str): str:",
      "pub func IsBinary(m: Message): bool:",
      "pub func IsClose(m: Message): bool:",
      "pub func IsOpen(c &: Conn): bool:",
      "pub func IsPong(m: Message): bool:",
      "pub func IsText(m: Message): bool:",
      "pub func Listen(port: int): Server:",
      "pub func LoadWSSConfig(cert_file: str, key_file: str):",
      "pub func NewHub(): Hub:",
      "pub func Ok(srv: Server): bool:",
      "pub func Ping(c &: Conn, data: str): int:",
      "pub func Poll(c &: Conn, timeout_ms: int): Message:",
      "pub func Port(srv: Server): int:",
      "pub func Receive(c &: Conn): Message:",
      "pub func ReceiveText(c &: Conn): str:",
      "pub func Register(h &: Hub, room: str, c: Conn):",
      "pub func RoomSize(h: Hub, room: str): int:",
      "pub func SendBinary(c &: Conn, data: str): int:",
      "pub func SendBinaryBytes(c &: Conn, ptr: void*, n: int): int:",
      "pub func SendText(c &: Conn, msg: str): int:",
      "pub func Stop(c &: Conn):",
      "pub func Unregister(h &: Hub, room: str, c: Conn):",
      "pub struct Conn:",
      "pub struct Hub:",
      "pub struct Message:",
      "pub struct RoomMembers:",
      "pub struct Server:"
    ],
    "node": [
      "pub func Call0(obj: i64, method: str): i64: ret salam_js_call(obj, method) end",
      "pub func CallB1(obj: i64, method: str, a: bool): i64: ret salam_js_call(obj, method, a) end",
      "pub func CallFn0(obj: i64, method: str, fn: func ()): i64: ret salam_js_call(obj, method, fn) end",
      "pub func CallFn1(obj: i64, method: str, fn: func (i64)): i64: ret salam_js_call(obj, method, fn) end",
      "pub func CallS1(obj: i64, method: str, a: str): i64: ret salam_js_call(obj, method, a) end",
      "pub func CallS2(obj: i64, method: str, a: str, b: str): i64: ret salam_js_call(obj, method, a, b) end",
      "pub func CallS3(obj: i64, method: str, a: str, b: str, c: str): i64: ret salam_js_call(obj, method, a, b, c) end",
      "pub func CallSB1(obj: i64, method: str, a: str, b: bool): i64: ret salam_js_call(obj, method, a, b) end",
      "pub func CallSFn0(obj: i64, method: str, a: str, fn: func ()): i64: ret salam_js_call(obj, method, a, fn) end",
      "pub func CallV1(obj: i64, method: str, a: i64): i64: ret salam_js_call(obj, method, a) end",
      "pub func CallV2(obj: i64, method: str, a: i64, b: i64): i64: ret salam_js_call(obj, method, a, b) end",
      "pub func CallV3(obj: i64, method: str, a: i64, b: i64, c: i64): i64: ret salam_js_call(obj, method, a, b, c) end",
      "pub func CallVS1(obj: i64, method: str, a: i64, b: str): i64: ret salam_js_call(obj, method, a, b) end",
      "pub func ExecFile(cmd: str, args: i64, cwd: str, cb: func (bool, str, str)):",
      "pub func ExecFileRaw(cmd: str, args: i64, cwd: str, cb: func (i64, str, str)):",
      "pub func Exports(): i64: ret salam_js_get_prop(module, \"exports\") end",
      "pub func GetBool(obj: i64, name: str): bool: ret salam_js_get_bool(obj, name) end",
      "pub func GetNum(obj: i64, name: str): f64: ret salam_js_get_num(obj, name) end",
      "pub func GetProp(obj: i64, name: str): i64: ret salam_js_get_prop(obj, name) end",
      "pub func GetStr(obj: i64, name: str): str: ret salam_js_get_str(obj, name) end",
      "pub func Global(name: str): i64: ret salam_js_global(name) end",
      "pub func Invoke0(fn: i64): i64: ret salam_js_invoke(fn) end",
      "pub func Invoke1(fn: i64, a: i64): i64: ret salam_js_invoke(fn, a) end",
      "pub func Invoke2(fn: i64, a: i64, b: i64): i64: ret salam_js_invoke(fn, a, b) end",
      "pub func IsNullish(x: i64): bool: ret salam_js_is_nullish(x) end",
      "pub func IsWindows(): bool: ret str.Equals(Platform(), \"win32\") end",
      "pub func MkdtempSync(prefix: str): str:",
      "pub func New0(ctor: i64): i64: ret salam_js_new(ctor) end",
      "pub func New1(ctor: i64, a: i64): i64: ret salam_js_new(ctor, a) end",
      "pub func New4(ctor: i64, a: i64, b: i64, c: i64, d: i64): i64: ret salam_js_new(ctor, a, b, c, d) end",
      "pub func NewArray(): i64: ret salam_js_array0() end",
      "pub func NewObject(): i64: ret salam_js_obj0() end",
      "pub func NewPromise(executor: func (i64, i64)): i64: ret salam_js_new_promise(executor) end",
      "pub func PathDirname(p: str): str:",
      "pub func PathJoin2(a: str, b: str): str:",
      "pub func PathJoin3(a: str, b: str, c: str): str:",
      "pub func Platform(): str: ret salam_js_get_str(process, \"platform\") end",
      "pub func Push(arr: i64, value: i64): salam_js_call(arr, \"push\", value) end",
      "pub func PushStr(arr: i64, value: str): salam_js_call(arr, \"push\", value) end",
      "pub func ReadFileSync(p: str): str:",
      "pub func Require(id: str): i64: ret require(id) end",
      "pub func RmSyncRecursiveForce(p: str):",
      "pub func SetBool(obj: i64, name: str, value: bool): salam_js_set_prop(obj, name, value) end",
      "pub func SetNum(obj: i64, name: str, value: f64): salam_js_set_prop(obj, name, value) end",
      "pub func SetProp(obj: i64, name: str, value: i64): salam_js_set_prop(obj, name, value) end",
      "pub func SetPropFn0(obj: i64, name: str, fn: func ()): salam_js_set_prop(obj, name, fn) end",
      "pub func SetPropFn1(obj: i64, name: str, fn: func (i64)): salam_js_set_prop(obj, name, fn) end",
      "pub func SetPropFn1R(obj: i64, name: str, fn: func (i64) i64): salam_js_set_prop(obj, name, fn) end",
      "pub func SetStr(obj: i64, name: str, value: str): salam_js_set_prop(obj, name, value) end",
      "pub func TmpDir(): str:",
      "pub func ToBool(x: i64): bool: ret salam_js_to_bool(x) end",
      "pub func ToStr(x: i64): str: ret salam_js_to_str(x) end",
      "pub func WriteFileSync(p: str, contents: str):"
    ],
    "npy": [
      "pub const NPY_BOOL := 9",
      "pub const NPY_F32 := 1",
      "pub const NPY_F64 := 0",
      "pub const NPY_I16 := 3",
      "pub const NPY_I32 := 4",
      "pub const NPY_I64 := 5",
      "pub const NPY_I8 := 2",
      "pub const NPY_U16 := 7",
      "pub const NPY_U32 := 8",
      "pub const NPY_U8 := 6",
      "pub func FromMatrix(m &: matrix.Matrix): NpyArray:",
      "pub func NpzList(path: str): Vector<str> throws:",
      "pub func NpzRead(path: str, key: str): NpyArray throws:",
      "pub func NpzWrite(path: str, keys &: Vector<str>, arrays &: Vector<NpyArray>): bool:",
      "pub func ReadNpy(p: void*, n: int): NpyArray throws:",
      "pub func ReadNpyFile(path: str): NpyArray throws:",
      "pub func ToMatrix(a &: NpyArray): matrix.Matrix throws:",
      "pub func WriteNpy(a &: NpyArray): compress.ByteBuf:",
      "pub func WriteNpyFile(a &: NpyArray, path: str): bool:",
      "pub func count(): int: ret this.data.len() end",
      "pub func free():",
      "pub func ndim(): int: ret this.shape.len() end",
      "pub struct NpyArray:"
    ],
    "opencv": [
      "pub const ADAPTIVE_GAUSSIAN := 1",
      "pub const ADAPTIVE_MEAN := 0",
      "pub const BITWISE_AND := 0",
      "pub const BITWISE_OR := 1",
      "pub const BITWISE_XOR := 2",
      "pub const COLOR_BGR2GRAY := 0",
      "pub const COLOR_BGR2HSV := 6",
      "pub const COLOR_BGR2RGB := 4",
      "pub const COLOR_GRAY2BGR := 1",
      "pub const COLOR_GRAY2RGB := 3",
      "pub const COLOR_HSV2BGR := 7",
      "pub const COLOR_HSV2RGB := 9",
      "pub const COLOR_RGB2BGR := 5",
      "pub const COLOR_RGB2GRAY := 2",
      "pub const COLOR_RGB2HSV := 8",
      "pub const FLIP_BOTH := 2",
      "pub const FLIP_HORIZONTAL := 1",
      "pub const FLIP_VERTICAL := 0",
      "pub const INTERP_AREA := 3",
      "pub const INTERP_CUBIC := 2",
      "pub const INTERP_LANCZOS4 := 4",
      "pub const INTERP_LINEAR := 1",
      "pub const INTERP_NEAREST := 0",
      "pub const MORPH_BLACKHAT := 4",
      "pub const MORPH_CLOSE := 1",
      "pub const MORPH_GRADIENT := 2",
      "pub const MORPH_OPEN := 0",
      "pub const MORPH_TOPHAT := 3",
      "pub const NORM_HAMMING := 0",
      "pub const NORM_L2 := 1",
      "pub const ROTATE_180 := 1",
      "pub const ROTATE_90_CCW := 2",
      "pub const ROTATE_90_CW := 0",
      "pub const THRESH_BINARY := 0",
      "pub const THRESH_BINARY_INV := 1",
      "pub const THRESH_OTSU := 5",
      "pub const THRESH_TOZERO := 3",
      "pub const THRESH_TOZERO_INV := 4",
      "pub const THRESH_TRUNC := 2",
      "pub func Available(): bool:",
      "pub func Black(): Color: ret Color { r = 0, g = 0, b = 0 } end",
      "pub func Blue(): Color: ret Color { r = 0, g = 0, b = 255 } end",
      "pub func CreateTrackbar(name: str, window: str, initial: int, max: int): bool:",
      "pub func DestroyAllWindows():",
      "pub func DestroyWindow(window: str):",
      "pub func FromImage(img: image.Image): Mat:",
      "pub func GetTrackbarPos(name: str, window: str): int:",
      "pub func Green(): Color: ret Color { r = 0, g = 255, b = 0 } end",
      "pub func Imshow(window: str, m: Mat):",
      "pub func LastError(): str:",
      "pub func LoadCascade(path: str): CascadeClassifier:",
      "pub func LoadNet(model_path: str, config_path: str): Net:",
      "pub func LoadNetSingleFile(path: str): Net:",
      "pub func MatchDescriptors(desc1: Mat, desc2: Mat, max_matches: int, norm: int): Vector<Match>:",
      "pub func NewBlank(width: int, height: int, channels: int, fill: Color): Mat:",
      "pub func NewVideoWriter(path: str, fourcc: str, fps: f64, width: int, height: int): VideoWriter:",
      "pub func OpenCamera(index: int): VideoCapture:",
      "pub func OpenVideo(path: str): VideoCapture:",
      "pub func ParseSSDDetections(output: Mat, img_width: int, img_height: int, confidence_threshold: f64): Vector<Detection>:",
      "pub func RGB(r: int, g: int, b: int): Color:",
      "pub func Read(path: str): Mat:",
      "pub func Red(): Color: ret Color { r = 255, g = 0, b = 0 } end",
      "pub func SetTrackbarPos(name: str, window: str, pos: int):",
      "pub func ToImage(m: Mat): image.Image:",
      "pub func Version(): str:",
      "pub func WaitKey(delay_ms: int): int:",
      "pub func White(): Color: ret Color { r = 255, g = 255, b = 255 } end",
      "pub func Write(path: str, m: Mat): bool:",
      "pub func Zeros(width: int, height: int, channels: int): Mat:",
      "pub func abs_diff(other: Mat): Mat:",
      "pub func adaptive_threshold(maxval: f64, method: int, kind: int, block_size: int, c: f64): Mat:",
      "pub func area(idx: int): f64:",
      "pub func at(x: int, y: int): Color:",
      "pub func bitwise(other: Mat, op: int): Mat:",
      "pub func bitwise_not(): Mat:",
      "pub func blend(other: Mat, alpha: f64, beta: f64, gamma: f64): Mat:",
      "pub func blur(ksize: int): Mat:",
      "pub func bounding_rect(idx: int): Rect:",
      "pub func canny(t1: f64, t2: f64): Mat:",
      "pub func channels(): int:",
      "pub func circle(cx: int, cy: int, radius: int, color: Color, thickness: int):",
      "pub func clone(): Mat:",
      "pub func close():",
      "pub func close():",
      "pub func convert_color(code: int): Mat:",
      "pub func count(): int:",
      "pub func count(): int:",
      "pub func crop(x: int, y: int, w: int, h: int): Mat:",
      "pub func data(): void*:",
      "pub func descriptors(): Mat:",
      "pub func detect(m: Mat, scale_factor: f64, min_neighbors: int, max_results: int): Vector<DetectedObject>:",
      "pub func detect_orb(max_features: int): Keypoints:",
      "pub func detect_sift(max_features: int): Keypoints:",
      "pub func dilate(ksize: int, iterations: int): Mat:",
      "pub func draw_contour(cs: Contours, idx: int, color: Color, thickness: int):",
      "pub func ellipse(cx: int, cy: int, axis_width: int, axis_height: int, angle_degrees: f64, color: Color, thickness: int):",
      "pub func empty(): bool:",
      "pub func erode(ksize: int, iterations: int): Mat:",
      "pub func fill_poly(pts: Vector<Point>, color: Color):",
      "pub func find_contours(): Contours:",
      "pub func find_template(template: Mat): TemplateMatch:",
      "pub func flip(mode: int): Mat:",
      "pub func flip_horizontal(): Mat: ret this.flip(FLIP_HORIZONTAL) end",
      "pub func flip_vertical(): Mat: ret this.flip(FLIP_VERTICAL) end",
      "pub func forward(): Mat:",
      "pub func forward_layer(layer_name: str): Mat:",
      "pub func fps(): f64:",
      "pub func frame_count(): int:",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func gaussian_blur(ksize: int, sigma: f64): Mat:",
      "pub func get(i: int): Keypoint:",
      "pub func good_features(max_corners: int, quality: f64, min_dist: f64): Vector<Point>:",
      "pub func height(): int:",
      "pub func histogram_gray(): Vector<int>:",
      "pub func hsv_to_rgb(): Mat:",
      "pub func line(x1: int, y1: int, x2: int, y2: int, color: Color, thickness: int):",
      "pub func median_blur(ksize: int): Mat:",
      "pub func morphology(op: int, ksize: int): Mat:",
      "pub func ok(): bool:",
      "pub func ok(): bool: ret this.handle != null end",
      "pub func ok(): bool: ret this.handle != null end",
      "pub func ok(): bool: ret this.handle != null end",
      "pub func ok(): bool: ret this.handle != null end",
      "pub func ok(): bool: ret this.handle != null end",
      "pub func ok(): bool: ret this.handle != null end",
      "pub func point(idx: int, pt_idx: int): Point:",
      "pub func point_count(idx: int): int:",
      "pub func polylines(pts: Vector<Point>, closed: bool, color: Color, thickness: int):",
      "pub func put_text(text: str, x: int, y: int, font_scale: f64, color: Color, thickness: int):",
      "pub func read(): Mat:",
      "pub func rectangle(x: int, y: int, w: int, h: int, color: Color, thickness: int):",
      "pub func resize(width: int, height: int, interpolation: int): Mat:",
      "pub func resize_scale(fx: f64, fy: f64): Mat:",
      "pub func rotate(angle_degrees: f64, scale: f64): Mat:",
      "pub func rotate90(code: int): Mat:",
      "pub func save(path: str): bool:",
      "pub func set_input(image: Mat, scale: f64, mean: Color, swap_rb: bool, size: Size): bool:",
      "pub func set_pixel(x: int, y: int, c: Color):",
      "pub func size(): Size: ret Size { width = this.width(), height = this.height() } end",
      "pub func step(): int:",
      "pub func threshold(thresh: f64, maxval: f64, kind: int): Mat:",
      "pub func threshold_otsu(maxval: f64): Mat:",
      "pub func to_gray(): Mat:",
      "pub func to_hsv(): Mat:",
      "pub func to_rgb(): Mat:",
      "pub func total(): int:",
      "pub func warp_perspective(src: Vector<Point>, out_width: int, out_height: int): Mat:",
      "pub func width(): int:",
      "pub func write(frame: Mat): bool:",
      "pub struct CascadeClassifier:",
      "pub struct Color:",
      "pub struct Contours:",
      "pub struct DetectedObject:",
      "pub struct Detection:",
      "pub struct Keypoint:",
      "pub struct Keypoints:",
      "pub struct Mat:",
      "pub struct Match:",
      "pub struct Net:",
      "pub struct Point:",
      "pub struct Rect:",
      "pub struct Size:",
      "pub struct TemplateMatch:",
      "pub struct VideoCapture:",
      "pub struct VideoWriter:"
    ],
    "os": [
      "pub func AppendFile(path: str, data: str): int: ret io.AppendFile(path, data) end",
      "pub func Args(): Vector<str>: ret args() end",
      "pub func Chdir(path: str): int: ret _os_chdir(path) end",
      "pub func Copy(src: str, dst: str): int:",
      "pub func CopyTree(src: str, dst: str): int:",
      "pub func Cwd(): str: ret _os_cwd() end",
      "pub func Env(name: str): str:",
      "pub func Exists(path: str): bool: ret _os_exists(path) end",
      "pub func FileSize(path: str): i64:",
      "pub func IsDir(path: str): bool: ret _os_is_dir(path) end",
      "pub func ListDir(path: str): Vector<str>:",
      "pub func ListDirs(path: str): Vector<str>:",
      "pub func Mkdir(path: str): int: ret _os_mkdir(path) end",
      "pub func MkdirAll(path: str): int:",
      "pub func Move(src: str, dst: str): int:",
      "pub func Open(path: str, mode: str): File*: ret salam_open(path, mode) end",
      "pub func Output(cmd: str): str:",
      "pub func Pid(): int: ret _proc_pid() end",
      "pub func ReadFile(path: str): str: ret io.ReadFile(path) end",
      "pub func RealPath(path: str): str: ret _os_real_path(path) end",
      "pub func Remove(path: str): int:",
      "pub func RemoveAll(path: str): int:",
      "pub func Rmdir(path: str): int: ret _os_rmdir(path) end",
      "pub func Run(cmd: str): int:",
      "pub func RunCapture(cmd: str): CmdResult:",
      "pub func Stat(path: str): FileInfo:",
      "pub func TempDir(): str:",
      "pub func Walk(root: str): Vector<str>:",
      "pub func WriteFile(path: str, data: str): int: ret io.WriteFile(path, data) end",
      "pub noret func Abort(): abort() end",
      "pub noret func Exit(code: int): exit(code) end",
      "pub struct CmdResult:",
      "pub struct FileInfo:"
    ],
    "os.dl": [
      "pub func Call(fn: void*, args: size[]): size:",
      "pub func CallMixed(fn: void*, ints: size[], dbls: f64[]): size:",
      "pub func CallMixedF64(fn: void*, ints: size[], dbls: f64[]): f64:",
      "pub func Close(lib: void*): bool:",
      "pub func Error(): str:",
      "pub func Open(path: str): void*:",
      "pub func OpenSelf(): void*:",
      "pub func Supported(): bool:",
      "pub func Sym(lib: void*, name: str): void*:"
    ],
    "os.error": [
      "pub const AlreadyExists := 3",
      "pub const FileNotFound := 1",
      "pub const IOError := 6",
      "pub const InvalidPath := 4",
      "pub const None := 0",
      "pub const NotSupported := 5",
      "pub const PermissionDenied := 2",
      "pub const ProcessFailed := 8",
      "pub const Timeout := 7",
      "pub func Clear():",
      "pub func HasError(): bool: ret _last_code != None end",
      "pub func Last(): OSError:",
      "pub func LastCode(): int: ret _last_code end",
      "pub func LastMessage(): str: ret _last_message end",
      "pub func Set(code: int, message: str, operation: str, path: str, system_code: int):",
      "pub struct OSError:"
    ],
    "os.mmap": [
      "pub const PROT_EXEC := 4",
      "pub const PROT_NONE := 0",
      "pub const PROT_READ := 1",
      "pub const PROT_WRITE := 2",
      "pub func Alloc(size: int, prot: int): void*:",
      "pub func Free(p: void*, size: int): bool:",
      "pub func PageSize(): int:",
      "pub func Protect(p: void*, size: int, prot: int): bool:",
      "pub func Supported(): bool:"
    ],
    "os.platform": [
      "pub func Arch(): str:",
      "pub func AvailableMemory(): i64:",
      "pub func AvailableMemory(): i64:",
      "pub func CpuCount(): int:",
      "pub func CpuCount(): int:",
      "pub func CpuCount(): int: ret sysconf(_SC_NPROCESSORS_ONLN) as int end",
      "pub func IsAndroid(): bool: if SALAM_OS_ANDROID: ret true else:",
      "pub func IsArm(): bool: if SALAM_ARCH_ARM: ret true else:",
      "pub func IsArm64(): bool: if SALAM_ARCH_ARM64: ret true else:",
      "pub func IsBSD(): bool: if SALAM_OS_BSD: ret true else:",
      "pub func IsFreeBSD(): bool: if SALAM_OS_FREEBSD: ret true else:",
      "pub func IsLinux(): bool: if SALAM_OS_LINUX: ret true else:",
      "pub func IsMac(): bool: if SALAM_OS_MAC: ret true else:",
      "pub func IsWasm(): bool: if SALAM_OS_WASM: ret true else:",
      "pub func IsWindows(): bool: if SALAM_OS_WINDOWS: ret true else:",
      "pub func IsX64(): bool: if SALAM_ARCH_X64: ret true else:",
      "pub func IsX86(): bool: if SALAM_ARCH_X86: ret true else:",
      "pub func OS(): str:",
      "pub func TotalMemory(): i64:",
      "pub func TotalMemory(): i64:"
    ],
    "os.process": [
      "pub const Inherit := 0",
      "pub const Merge := 3",
      "pub const Null := 2",
      "pub const Pipe := 1",
      "pub const SigHup := 1",
      "pub const SigInt := 2",
      "pub const SigKill := 9",
      "pub const SigQuit := 3",
      "pub const SigTerm := 15",
      "pub func Arg(a: str):",
      "pub func Cleanup(p &: Process):",
      "pub func Close():",
      "pub func CloseStdin():",
      "pub func Env(name: str, value: str):",
      "pub func ExitCode(p: Process): int: ret p.exit_code end",
      "pub func ExitNow(code: int):",
      "pub func ExitNow(code: int):",
      "pub func Fork(): int:",
      "pub func Fork(): int:",
      "pub func Free():",
      "pub func Free():",
      "pub func Free():",
      "pub func IsRunning(p: Process): bool: ret p.running end",
      "pub func Kill(): bool:",
      "pub func Kill(p &: Process): int:",
      "pub func Kill(p &: Process): int:",
      "pub func KillGroup(): bool:",
      "pub func KillTree(p &: Process):",
      "pub func KillTree(p &: Process):",
      "pub func Launch(c: Command): Child:",
      "pub func NewCommand(program: str): Command:",
      "pub func Pid(p: Process): int: ret p.pid end",
      "pub func Piped():",
      "pub func Poll(): bool:",
      "pub func Read(n: int, ms: int): Chunk:",
      "pub func ReadAvailable(ms: int): Chunk:",
      "pub func ReadBytes(dst: void*, max: int, ms: int): int:",
      "pub func ReadErrAvailable(ms: int): Chunk:",
      "pub func ReadErrFor(ms: int): Chunk:",
      "pub func ReadErrLine(ms: int): Chunk:",
      "pub func ReadErrUntil(text: str, ms: int): Chunk:",
      "pub func ReadFor(ms: int): Chunk:",
      "pub func ReadLine(ms: int): Chunk:",
      "pub func ReadStderr(p: Process): str:",
      "pub func ReadStdout(p: Process): str:",
      "pub func ReadUntil(text: str, ms: int): Chunk:",
      "pub func ReturnCode(): int:",
      "pub func RunCommand(c: Command, text: str, timeout_ms: int): RunResult:",
      "pub func RunTimeout(program: str, args: Vector<str>, text: str, timeout_ms: int): RunResult:",
      "pub func Signal(sig: int): bool:",
      "pub func SignalGroup(sig: int): bool:",
      "pub func Spawn(o: SpawnOptions): Process:",
      "pub func Spawn(o: SpawnOptions): Process:",
      "pub func Start(path: str, args: Vector<str>): Process:",
      "pub func Start(path: str, args: Vector<str>): Process:",
      "pub func StartCaptured(path: str, args: Vector<str>): Process:",
      "pub func StartCaptured(path: str, args: Vector<str>): Process:",
      "pub func Success(): bool:",
      "pub func Terminate(): bool:",
      "pub func Terminate(p &: Process): int:",
      "pub func Terminate(p &: Process): int: ret Kill(p) end",
      "pub func TryWait(p &: Process): bool:",
      "pub func TryWait(p &: Process): bool:",
      "pub func Unset(name: str):",
      "pub func Wait(ms: int): Status:",
      "pub func Wait(p &: Process): int:",
      "pub func Wait(p &: Process): int:",
      "pub func WaitPid(pid: int): int:",
      "pub func WaitPid(pid: int): int:",
      "pub func Write(text: str): bool:",
      "pub func WriteBytes(data: void*, n: int): bool:",
      "pub struct Child:",
      "pub struct Chunk:",
      "pub struct Command:",
      "pub struct Process:",
      "pub struct RunResult:",
      "pub struct SpawnOptions:",
      "pub struct Status:"
    ],
    "os.pty": [
      "pub func GetSize(_c: process.Child): Size:",
      "pub func GetSize(c: process.Child): Size:",
      "pub func Open(c: process.Command, rows: int, cols: int): process.Child:",
      "pub func Resize(_c: process.Child, _rows: int, _cols: int): bool:",
      "pub func Resize(c: process.Child, rows: int, cols: int): bool:",
      "pub func Supported(): bool:",
      "pub struct Size:"
    ],
    "os.shell": [
      "pub func Exec(command: str): CmdResult:",
      "pub func Run(command: str, args: Vector<str>): CmdResult:",
      "pub func System(command: str): int:",
      "pub struct CmdResult:"
    ],
    "os.signal": [
      "pub const SigAlrm := 14",
      "pub const SigChld := 17",
      "pub const SigChld := 20",
      "pub const SigCont := 18",
      "pub const SigCont := 19",
      "pub const SigHup := 1",
      "pub const SigInt := 2",
      "pub const SigKill := 9",
      "pub const SigPipe := 13",
      "pub const SigQuit := 3",
      "pub const SigStop := 17",
      "pub const SigStop := 19",
      "pub const SigTerm := 15",
      "pub const SigTstp := 18",
      "pub const SigTstp := 20",
      "pub const SigUsr1 := 10",
      "pub const SigUsr1 := 30",
      "pub const SigUsr2 := 12",
      "pub const SigUsr2 := 31",
      "pub const SigWinch := 28",
      "pub const SignalSetSize := 0",
      "pub const SignalSetSize := 128",
      "pub const SignalSetSize := 16",
      "pub const SignalSetSize := 4",
      "pub const SignalSetSize := 4",
      "pub const SignalSetSize := 4",
      "pub const SignalSetSize := 8",
      "pub const WaitArrived := 1",
      "pub const WaitBusy := -3",
      "pub const WaitFailed := -2",
      "pub const WaitInvalid := -1",
      "pub const WaitTimedOut := 0",
      "pub const WinchSignal := 28",
      "pub func AddSignal(set: void*, sig: int): bool:",
      "pub func Block(set: void*): bool:",
      "pub func BlockWinch(): bool:",
      "pub func CurrentMask(): void*:",
      "pub func DelSignal(set: void*, sig: int): bool:",
      "pub func FillSet(set: void*):",
      "pub func Install(sig: int, handler: void*): void*:",
      "pub func InstallWinchHandler(): void*:",
      "pub func IsSignal(set: void*, sig: int): bool:",
      "pub func NewSet(): void*:",
      "pub func NewWinchSet(): void*:",
      "pub func Raise(sig: int): bool:",
      "pub func Restore(sig: int, prev: void*): bool:",
      "pub func SetMask(set: void*): bool:",
      "pub func Unblock(set: void*): bool:",
      "pub func Wait(set: void*, out: void*): int:",
      "pub func WaitSignal(set: void*): int:",
      "pub func WaitTimeout(set: void*, out: void*, millis: int): int:",
      "pub func WaitWinch(set: void*): int:",
      "pub func WakeWinch(): bool:",
      "pub func WinchSupported(): bool:"
    ],
    "os.temp": [
      "pub func Directory(): str:",
      "pub func File(): str:",
      "pub func Remove(p: str): int:",
      "pub func RemoveDir(p: str): int:"
    ],
    "os.user": [
      "pub func CacheDir(): str:",
      "pub func ConfigDir(): str:",
      "pub func Gid(): int: ret 0 - 1 end",
      "pub func Gid(): int: ret getgid() end",
      "pub func HomeDir(): str:",
      "pub func Uid(): int: ret 0 - 1 end",
      "pub func Uid(): int: ret getuid() end",
      "pub func Username(): str:"
    ],
    "pool": [
      "pub func Async(p: Pool, task_fn: func () i64): Future:",
      "pub func AsyncStr(p: Pool, task_fn: func () str): Future:",
      "pub func Await(f: Future): i64:",
      "pub func AwaitStr(f: Future): str:",
      "pub func CPUCount(): i64:",
      "pub func Go(task: func ()):",
      "pub func GoWait():",
      "pub func GroupFailed(g: Group): bool:",
      "pub func GroupGo(g: Group, task_fn: func () str): bool:",
      "pub func GroupStop(g: Group):",
      "pub func GroupWait(g: Group): str:",
      "pub func Map(n: i64, workers: i64, task_fn: func (i64) i64): Vector<i64>:",
      "pub func New(workers: i64, queue: i64): Pool:",
      "pub func NewAuto(): Pool:",
      "pub func NewElastic(min: i64, max: i64, queue: i64): Pool:",
      "pub func NewGroup(limit: i64): Group:",
      "pub func ParallelFor(n: i64, workers: i64, body: func (i64)):",
      "pub func ParallelForAuto(n: i64, body: func (i64)):",
      "pub func Pending(p: Pool): i64:",
      "pub func Ready(f: Future): bool:",
      "pub func Release(f: Future):",
      "pub func Running(p: Pool): i64:",
      "pub func Stop(p: Pool):",
      "pub func Submit(p: Pool, task: func ()): bool:",
      "pub func SubmitOrRun(p: Pool, task: func ()):",
      "pub func TrySubmit(p: Pool, task: func ()): bool:",
      "pub func Wait(p: Pool):",
      "pub func Workers(p: Pool): i64:",
      "pub struct Future:",
      "pub struct Group:",
      "pub struct Pool:"
    ],
    "rand": [
      "pub func Alnum(n: int): str:",
      "pub func Alpha(n: int): str:",
      "pub func AlphaMixed(n: int): str:",
      "pub func AlphaUpper(n: int): str:",
      "pub func Bool(): bool:",
      "pub func BoolP(p: f64): bool:",
      "pub func Bytes(n: int): str:",
      "pub func ChoiceChar(s: str): str:",
      "pub func ChoiceInt(v: Vector<int>): int:",
      "pub func ChoiceStr(v: Vector<str>): str:",
      "pub func Digit(n: int): str:",
      "pub func Float(): f64:",
      "pub func FloatRange(lo: f64, hi: f64): f64:",
      "pub func Hash(): str:",
      "pub func Hash160(): str:",
      "pub func Hash256(): str:",
      "pub func HexBytes(n: int): str:",
      "pub func Int(): i64:",
      "pub func Int32(): int:",
      "pub func Int32Range(lo: int, hi: int): int:",
      "pub func IntN(n: i64): i64:",
      "pub func IntRange(lo: i64, hi: i64): i64:",
      "pub func IntWithLength(digits: int): i64:",
      "pub func Seed(s: i64):",
      "pub func SeedAuto():",
      "pub func ShuffleInt(v: Vector<int>): Vector<int>:",
      "pub func ShuffleStr(v: Vector<str>): Vector<str>:",
      "pub func Text(n: int): str:",
      "pub func TextFrom(n: int, charset: str): str:",
      "pub func UUID(): str:"
    ],
    "regex": [
      "pub func Compile(pattern: str): Regex throws:",
      "pub func Expand(m: MatchResult, template: str): str:",
      "pub func Find(re: Regex, text: str): int:",
      "pub func FindAll(re: Regex, text: str): Vector<str>:",
      "pub func FindAllMatches(re: Regex, text: str, limit: int): Vector<MatchResult>:",
      "pub func FindAllN(re: Regex, text: str, limit: int): Vector<str>:",
      "pub func FindAllStr(pattern: str, text: str): Vector<str> throws:",
      "pub func FindMatch(re: Regex, text: str): MatchResult:",
      "pub func FindMatchFrom(re: Regex, text: str, from: int): MatchResult:",
      "pub func FindMatchStr(pattern: str, text: str): MatchResult throws:",
      "pub func FindStr(pattern: str, text: str): int throws:",
      "pub func FindSubmatch(re: Regex, text: str): Vector<str>:",
      "pub func FindSubmatchStr(pattern: str, text: str): Vector<str> throws:",
      "pub func Group(m: MatchResult, i: int): str:",
      "pub func GroupByName(m: MatchResult, name: str): str:",
      "pub func GroupCount(m: MatchResult): int:",
      "pub func GroupEnd(m: MatchResult, i: int): int:",
      "pub func GroupIndex(m: MatchResult, name: str): int:",
      "pub func GroupOk(m: MatchResult, i: int): bool:",
      "pub func GroupStart(m: MatchResult, i: int): int:",
      "pub func IsValid(pattern: str): bool:",
      "pub func Match(re: Regex, text: str): bool:",
      "pub func MatchStr(pattern: str, text: str): bool throws:",
      "pub func Replace(re: Regex, text: str, replacement: str): str:",
      "pub func ReplaceAll(re: Regex, text: str, replacement: str): str:",
      "pub func ReplaceAllExpand(re: Regex, text: str, template: str): str:",
      "pub func ReplaceAllExpandStr(pattern: str, text: str, template: str): str throws:",
      "pub func ReplaceAllStr(pattern: str, text: str, replacement: str): str throws:",
      "pub func ReplaceExpand(re: Regex, text: str, template: str): str:",
      "pub func ReplaceExpandStr(pattern: str, text: str, template: str): str throws:",
      "pub func ReplaceStr(pattern: str, text: str, replacement: str): str throws:",
      "pub func Split(re: Regex, text: str): Vector<str>:",
      "pub func SplitN(re: Regex, text: str, limit: int): Vector<str>:",
      "pub func SplitStr(pattern: str, text: str): Vector<str> throws:",
      "pub struct MatchResult:",
      "pub struct Regex:"
    ],
    "rpc": [
      "pub const RPC_CODEC_JSON := 0",
      "pub const RPC_CODEC_MSGPACK := 1",
      "pub const RPC_FRAME_HEADER := 1",
      "pub const RPC_FRAME_LENGTH := 2",
      "pub const RPC_FRAME_LINE := 0",
      "pub const RPC_INTERNAL_ERROR := 0 - 32603",
      "pub const RPC_INVALID_PARAMS := 0 - 32602",
      "pub const RPC_INVALID_REQUEST := 0 - 32600",
      "pub const RPC_KIND_NOTIFICATION := 2",
      "pub const RPC_KIND_REQUEST := 1",
      "pub const RPC_KIND_RESPONSE := 3",
      "pub const RPC_MAX_FRAME := 33554432",
      "pub const RPC_METHOD_NOT_FOUND := 0 - 32601",
      "pub const RPC_MP_NOTIFY := 2",
      "pub const RPC_MP_REQUEST := 0",
      "pub const RPC_MP_RESPONSE := 1",
      "pub const RPC_PARSE_ERROR := 0 - 32700",
      "pub const RPC_READ_CHUNK := 4096",
      "pub const RPC_SERVER_ERROR := 0 - 32000",
      "pub func Call(c &: Client, method: str, params: value.Value): Response:",
      "pub func CallArgs(c &: Client, method: str, args: Vector<value.Value>): Response:",
      "pub func CallBatch(c &: Client, reqs: Vector<Request>): Responses:",
      "pub func CallHTTP(url: str, method: str, params: value.Value, id: i64): Response:",
      "pub func CallIsNotification(slot: i64): bool:",
      "pub func CallMethodName(slot: i64): str:",
      "pub func CallNoParams(c &: Client, method: str): Response:",
      "pub func CallParam(slot: i64, key: str, pos: int): value.Value:",
      "pub func CallParamBool(slot: i64, key: str, pos: int): bool:",
      "pub func CallParamCount(slot: i64): int:",
      "pub func CallParamFloat(slot: i64, key: str, pos: int): f64:",
      "pub func CallParamInt(slot: i64, key: str, pos: int): i64:",
      "pub func CallParamStr(slot: i64, key: str, pos: int): str:",
      "pub func CallParams(slot: i64): value.Value:",
      "pub func CallRequest(slot: i64): Request:",
      "pub func ClientError(c: Client): str:",
      "pub func ClientFromFd(fd: i64, codec: int): Client:",
      "pub func ClientOk(c: Client): bool:",
      "pub func ClientSetFraming(c &: Client, framing: int):",
      "pub func CloseClient(c &: Client):",
      "pub func CodecDefaultFraming(codec: int): int:",
      "pub func CodecName(codec: int): str:",
      "pub func DecodeBatch(codec: int, payload: compress.ByteBuf): Batch:",
      "pub func DecodeResponse(codec: int, payload: compress.ByteBuf, ok &: bool): Response:",
      "pub func DialClient(host: str, port: int, codec: int): Client:",
      "pub func EncodeRequest(codec: int, r: Request): compress.ByteBuf:",
      "pub func EncodeResponses(codec: int, rs: Responses): compress.ByteBuf:",
      "pub func EncodeTopLevelError(codec: int, e: Error): compress.ByteBuf:",
      "pub func ErrorCode(r: Response): int:",
      "pub func ErrorMessage(r: Response): str:",
      "pub func ErrorWithData(code: int, message: str, data: value.Value): Error:",
      "pub func Fail(slot: i64, code: int, message: str):",
      "pub func FailInvalidParams(slot: i64, message: str):",
      "pub func FailWithData(slot: i64, code: int, message: str, data: value.Value):",
      "pub func FeedBuf(s &: Stream, b: compress.ByteBuf):",
      "pub func FeedStr(s &: Stream, text: str):",
      "pub func FrameEncode(kind: int, payload: compress.ByteBuf): compress.ByteBuf:",
      "pub func FrameEncodeStr(kind: int, payload: str): compress.ByteBuf:",
      "pub func FreeStream(s &: Stream):",
      "pub func HandlePayload(codec: int, payload: compress.ByteBuf): compress.ByteBuf:",
      "pub func HandleText(text: str): str:",
      "pub func HasMethod(name: str): bool:",
      "pub func HasParam(r: Request, key: str, pos: int): bool:",
      "pub func Invoke(req: Request): Response:",
      "pub func InvokeBatch(b: Batch): Responses:",
      "pub func IsErrorResponse(r: Response): bool:",
      "pub func IsNotification(r: Request): bool:",
      "pub func JsonDecodeBatch(text: str): Batch:",
      "pub func JsonDecodeRequest(text: str, ok &: bool): Request:",
      "pub func JsonDecodeResponse(text: str, ok &: bool): Response:",
      "pub func JsonDecodeResponses(text: str, ok &: bool): Responses:",
      "pub func JsonEncodeRequest(r: Request): str:",
      "pub func JsonEncodeResponse(r: Response): str:",
      "pub func JsonEncodeResponses(rs: Responses): str:",
      "pub func JsonTopLevelError(e: Error): str:",
      "pub func ListMethods(): Vector<str>:",
      "pub func Listen(s &: Server): bool:",
      "pub func MethodCount(): int:",
      "pub func MethodDoc(name: str): str:",
      "pub func MsgpackDecodeBatch(b: compress.ByteBuf): Batch:",
      "pub func MsgpackDecodeResponse(b: compress.ByteBuf, ok &: bool): Response:",
      "pub func MsgpackEncodeRequest(r: Request): compress.ByteBuf:",
      "pub func MsgpackEncodeResponse(r: Response): compress.ByteBuf:",
      "pub func NewError(code: int, message: str): Error:",
      "pub func NewErrorResponse(id: value.Value, e: Error): Response:",
      "pub func NewMemStream(): Stream:",
      "pub func NewNotification(method: str, params: value.Value): Request:",
      "pub func NewRequest(method: str, params: value.Value, id: i64): Request:",
      "pub func NewRequestStrId(method: str, params: value.Value, id: str): Request:",
      "pub func NewResponse(id: value.Value, result: value.Value): Response:",
      "pub func NewServer(port: int, codec: int): Server:",
      "pub func NewStream(fd: i64): Stream:",
      "pub func Notify(c &: Client, method: str, params: value.Value): bool:",
      "pub func Param(r: Request, key: str, pos: int): value.Value:",
      "pub func ParamAt(r: Request, i: int): value.Value:",
      "pub func ParamBool(r: Request, key: str, pos: int): bool:",
      "pub func ParamCount(r: Request): int:",
      "pub func ParamFloat(r: Request, key: str, pos: int): f64:",
      "pub func ParamInt(r: Request, key: str, pos: int): i64:",
      "pub func ParamNamed(r: Request, key: str): value.Value:",
      "pub func ParamStr(r: Request, key: str, pos: int): str:",
      "pub func Port(s: Server): int:",
      "pub func ReadFrame(s &: Stream, kind: int, ok &: bool): compress.ByteBuf:",
      "pub func ReadFrameStr(s &: Stream, kind: int, ok &: bool): str:",
      "pub func Register(name: str, fn: i64):",
      "pub func RegisterDoc(name: str, fn: i64, doc: str):",
      "pub func Reply(slot: i64, result: value.Value):",
      "pub func ReplyBool(slot: i64, b: bool):",
      "pub func ReplyFloat(slot: i64, n: f64):",
      "pub func ReplyInt(slot: i64, n: i64):",
      "pub func ReplyNull(slot: i64):",
      "pub func ReplyStr(slot: i64, s: str):",
      "pub func ResetRegistry():",
      "pub func ResultBool(r: Response): bool:",
      "pub func ResultFloat(r: Response): f64:",
      "pub func ResultInt(r: Response): i64:",
      "pub func ResultStr(r: Response): str:",
      "pub func Serve(s &: Server):",
      "pub func ServeConn(fd: i64, codec: int, framing: int): int:",
      "pub func ServeCount(s &: Server, n: int): int:",
      "pub func ServeStdio(framing: int): int:",
      "pub func SetFraming(s &: Server, framing: int):",
      "pub func StdError(code: int): Error:",
      "pub func StopServer(s &: Server):",
      "pub func StreamClosed(s: Stream): bool:",
      "pub func StreamPending(s: Stream): int:",
      "pub func Unregister(name: str): bool:",
      "pub func WriteFrame(fd: i64, kind: int, payload: compress.ByteBuf): bool:",
      "pub func WriteFrameStr(fd: i64, kind: int, payload: str): bool:",
      "pub struct Batch:",
      "pub struct CallSlot:",
      "pub struct Client:",
      "pub struct Error:",
      "pub struct Method:",
      "pub struct MethodTable:",
      "pub struct Request:",
      "pub struct Response:",
      "pub struct Responses:",
      "pub struct Server:",
      "pub struct SlotTable:",
      "pub struct Stream:"
    ],
    "runtime": [
      "pub func Arch(): str: ret platform.Arch() end",
      "pub func AvailableMemory(): i64: ret platform.AvailableMemory() end",
      "pub func BuildFlags(): str:",
      "pub func CpuCount(): int: ret platform.CpuCount() end",
      "pub func IsAsanBuild(): bool: if SALAM_ASAN: ret true else:",
      "pub func IsMemDebugBuild(): bool: if SALAM_MEM_DEBUG: ret true else:",
      "pub func IsSafeBuild(): bool: if SALAM_SAFE: ret true else:",
      "pub func MarkStart(): _ensure_start() end",
      "pub func OS(): str: ret platform.OS() end",
      "pub func Summary(): str:",
      "pub func TotalMemory(): i64: ret platform.TotalMemory() end",
      "pub func UptimeMs(): i64:",
      "pub func UptimeSeconds(): f64: ret (UptimeMs() as f64) / 1000.0 end",
      "pub func UsedMemory(): i64:"
    ],
    "sort": [
      "pub func BinaryInsertionSort<T>(v: Vector<T>):",
      "pub func BinarySearch<T>(v: Vector<T>, x: T): int: mut lo := 0",
      "pub func BubbleSort<T>(v: Vector<T>):",
      "pub func BucketSort(v: Vector<int>):",
      "pub func CocktailSort<T>(v: Vector<T>):",
      "pub func CombSort<T>(v: Vector<T>):",
      "pub func CountingSort(v: Vector<int>):",
      "pub func GnomeSort<T>(v: Vector<T>):",
      "pub func HeapSort<T>(v: Vector<T>):",
      "pub func InsertionSort<T>(v: Vector<T>):",
      "pub func IntroSort<T>(v: Vector<T>):",
      "pub func IsSorted<T>(v: Vector<T>): bool: mut i := 1",
      "pub func IsSortedBy<T>(v: Vector<T>, less: func (T, T) bool): bool: mut i := 1",
      "pub func LowerBound<T>(v: Vector<T>, x: T): int: mut lo := 0",
      "pub func Max<T>(v: Vector<T>): T: mut m := v.get(0)",
      "pub func MergeSort<T>(v: Vector<T>):",
      "pub func Min<T>(v: Vector<T>): T: mut m := v.get(0)",
      "pub func OddEvenSort<T>(v: Vector<T>):",
      "pub func PancakeSort<T>(v: Vector<T>):",
      "pub func QuickSort<T>(v: Vector<T>):",
      "pub func RadixSort(v: Vector<int>):",
      "pub func Reverse<T>(v: Vector<T>):",
      "pub func SelectionSort<T>(v: Vector<T>):",
      "pub func ShellSort<T>(v: Vector<T>):",
      "pub func Sort<T>(v: Vector<T>):",
      "pub func SortBy<T>(v: Vector<T>, less: func (T, T) bool):",
      "pub func SortDesc<T>(v: Vector<T>):",
      "pub func SortIndex(idx &: Vector<int>, keys &: Vector<f64>):",
      "pub func SortIndexDesc(idx &: Vector<int>, keys &: Vector<f64>):",
      "pub func Sorted<T>(v: Vector<T>): Vector<T>: mut out := Vector {} as Vector<T> mut i := 0",
      "pub func SortedBy<T>(v: Vector<T>, less: func (T, T) bool): Vector<T>: mut out := Vector {} as Vector<T> mut i := 0",
      "pub func StableSortBy<T>(v: Vector<T>, less: func (T, T) bool):",
      "pub func Swap<T>(v: Vector<T>, i: int, j: int):",
      "pub func UpperBound<T>(v: Vector<T>, x: T): int: mut lo := 0"
    ],
    "ssh": [
      "pub const ClientVersion := \"SSH-2.0-Salam_1.0\"",
      "pub const DefaultPort := 22",
      "pub const HOSTKEY_MODE_ACCEPT_NEW := 1",
      "pub const HOSTKEY_MODE_INSECURE := 0",
      "pub const HOSTKEY_MODE_STRICT := 2",
      "pub func BufPutBool(b &: Buf, v: bool):",
      "pub func BufPutBuf(b &: Buf, src: Buf):",
      "pub func BufPutByte(b &: Buf, v: int):",
      "pub func BufPutBytes(b &: Buf, p: void*, n: int):",
      "pub func BufPutMpintBuf(b &: Buf, src: Buf):",
      "pub func BufPutMpintBytes(b &: Buf, p: void*, n: int):",
      "pub func BufPutString(b &: Buf, p: void*, n: int):",
      "pub func BufPutStringBuf(b &: Buf, src: Buf):",
      "pub func BufPutStringStr(b &: Buf, s: str):",
      "pub func BufPutUint32(b &: Buf, v: u32):",
      "pub func BufPutUint64(b &: Buf, v: u64):",
      "pub func BufPutZeros(b &: Buf, n: int):",
      "pub func Close(client &: Client):",
      "pub func CloseInput(session &: Session, client &: Client):",
      "pub func CloseSession(session &: Session, client &: Client):",
      "pub func Connect(cfg: Config): Client:",
      "pub func ConstantTimeEqual(a: void*, b: void*, n: int): bool:",
      "pub func Dial(cfg: Config): Client:",
      "pub func Download(client &: Client, sftp &: Sftp, remote_path: str, local_path: str): bool:",
      "pub func DownloadDir(client &: Client, sftp &: Sftp, remote_path: str, local_path: str): bool:",
      "pub func DrainOutput(session &: Session): str:",
      "pub func DrainStderrOutput(session &: Session): str:",
      "pub func Error(client: Client): str:",
      "pub func Exec(client &: Client, cmd: str): ExecResult:",
      "pub func Exists(client &: Client, sftp &: Sftp, path: str): bool:",
      "pub func ExitCode(session: Session): int:",
      "pub func FreeBuf(b &: Buf):",
      "pub func HostKeyFingerprint(client: Client): str:",
      "pub func IsLink(client &: Client, sftp &: Sftp, path: str): bool:",
      "pub func ListDir(client &: Client, sftp &: Sftp, path: str): Vector<SftpFileInfo>:",
      "pub func Lstat(client &: Client, sftp &: Sftp, path: str): SftpFileInfo:",
      "pub func Mkdir(client &: Client, sftp &: Sftp, path: str): bool:",
      "pub func MkdirAll(client &: Client, sftp &: Sftp, path: str): bool:",
      "pub func NameListContains(list: str, name: str): bool:",
      "pub func NegotiateFirstMatch(mine: str, theirs: str): str:",
      "pub func NewBuf(cap0: int): Buf:",
      "pub func NewConfig(host: str, port: int, user: str): Config:",
      "pub func NewReader(p: void*, n: int): Reader:",
      "pub func NewSession(client &: Client): Session:",
      "pub func Ok(client: Client): bool:",
      "pub func Output(session: Session): str:",
      "pub func RGetBool(r &: Reader): bool:",
      "pub func RGetByte(r &: Reader): int:",
      "pub func RGetMpintCopy(r &: Reader): Buf:",
      "pub func RGetMpintView(r &: Reader): Reader:",
      "pub func RGetNameList(r &: Reader): str:",
      "pub func RGetStringAsStr(r &: Reader): str:",
      "pub func RGetStringCopy(r &: Reader): Buf:",
      "pub func RGetStringView(r &: Reader): Reader:",
      "pub func RGetUint32(r &: Reader): u32:",
      "pub func RGetUint64(r &: Reader): u64:",
      "pub func RRemaining(r: Reader): int:",
      "pub func RSkip(r &: Reader, n: int):",
      "pub func ReadStep(session &: Session, client &: Client): bool:",
      "pub func ReaderFromBuf(b: Buf): Reader:",
      "pub func Reconnect(client &: Client): bool:",
      "pub func Remove(client &: Client, sftp &: Sftp, path: str): bool:",
      "pub func RemoveAll(client &: Client, sftp &: Sftp, path: str): bool:",
      "pub func Rename(client &: Client, sftp &: Sftp, old_path: str, new_path: str): bool:",
      "pub func RequestPty(session &: Session, client &: Client, term: str, cols: int, rows: int): bool:",
      "pub func Rmdir(client &: Client, sftp &: Sftp, path: str): bool:",
      "pub func RunCommand(client &: Client, cmd: str): ExecResult:",
      "pub func SelfTest(): int:",
      "pub func SessionClosed(session: Session): bool:",
      "pub func SftpClose(client &: Client, sftp &: Sftp):",
      "pub func SftpOpen(client &: Client): Sftp:",
      "pub func Shell(session &: Session, client &: Client): bool:",
      "pub func Start(session &: Session, client &: Client, cmd: str): bool:",
      "pub func Stat(client &: Client, sftp &: Sftp, path: str): SftpFileInfo:",
      "pub func StderrOutput(session: Session): str:",
      "pub func Upload(client &: Client, sftp &: Sftp, local_path: str, remote_path: str): bool:",
      "pub func UploadDir(client &: Client, sftp &: Sftp, local_path: str, remote_path: str): bool:",
      "pub func Wait(session &: Session, client &: Client): int:",
      "pub func WipeBuf(b &: Buf):",
      "pub func WithHostKeyMode(cfg &: Config, mode: int):",
      "pub func WithKeyFile(cfg &: Config, path: str): bool:",
      "pub func WithKeyPEM(cfg &: Config, pem: str):",
      "pub func WithKnownHostsPath(cfg &: Config, path: str):",
      "pub func WithPassword(cfg &: Config, password: str):",
      "pub func WriteInput(session &: Session, client &: Client, data: str): bool:",
      "pub struct Client:",
      "pub struct Config:",
      "pub struct ExecResult:",
      "pub struct Session:",
      "pub struct Sftp:",
      "pub struct SftpFileInfo:"
    ],
    "ssl": [
      "pub const CERT_OK := 0 as i64",
      "pub const FILETYPE_PEM := 1",
      "pub const TLS1_2 := 771",
      "pub const TLS1_3 := 772",
      "pub const VERIFY_NONE := 0",
      "pub const VERIFY_PEER := 1",
      "pub func Accept(c: Conn): bool:",
      "pub func Close(c: Conn):",
      "pub func CloseContext(ctx: Context):",
      "pub func ConnErrorString(c: Conn): str:",
      "pub func ConnOk(c: Conn): bool:",
      "pub func Connect(c: Conn): bool:",
      "pub func CtxOk(ctx: Context): bool:",
      "pub func ErrorCode(c: Conn, rc: int): int:",
      "pub func LastErrorString(): str:",
      "pub func LoadVerifyLocationsFile(ctx: Context, path: str): bool:",
      "pub func NewClientContext(): Context:",
      "pub func NewServerContext(cert_file: str, key_file: str): Context:",
      "pub func PeerVerified(c: Conn): bool:",
      "pub func Read(c: Conn, max: int): str:",
      "pub func SetDefaultVerifyPaths(ctx: Context): bool:",
      "pub func SetHostname(c: Conn, host: str): bool:",
      "pub func SetMinVersion(ctx: Context, version: i64): bool:",
      "pub func SetVerify(ctx: Context, mode: int):",
      "pub func Shutdown(c: Conn):",
      "pub func VerifyResult(c: Conn): i64:",
      "pub func Wrap(ctx: Context, fd: i64): Conn:",
      "pub func Write(c: Conn, data: str): int:",
      "pub struct Conn:",
      "pub struct Context:"
    ],
    "stats": [
      "pub func Geomean(v: Vector<f64>): f64:",
      "pub func Max(v: Vector<f64>): f64:",
      "pub func Mean(v: Vector<f64>): f64:",
      "pub func Median(v: Vector<f64>): f64:",
      "pub func Min(v: Vector<f64>): f64:",
      "pub func Percentile(v: Vector<f64>, p: f64): f64:",
      "pub func PopStdev(v: Vector<f64>): f64: ret math.Sqrt(_variance(v, false)) end",
      "pub func PopVariance(v: Vector<f64>): f64: ret _variance(v, false) end",
      "pub func Stdev(v: Vector<f64>): f64: ret math.Sqrt(_variance(v, true)) end",
      "pub func Sum(v: Vector<f64>): f64:",
      "pub func Variance(v: Vector<f64>): f64: ret _variance(v, true) end"
    ],
    "str": [
      "pub func BufAppend(b &: StringBuilder, s: str):",
      "pub func BufAppendChar(b &: StringBuilder, code: int):",
      "pub func BufAppendCp(b &: StringBuilder, cp: int):",
      "pub func BufAppendInt(b &: StringBuilder, n: i64):",
      "pub func BufFree(b &: StringBuilder):",
      "pub func BufIsEmpty(b &: StringBuilder): bool: ret b.len == 0 end",
      "pub func BufLen(b &: StringBuilder): i64: ret b.len end",
      "pub func BufReset(b &: StringBuilder): b.len = 0 end",
      "pub func BufStr(b &: StringBuilder): str:",
      "pub func CharAt(s: str, i: int): str:",
      "pub func CharAtIndex(s: str, i: int): str:",
      "pub func CharSubstr(s: str, start: int, n: int): str:",
      "pub func Chars(s: str): Vector<str>:",
      "pub func Clone(s: str): str:",
      "pub func CodePointAt(s: str, i: int, cp &: int): int:",
      "pub func CodePoints(s: str): Vector<int>:",
      "pub func CompareFold(a: str, b: str): int:",
      "pub func CutPrefix(s: str, prefix: str, ok &: bool): str:",
      "pub func CutSuffix(s: str, suffix: str, ok &: bool): str:",
      "pub func EndsWithAny(s: str, suffixes: Vector<str>): bool:",
      "pub func EndsWithFold(s: str, suffix: str): bool:",
      "pub func EqualFold(a: str, b: str): bool:",
      "pub func Fields(s: str): Vector<str>:",
      "pub func FromCodePoints(cps: Vector<int>): str:",
      "pub func FromFloat(f: f64): str: ret numfmt.FormatFloat(f) end",
      "pub func FromInt(i: i64): str: ret numfmt.FormatInt(i) end",
      "pub func GraphemeCount(s: str): int:",
      "pub func Graphemes(s: str): Vector<str>:",
      "pub func HasArabicDigits(s: str): bool: ret _has_digit_script(s, _DIGIT_ARABIC_BASE) end",
      "pub func HasEnglishDigits(s: str): bool: ret _has_digit_script(s, _DIGIT_ASCII_BASE) end",
      "pub func HasPersianDigits(s: str): bool: ret _has_digit_script(s, _DIGIT_PERSIAN_BASE) end",
      "pub func IsNFC(s: str): bool:",
      "pub func Join(parts: Vector<str>, sep: str): str:",
      "pub func NFC(s: str): str:",
      "pub func NFD(s: str): str:",
      "pub func NFKC(s: str): str:",
      "pub func NFKD(s: str): str:",
      "pub func NewBuilder(): StringBuilder:",
      "pub func Replace(s: str, find: str, replacement: str): str:",
      "pub func Reverse(s: str): str:",
      "pub func ReverseGraphemes(s: str): str:",
      "pub func StartsWithAny(s: str, prefixes: Vector<str>): bool:",
      "pub func StartsWithFold(s: str, prefix: str): bool:",
      "pub func SubstrIn(s: str, start: int, n: int): str:",
      "pub func Title(s: str): str:",
      "pub func ToArabicDigits(s: str): str: ret _convert_digits(s, _DIGIT_ARABIC_BASE) end",
      "pub func ToEnglishDigits(s: str): str: ret _convert_digits(s, _DIGIT_ASCII_BASE) end",
      "pub func ToPersianDigits(s: str): str: ret _convert_digits(s, _DIGIT_PERSIAN_BASE) end",
      "pub func TrimLeft(s: str): str:",
      "pub func TrimPrefix(s: str, prefix: str): str:",
      "pub func TrimRight(s: str): str:",
      "pub func TrimSuffix(s: str, suffix: str): str:",
      "pub inline func ByteSub(s: str, start: int, n: int): str: ret _bsub(s, start, n) end",
      "pub inline pure func ByteLen(s: str): int: ret _blen(s) end",
      "pub inline pure func CharLen(lead: int): int:",
      "pub inline pure func Compare(a: str, b: str): int:",
      "pub inline pure func Concat(a: str, b: str): str: ret a.concat(b) end",
      "pub inline pure func Contains(s: str, sub: str): bool:",
      "pub inline pure func DigitValue(cp: int): int: ret _digit_value(cp) end",
      "pub inline pure func Equals(a: str, b: str): bool: ret strcmp(a, b) == 0 end",
      "pub inline pure func Find(s: str, sub: str): int: ret s.find(sub) end",
      "pub inline pure func IndexOf(s: str, sub: str): int: ret s.indexOf(sub) end",
      "pub inline pure func IsAnyDigit(cp: int): bool: ret _digit_value(cp) >= 0 end",
      "pub inline pure func IsArabicDigit(cp: int): bool:",
      "pub inline pure func IsAscii(code: int): bool:",
      "pub inline pure func IsAsciiAlnum(code: int): bool:",
      "pub inline pure func IsAsciiAlpha(code: int): bool:",
      "pub inline pure func IsAsciiDigit(code: int): bool:",
      "pub inline pure func IsAsciiLower(code: int): bool:",
      "pub inline pure func IsAsciiSpace(code: int): bool:",
      "pub inline pure func IsAsciiUpper(code: int): bool:",
      "pub inline pure func IsEmpty(s: str): bool: ret s.len() == 0 end",
      "pub inline pure func IsPersianDigit(cp: int): bool:",
      "pub inline pure func Len(s: str): int: ret s.len() end",
      "pub inline pure func Lower(s: str): str: ret s.lower() end",
      "pub inline pure func Repeat(s: str, n: int): str: ret s.repeat(n) end",
      "pub inline pure func Search(s: str, sub: str): int: ret s.search(sub) end",
      "pub inline pure func Substr(s: str, start: int, n: int): str: ret s.substr(start, n) end",
      "pub inline pure func ToFloat(s: str): f64: ret s.to_float() end",
      "pub inline pure func ToInt(s: str): int: ret s.to_int() end",
      "pub inline pure func Trim(s: str): str: ret s.trim() end",
      "pub inline pure func Upper(s: str): str: ret s.upper() end",
      "pub pure func AllAscii(s: str): bool:",
      "pub pure func CharCount(s: str): int:",
      "pub pure func CharFind(s: str, sub: str): int:",
      "pub pure func Count(s: str, sub: str): int:",
      "pub pure func EndsWith(s: str, suffix: str): bool:",
      "pub pure func EndsWithBytes(data: void*, n: int, suffix: void*, m: int): bool:",
      "pub pure func IndexFrom(s: str, sub: str, from: int): int:",
      "pub pure func IsAlnum(code: int): bool:",
      "pub pure func IsAlpha(code: int): bool:",
      "pub pure func IsControl(code: int): bool:",
      "pub pure func IsDigit(code: int): bool:",
      "pub pure func IsLower(code: int): bool:",
      "pub pure func IsMark(code: int): bool:",
      "pub pure func IsPunct(code: int): bool:",
      "pub pure func IsSpace(code: int): bool:",
      "pub pure func IsUpper(code: int): bool:",
      "pub pure func LastIndex(s: str, sub: str): int:",
      "pub pure func Split(s: str, delim: str): Vector<str>: ret s.split(delim) end",
      "pub pure func StartsWith(s: str, prefix: str): bool:",
      "pub pure func StartsWithBytes(data: void*, n: int, prefix: void*, m: int): bool:",
      "pub struct StringBuilder:"
    ],
    "sync": [
      "pub func Acquire(sem: Semaphore):",
      "pub func Add(wg: WaitGroup, delta: i64):",
      "pub func Broadcast(cv: CondVar): cond_broadcast(cv.handle) end",
      "pub func Destroy(m: Mutex): mutex_free(m.handle) end",
      "pub func DestroyCondVar(cv: CondVar): cond_free(cv.handle) end",
      "pub func DestroyOnce(o: Once):",
      "pub func DestroyRWMutex(rw: RWMutex):",
      "pub func DestroySemaphore(sem: Semaphore):",
      "pub func DestroyWaitGroup(wg: WaitGroup):",
      "pub func Do(o: Once, f: func ()):",
      "pub func Done(wg: WaitGroup):",
      "pub func Lock(m: Mutex): int: ret mutex_lock(m.handle) end",
      "pub func NewCondVar(): CondVar: ret CondVar { handle = cond_new() } end",
      "pub func NewMutex(): Mutex: ret Mutex { handle = mutex_new() } end",
      "pub func NewOnce(): Once:",
      "pub func NewRWMutex(): RWMutex:",
      "pub func NewSemaphore(permits: i64): Semaphore:",
      "pub func NewWaitGroup(): WaitGroup:",
      "pub func NowMs(): i64: ret now_ms_os() end",
      "pub func RLock(rw: RWMutex):",
      "pub func RUnlock(rw: RWMutex):",
      "pub func Release(sem: Semaphore):",
      "pub func Signal(cv: CondVar): cond_signal(cv.handle) end",
      "pub func SleepMs(ms: int): _sync_sleep_ms(ms) end",
      "pub func TryAcquire(sem: Semaphore): bool:",
      "pub func Unlock(m: Mutex): int: ret mutex_unlock(m.handle) end",
      "pub func WLock(rw: RWMutex):",
      "pub func WUnlock(rw: RWMutex):",
      "pub func Wait(wg: WaitGroup):",
      "pub func WaitCond(cv: CondVar, m: Mutex): cond_wait(cv.handle, m.handle) end",
      "pub func WaitCondTimeout(cv: CondVar, m: Mutex, ms: i64): bool:",
      "pub struct CondVar:",
      "pub struct Mutex:",
      "pub struct Once:",
      "pub struct RWMutex:",
      "pub struct Semaphore:",
      "pub struct WaitGroup:"
    ],
    "telegram": [],
    "telegram.bot": [
      "pub const SECRET_HEADER := \"X-Telegram-Bot-Api-Secret-Token\"",
      "pub func AnswerCallbackQuery(bot: Bot, callback_query_id: str, text: str): ApiResponse:",
      "pub func AnswerInlineQuery(bot: Bot, inline_query_id: str, results: str): ApiResponse:",
      "pub func BanChatMember(bot: Bot, chat_id: i64, user_id: i64): ApiResponse:",
      "pub func BotCommand(command: str, description: str): str:",
      "pub func Call(bot: Bot, method: str, params: HashMap<str, str>): ApiResponse:",
      "pub func CommandArgs(text: str): str:",
      "pub func CommandName(text: str): str:",
      "pub func DeleteMessage(bot: Bot, chat_id: i64, message_id: i64): ApiResponse:",
      "pub func DeleteWebhook(bot: Bot): ApiResponse:",
      "pub func EditMessageText(bot: Bot, chat_id: i64, message_id: i64, text: str): ApiResponse:",
      "pub func FileURL(bot: Bot, file_path: str): str:",
      "pub func ForceReply(): str:",
      "pub func ForwardMessage(bot: Bot, chat_id: i64, from_chat_id: i64, message_id: i64): ApiResponse:",
      "pub func GetChat(bot: Bot, chat_id: i64): ApiResponse:",
      "pub func GetChatMember(bot: Bot, chat_id: i64, user_id: i64): ApiResponse:",
      "pub func GetChatMemberCount(bot: Bot, chat_id: i64): ApiResponse:",
      "pub func GetFile(bot: Bot, file_id: str): ApiResponse:",
      "pub func GetMe(bot: Bot): ApiResponse:",
      "pub func GetUpdates(bot: Bot, offset: i64, limit: i64, timeout: i64): ApiResponse:",
      "pub func GetWebhookInfo(bot: Bot): ApiResponse:",
      "pub func InlineButton(text: str, callback_data: str): str:",
      "pub func InlineButtonURL(text: str, url: str): str:",
      "pub func InlineKeyboardMarkup(rows: Vector<str>): str:",
      "pub func IsCommand(text: str): bool:",
      "pub func KeyboardButton(text: str): str:",
      "pub func LeaveChat(bot: Bot, chat_id: i64): ApiResponse:",
      "pub func NewBot(token: str): Bot:",
      "pub func Ok(resp: ApiResponse): bool:",
      "pub func ParseCallbackQuery(raw: str): CallbackQuery:",
      "pub func ParseChat(raw: str): Chat:",
      "pub func ParseInlineQuery(raw: str): InlineQuery:",
      "pub func ParseMessage(raw: str): Message:",
      "pub func ParseUpdate(raw: str): Update:",
      "pub func ParseUpdates(raw: str): Vector<Update>:",
      "pub func ParseUser(raw: str): User:",
      "pub func PinChatMessage(bot: Bot, chat_id: i64, message_id: i64): ApiResponse:",
      "pub func Poll(bot: Bot, timeout: i64, handler: func (Update)):",
      "pub func RemoveKeyboard(): str:",
      "pub func ReplyAnswerCallbackQuery(callback_query_id: str, text: str, show_alert: bool): str:",
      "pub func ReplyChatAction(chat_id: i64, action: str): str:",
      "pub func ReplyEditMessageText(chat_id: i64, message_id: i64, text: str, reply_markup: str): str:",
      "pub func ReplyKeyboardMarkup(rows: Vector<str>): str:",
      "pub func ReplyMessage(chat_id: i64, text: str): str:",
      "pub func ReplyMessageOptions(chat_id: i64, text: str, opts: SendOptions): str:",
      "pub func Row(buttons: Vector<str>): str:",
      "pub func SendAudio(bot: Bot, chat_id: i64, audio: str, caption: str): ApiResponse:",
      "pub func SendChatAction(bot: Bot, chat_id: i64, action: str): ApiResponse:",
      "pub func SendContact(bot: Bot, chat_id: i64, phone_number: str, first_name: str): ApiResponse:",
      "pub func SendDocument(bot: Bot, chat_id: i64, document: str, caption: str): ApiResponse:",
      "pub func SendLocation(bot: Bot, chat_id: i64, latitude: f64, longitude: f64): ApiResponse:",
      "pub func SendMessage(bot: Bot, chat_id: i64, text: str): ApiResponse:",
      "pub func SendMessage(bot: Bot, chat_id: str, text: str): ApiResponse:",
      "pub func SendMessageOptions(bot: Bot, chat_id: i64, text: str, opts: SendOptions): ApiResponse:",
      "pub func SendPhoto(bot: Bot, chat_id: i64, photo: str, caption: str): ApiResponse:",
      "pub func SendSticker(bot: Bot, chat_id: i64, sticker: str): ApiResponse:",
      "pub func SendVideo(bot: Bot, chat_id: i64, video: str, caption: str): ApiResponse:",
      "pub func SendVoice(bot: Bot, chat_id: i64, voice: str, caption: str): ApiResponse:",
      "pub func SetAPIBase(url: str):",
      "pub func SetMyCommands(bot: Bot, commands: Vector<str>): ApiResponse:",
      "pub func SetWebhook(bot: Bot, url: str): ApiResponse:",
      "pub func SetWebhookSecret(bot: Bot, url: str, secret_token: str): ApiResponse:",
      "pub func UnbanChatMember(bot: Bot, chat_id: i64, user_id: i64): ApiResponse:",
      "pub func UnpinChatMessage(bot: Bot, chat_id: i64, message_id: i64): ApiResponse:",
      "pub struct ApiResponse:",
      "pub struct Bot:",
      "pub struct CallbackQuery:",
      "pub struct Chat:",
      "pub struct InlineQuery:",
      "pub struct Message:",
      "pub struct ReplyTo:",
      "pub struct SendOptions:",
      "pub struct Update:",
      "pub struct User:"
    ],
    "template": [
      "pub func EscapeHTML(s: str): str:",
      "pub func NewContext(): HashMap<str, str>:",
      "pub func Render(tmpl: str, ctx: HashMap<str, str>): str:",
      "pub func RenderHTML(tmpl: str, ctx: HashMap<str, str>): str:",
      "pub func Var(name: str): str:"
    ],
    "term": [
      "pub const BgBlack := 40",
      "pub const BgBlue := 44",
      "pub const BgCyan := 46",
      "pub const BgDefault := 49",
      "pub const BgGreen := 42",
      "pub const BgMagenta := 45",
      "pub const BgRed := 41",
      "pub const BgWhite := 47",
      "pub const BgYellow := 43",
      "pub const ColorAlways := 1",
      "pub const ColorAuto := 0",
      "pub const ColorNever := 2",
      "pub const Csi := \"\\x1b[\"",
      "pub const Esc := \"\\x1b\"",
      "pub const EscDelayMs := 50",
      "pub const FgBlack := 30",
      "pub const FgBlue := 34",
      "pub const FgBright := 60",
      "pub const FgCyan := 36",
      "pub const FgDefault := 39",
      "pub const FgGreen := 32",
      "pub const FgMagenta := 35",
      "pub const FgRed := 31",
      "pub const FgWhite := 37",
      "pub const FgYellow := 33",
      "pub const KeyBackspace := 4",
      "pub const KeyChar := 1",
      "pub const KeyDelete := 19",
      "pub const KeyDown := 11",
      "pub const KeyEOF := 7",
      "pub const KeyEnd := 15",
      "pub const KeyEnter := 2",
      "pub const KeyEscape := 5",
      "pub const KeyF1 := 30",
      "pub const KeyHome := 14",
      "pub const KeyInsert := 18",
      "pub const KeyLeft := 13",
      "pub const KeyMouse := 50",
      "pub const KeyPageDown := 17",
      "pub const KeyPageUp := 16",
      "pub const KeyRight := 12",
      "pub const KeySpace := 6",
      "pub const KeyTab := 3",
      "pub const KeyUnknown := 0",
      "pub const KeyUp := 10",
      "pub const Reset := \"\\x1b[0m\"",
      "pub const StderrFd := 2",
      "pub const StdinFd := 0",
      "pub const StdoutFd := 1",
      "pub const StyleBlink := 5",
      "pub const StyleBold := 1",
      "pub const StyleDim := 2",
      "pub const StyleHidden := 8",
      "pub const StyleItalic := 3",
      "pub const StyleReverse := 7",
      "pub const StyleStrike := 9",
      "pub const StyleUnderline := 4",
      "pub func BarAdd(b &: Bar, delta: int): BarSet(b, b.current + delta) end",
      "pub func BarDraw(b &: Bar):",
      "pub func BarFinish(b &: Bar):",
      "pub func BarRender(b &: Bar): str:",
      "pub func BarSet(b &: Bar, n: int):",
      "pub func Bell(): Emit(\"\\x07\") end",
      "pub func Black(s: str): str: ret Style(s, FgBlack) end",
      "pub func Blink(s: str): str: ret Style(s, StyleBlink) end",
      "pub func Blue(s: str): str: ret Style(s, FgBlue) end",
      "pub func Bold(s: str): str: ret Style(s, StyleBold) end",
      "pub func BrightBlue(s: str): str: ret Style(s, FgBlue + FgBright) end",
      "pub func BrightCyan(s: str): str: ret Style(s, FgCyan + FgBright) end",
      "pub func BrightGreen(s: str): str: ret Style(s, FgGreen + FgBright) end",
      "pub func BrightMagenta(s: str): str: ret Style(s, FgMagenta + FgBright) end",
      "pub func BrightRed(s: str): str: ret Style(s, FgRed + FgBright) end",
      "pub func BrightWhite(s: str): str: ret Style(s, FgWhite + FgBright) end",
      "pub func BrightYellow(s: str): str: ret Style(s, FgYellow + FgBright) end",
      "pub func Center(s: str, n: int): str:",
      "pub func ClearBelow(): Emit(SeqClearBelow()) end",
      "pub func ClearLine(): Emit(SeqClearLine()) end",
      "pub func ClearScreen(): Emit(SeqClearScreen()) end",
      "pub func ClearScrollback(): Emit(SeqClearScrollback()) end",
      "pub func ClearToLineEnd(): Emit(SeqClearToLineEnd()) end",
      "pub func Color256(s: str, n: int): str: ret Paint(s, SeqFg256(n)) end",
      "pub func ColorMode(): int: ret _color_mode end",
      "pub func Cols(): int:",
      "pub func Column(col: int): Emit(SeqColumn(col)) end",
      "pub func Cyan(s: str): str: ret Style(s, FgCyan) end",
      "pub func Decode(seq: str): Key:",
      "pub func DecodeMouse(seq: str): MouseEvent:",
      "pub func DeleteLines(n: int): Emit(SeqDeleteLines(n)) end",
      "pub func Dim(s: str): str: ret Style(s, StyleDim) end",
      "pub func DisableMouse(): Emit(SeqDisableMouse()) end",
      "pub func Down(n: int): Emit(SeqDown(n)) end",
      "pub func Emit(s: str):",
      "pub func EnableAnsi(): bool:",
      "pub func EnableMouse(): Emit(SeqEnableMouse()) end",
      "pub func EnterAltScreen(): Emit(SeqEnterAltScreen()) end",
      "pub func ExitAltScreen(): Emit(SeqExitAltScreen()) end",
      "pub func Flush():",
      "pub func FormatBytes(n: i64): str:",
      "pub func FormatDuration(ms: i64): str:",
      "pub func GetKey(): Key:",
      "pub func Gray(s: str): str: ret Style(s, FgBlack + FgBright) end",
      "pub func Green(s: str): str: ret Style(s, FgGreen) end",
      "pub func Hidden(s: str): str: ret Style(s, StyleHidden) end",
      "pub func HideCursor(): Emit(SeqHideCursor()) end",
      "pub func Home(): Emit(SeqHome()) end",
      "pub func InsertLines(n: int): Emit(SeqInsertLines(n)) end",
      "pub func Inverse(s: str): str: ret Style(s, StyleReverse) end",
      "pub func IsTTY(fd: int): bool:",
      "pub func IsTerminal(): bool: ret IsTTY(StdoutFd) end",
      "pub func Italic(s: str): str: ret Style(s, StyleItalic) end",
      "pub func KeyReady(timeout_ms: int): bool: ret _ready(timeout_ms) end",
      "pub func Left(n: int): Emit(SeqLeft(n)) end",
      "pub func Magenta(s: str): str: ret Style(s, FgMagenta) end",
      "pub func MakeCbreak(fd: int): TermState: ret _set_mode(fd, false) end",
      "pub func MakeRaw(fd: int): TermState: ret _set_mode(fd, true) end",
      "pub func MoveTo(row: int, col: int): Emit(SeqMoveTo(row, col)) end",
      "pub func NewBar(total: int, label: str): Bar:",
      "pub func NewSpinner(label: str): Spinner:",
      "pub func NewSpinnerFrames(label: str, frames: Vector<str>): Spinner:",
      "pub func NextLine(n: int): Emit(SeqNextLine(n)) end",
      "pub func OnBlue(s: str): str: ret Style(s, BgBlue) end",
      "pub func OnColor256(s: str, n: int): str: ret Paint(s, SeqBg256(n)) end",
      "pub func OnCyan(s: str): str: ret Style(s, BgCyan) end",
      "pub func OnGreen(s: str): str: ret Style(s, BgGreen) end",
      "pub func OnMagenta(s: str): str: ret Style(s, BgMagenta) end",
      "pub func OnRGB(s: str, r: int, g: int, b: int): str: ret Paint(s, SeqBgRGB(r, g, b)) end",
      "pub func OnRed(s: str): str: ret Style(s, BgRed) end",
      "pub func OnWhite(s: str): str: ret Style(s, BgWhite) end",
      "pub func OnYellow(s: str): str: ret Style(s, BgYellow) end",
      "pub func PadLeft(s: str, n: int): str:",
      "pub func PadRight(s: str, n: int): str:",
      "pub func Paint(s: str, prefix: str): str:",
      "pub func PrevLine(n: int): Emit(SeqPrevLine(n)) end",
      "pub func RGB(s: str, r: int, g: int, b: int): str: ret Paint(s, SeqFgRGB(r, g, b)) end",
      "pub func ReadByte(): int:",
      "pub func ReadKey(): Key:",
      "pub func ReadPassword(prompt: str): str:",
      "pub func Red(s: str): str: ret Style(s, FgRed) end",
      "pub func ResetLine(): Emit(SeqResetLine()) end",
      "pub func ResetScrollRegion(): Emit(SeqResetScrollRegion()) end",
      "pub func Restore(st &: TermState): bool:",
      "pub func RestoreCursor(): Emit(SeqRestoreCursor()) end",
      "pub func Right(n: int): Emit(SeqRight(n)) end",
      "pub func Rows(): int:",
      "pub func SaveCursor(): Emit(SeqSaveCursor()) end",
      "pub func ScrollDown(n: int): Emit(SeqScrollDown(n)) end",
      "pub func ScrollUp(n: int): Emit(SeqScrollUp(n)) end",
      "pub func SeqBg256(n: int): str: ret Csi + \"48;5;\" + str.FromInt(n as i64) + \"m\" end",
      "pub func SeqBgRGB(r: int, g: int, b: int): str:",
      "pub func SeqClearAbove(): str: ret Csi + \"1J\" end",
      "pub func SeqClearBelow(): str: ret Csi + \"J\" end",
      "pub func SeqClearLine(): str: ret Csi + \"2K\" end",
      "pub func SeqClearScreen(): str: ret Csi + \"2J\" + Csi + \"H\" end",
      "pub func SeqClearScrollback(): str: ret Csi + \"3J\" end",
      "pub func SeqClearToLineEnd(): str: ret Csi + \"K\" end",
      "pub func SeqClearToLineStart(): str: ret Csi + \"1K\" end",
      "pub func SeqColumn(col: int): str: ret _csi_n(col, \"G\") end",
      "pub func SeqDeleteLines(n: int): str: ret _csi_n(n, \"M\") end",
      "pub func SeqDisableMouse(): str: ret Csi + \"?1006l\" + Csi + \"?1003l\" + Csi + \"?1002l\" + Csi + \"?1000l\" end",
      "pub func SeqDown(n: int): str: ret _csi_n(n, \"B\") end",
      "pub func SeqEnableMouse(): str: ret Csi + \"?1000h\" + Csi + \"?1006h\" end",
      "pub func SeqEnableMouseMotion(): str: ret Csi + \"?1003h\" + Csi + \"?1006h\" end",
      "pub func SeqEnterAltScreen(): str: ret Csi + \"?1049h\" end",
      "pub func SeqExitAltScreen(): str: ret Csi + \"?1049l\" end",
      "pub func SeqFg256(n: int): str: ret Csi + \"38;5;\" + str.FromInt(n as i64) + \"m\" end",
      "pub func SeqFgRGB(r: int, g: int, b: int): str:",
      "pub func SeqHideCursor(): str: ret Csi + \"?25l\" end",
      "pub func SeqHome(): str: ret Csi + \"H\" end",
      "pub func SeqInsertLines(n: int): str: ret _csi_n(n, \"L\") end",
      "pub func SeqLeft(n: int): str: ret _csi_n(n, \"D\") end",
      "pub func SeqMoveTo(row: int, col: int): str:",
      "pub func SeqNextLine(n: int): str: ret _csi_n(n, \"E\") end",
      "pub func SeqPrevLine(n: int): str: ret _csi_n(n, \"F\") end",
      "pub func SeqResetLine(): str: ret \"\\r\" + Csi + \"2K\" end",
      "pub func SeqResetScrollRegion(): str: ret Csi + \"r\" end",
      "pub func SeqRestoreCursor(): str: ret Esc + \"8\" end",
      "pub func SeqRight(n: int): str: ret _csi_n(n, \"C\") end",
      "pub func SeqSaveCursor(): str: ret Esc + \"7\" end",
      "pub func SeqScrollDown(n: int): str: ret _csi_n(n, \"T\") end",
      "pub func SeqScrollRegion(top: int, bottom: int): str:",
      "pub func SeqScrollUp(n: int): str: ret _csi_n(n, \"S\") end",
      "pub func SeqShowCursor(): str: ret Csi + \"?25h\" end",
      "pub func SeqTitle(title: str): str: ret Esc + \"]0;\" + title + \"\\x07\" end",
      "pub func SeqUp(n: int): str: ret _csi_n(n, \"A\") end",
      "pub func SetColorMode(mode: int):",
      "pub func SetScrollRegion(top: int, bottom: int): Emit(SeqScrollRegion(top, bottom)) end",
      "pub func SetTitle(title: str): Emit(SeqTitle(title)) end",
      "pub func Sgr(code: int): str: ret Csi + str.FromInt(code as i64) + \"m\" end",
      "pub func ShowCursor(): Emit(SeqShowCursor()) end",
      "pub func Size(): WinSize:",
      "pub func SpinnerFrame(s &: Spinner): str:",
      "pub func SpinnerFree(s &: Spinner):",
      "pub func SpinnerStop(s &: Spinner, final: str):",
      "pub func SpinnerTick(s &: Spinner):",
      "pub func Strike(s: str): str: ret Style(s, StyleStrike) end",
      "pub func Strip(s: str): str:",
      "pub func Style(s: str, code: int): str: ret Paint(s, Sgr(code)) end",
      "pub func Supports256Color(): bool:",
      "pub func SupportsColor(): bool:",
      "pub func SupportsTrueColor(): bool:",
      "pub func Truncate(s: str, n: int): str:",
      "pub func Underline(s: str): str: ret Style(s, StyleUnderline) end",
      "pub func Up(n: int): Emit(SeqUp(n)) end",
      "pub func White(s: str): str: ret Style(s, FgWhite) end",
      "pub func Width(s: str): int:",
      "pub func Write(s: str):",
      "pub func WriteErr(s: str):",
      "pub func Yellow(s: str): str: ret Style(s, FgYellow) end",
      "pub struct Bar:",
      "pub struct Key:",
      "pub struct MouseEvent:",
      "pub struct Spinner:",
      "pub struct TermState:",
      "pub struct WinSize:"
    ],
    "testing": [
      "pub func Assert(cond: bool): record(cond, \"assertion failed\") end",
      "pub func AssertContains(hay: str, needle: str):",
      "pub func AssertEqBool(got: bool, want: bool):",
      "pub func AssertEqFloat(got: f64, want: f64, eps: f64):",
      "pub func AssertEqInt(got: int, want: int):",
      "pub func AssertEqInt64(got: i64, want: i64):",
      "pub func AssertEqStr(got: str, want: str):",
      "pub func AssertFalse(cond: bool): record(cond == false, \"expected false\") end",
      "pub func AssertMsg(cond: bool, msg: str): record(cond, msg) end",
      "pub func AssertNeInt(a: int, b: int):",
      "pub func AssertNeStr(a: str, b: str):",
      "pub func AssertNil(p: void*): record(p == null, \"expected nil\") end",
      "pub func AssertNotNil(p: void*): record((p == null) == false, \"expected non-nil\") end",
      "pub func AssertTrue(cond: bool): record(cond, \"expected true\") end",
      "pub func Begin(name: str, line: int):",
      "pub func End():",
      "pub func Failed(): int: ret _tfail end",
      "pub func Finish():",
      "pub func Passed(): int: ret _tpass end",
      "pub func Reset():",
      "pub func Selected(name: str): bool:",
      "pub func SetFilter(part: str):",
      "pub func SetFormat(format: str):",
      "pub func SuiteStart(file: str):",
      "pub func Summary(): int:"
    ],
    "text": [
      "pub func FromUtf16(w: void*): str:",
      "pub func ToUtf16(s: str): void*:",
      "pub inline pure func Utf16UnitAt(w: void*, i: int): int:",
      "pub pure func Utf16Len(s: str): int:"
    ],
    "text.diff": [
      "pub const Delete := 2",
      "pub const Equal := 0",
      "pub const Insert := 3",
      "pub const Replace := 1",
      "pub func GroupedOpcodes(a: Vector<str>, b: Vector<str>, context: int): Vector<Vector<Opcode>>:",
      "pub func Lines(text: str): Vector<str>:",
      "pub func Opcodes(a: Vector<str>, b: Vector<str>): Vector<Opcode>:",
      "pub func Ratio(a: Vector<str>, b: Vector<str>): f64:",
      "pub func RatioText(a: str, b: str): f64:",
      "pub func Unified(a: Vector<str>, b: Vector<str>, from_name: str, to_name: str, context: int): Vector<str>:",
      "pub func UnifiedText(a: str, b: str, from_name: str, to_name: str, context: int): str:",
      "pub struct Opcode:"
    ],
    "thread": [
      "pub func Collect(threads: Vector<Thread>, h: i64): Vector<Thread>:",
      "pub func Handle(t: Thread): i64:",
      "pub func Join(t: Thread):",
      "pub func JoinAll(threads: Vector<Thread>):",
      "pub func Live(): i64:",
      "pub func New(h: i64): Thread:",
      "pub func SetLimit(n: i64):",
      "pub func SpawnStack(fn: i64, arg: void*, stack: u64): Thread:",
      "pub func Valid(t: Thread): bool:",
      "pub struct Thread:"
    ],
    "time": [
      "pub const SecondsPerDay := 86400",
      "pub const SecondsPerHour := 3600",
      "pub const SecondsPerMinute := 60",
      "pub func AfterFunc(d: Duration, fn: func ()):",
      "pub func Day(epoch: i64): int: ret time_day(epoch) end",
      "pub func DayUTC(epoch: i64): int: ret _gm_field(epoch, 3) end",
      "pub func ElapsedMs(start_ns: i64, end_ns: i64): f64:",
      "pub func ElapsedSec(start_ns: i64, end_ns: i64): f64:",
      "pub func ElapsedUs(start_ns: i64, end_ns: i64): f64:",
      "pub func Every(d: Duration, fn: func () bool): i64:",
      "pub func Format(epoch: i64): str:",
      "pub func FormatDate(epoch: i64): str:",
      "pub func FormatDuration(d: Duration): str:",
      "pub func FormatHTTPDate(epoch: i64): str:",
      "pub func FormatISO(epoch: i64): str:",
      "pub func FormatISOUTC(epoch: i64): str:",
      "pub func FormatRFC3339(epoch: i64): str:",
      "pub func FormatTime(epoch: i64): str:",
      "pub func FromEpoch(seconds: i64): DateTime:",
      "pub func FromLocalParts(year: int, month: int, day: int, hour: int, minute: int, second: int): i64:",
      "pub func FromUTCParts(year: int, month: int, day: int, hour: int, minute: int, second: int): i64:",
      "pub func Hour(epoch: i64): int: ret time_hour(epoch) end",
      "pub func HourUTC(epoch: i64): int: ret _gm_field(epoch, 2) end",
      "pub func LocalOffsetMinutesAt(epoch: i64): int:",
      "pub func Minute(epoch: i64): int: ret time_minute(epoch) end",
      "pub func MinuteUTC(epoch: i64): int: ret _gm_field(epoch, 1) end",
      "pub func MonoMicros(): i64: ret _mono_ns() / 1000 end",
      "pub func MonoMillis(): i64: ret _mono_ns() / 1000000 end",
      "pub func MonoNanos(): i64: ret _mono_ns() end",
      "pub func Month(epoch: i64): int: ret time_month(epoch) end",
      "pub func MonthUTC(epoch: i64): int: ret _gm_field(epoch, 4) + 1 end",
      "pub func NewTicker(d: Duration): Ticker:",
      "pub func NewTimer(d: Duration): Timer:",
      "pub func Now(): i64: ret time_now() end",
      "pub func NowDateTime(): DateTime:",
      "pub func NowMicros(): i64: ret _now_ns() / 1000 end",
      "pub func NowMillis(): i64: ret _now_ns() / 1000000 end",
      "pub func NowNanos(): i64: ret _now_ns() end",
      "pub func ParseDuration(s: str): Duration throws:",
      "pub func ParseDurationOr(s: str, fallback: Duration): Duration:",
      "pub func ParseFormat(pattern: str, s: str): i64 throws:",
      "pub func ParseHTTPDate(s: str): i64 throws:",
      "pub func ParseISO(s: str): i64 throws:",
      "pub func ParseISOIn(s: str, offsetMinutes: int): i64 throws:",
      "pub func ParseISONanos(s: str): i64 throws:",
      "pub func ParseISOOr(s: str, fallback: i64): i64:",
      "pub func RepeatEvery(d: Duration, count: int, fn: func ()):",
      "pub func Second(epoch: i64): int: ret time_second(epoch) end",
      "pub func SecondUTC(epoch: i64): int: ret _gm_field(epoch, 0) end",
      "pub func Since(t: i64): i64:",
      "pub func SinceDuration(start_ns: i64): Duration:",
      "pub func SinceMs(start_ns: i64): f64:",
      "pub func SinceNanos(start_ns: i64): i64: ret _mono_ns() - start_ns end",
      "pub func SinceSec(start_ns: i64): f64:",
      "pub func SinceUs(start_ns: i64): f64:",
      "pub func Sleep(ms: int):",
      "pub func SleepFor(d: Duration):",
      "pub func Until(t: i64): i64:",
      "pub func WaitUntil(fn: func () bool, poll: Duration, limit: Duration): bool:",
      "pub func Weekday(epoch: i64): int: ret _tm_field(epoch, 6) end",
      "pub func Year(epoch: i64): int: ret time_year(epoch) end",
      "pub func YearDay(epoch: i64): int: ret _tm_field(epoch, 7) + 1 end",
      "pub func YearUTC(epoch: i64): int: ret _gm_field(epoch, 5) + 1900 end",
      "pub func abs(): Duration:",
      "pub func add(o: Duration): Duration: ret Duration { ns = this.ns + o.ns } end",
      "pub func advance():",
      "pub func cmp(o: Duration): int:",
      "pub func days(): f64: ret (this.ns as f64) / 86400000000000.0 end",
      "pub func div(k: i64): Duration:",
      "pub func equals(o: Duration): bool: ret this.ns == o.ns end",
      "pub func expired(): bool:",
      "pub func fired(): bool:",
      "pub func hours(): f64: ret (this.ns as f64) / 3600000000000.0 end",
      "pub func is_negative(): bool: ret this.ns < 0 end",
      "pub func is_zero(): bool: ret this.ns == 0 end",
      "pub func less(o: Duration): bool: ret this.ns < o.ns end",
      "pub func micros(): i64: ret this.ns / _NS_PER_US end",
      "pub func millis(): i64: ret this.ns / _NS_PER_MS end",
      "pub func minutes(): f64: ret (this.ns as f64) / 60000000000.0 end",
      "pub func mul(k: i64): Duration: ret Duration { ns = this.ns * k } end",
      "pub func nanos(): i64: ret this.ns end",
      "pub func neg(): Duration:",
      "pub func ratio(o: Duration): i64:",
      "pub func remaining(): Duration:",
      "pub func remaining(): Duration:",
      "pub func reset(d: Duration):",
      "pub func reset(d: Duration):",
      "pub func round(m: Duration): Duration:",
      "pub func seconds(): f64: ret (this.ns as f64) / 1000000000.0 end",
      "pub func secs(): i64: ret this.ns / _NS_PER_SEC end",
      "pub func stop():",
      "pub func stop():",
      "pub func sub(o: Duration): Duration: ret Duration { ns = this.ns - o.ns } end",
      "pub func to_str(): str: ret FormatDuration(Duration { ns = this.ns }) end",
      "pub func truncate(m: Duration): Duration:",
      "pub func wait():",
      "pub func wait():",
      "pub inline pure func AddDuration(epoch: i64, d: Duration): i64:",
      "pub inline pure func Days(n: i64): Duration: ret Duration { ns = n * _NS_PER_DAY } end",
      "pub inline pure func DiffSeconds(later: i64, earlier: i64): i64:",
      "pub inline pure func DurationBetween(later: i64, earlier: i64): Duration:",
      "pub inline pure func Epoch(dt: DateTime): i64:",
      "pub inline pure func Hours(n: i64): Duration: ret Duration { ns = n * _NS_PER_HOUR } end",
      "pub inline pure func Microseconds(n: i64): Duration: ret Duration { ns = n * _NS_PER_US } end",
      "pub inline pure func Milliseconds(n: i64): Duration: ret Duration { ns = n * _NS_PER_MS } end",
      "pub inline pure func Minutes(n: i64): Duration: ret Duration { ns = n * _NS_PER_MIN } end",
      "pub inline pure func Nanoseconds(n: i64): Duration: ret Duration { ns = n } end",
      "pub inline pure func Seconds(n: i64): Duration: ret Duration { ns = n * _NS_PER_SEC } end",
      "pub inline pure func SecondsF(x: f64): Duration: ret Duration { ns = (x * 1000000000.0) as i64 } end",
      "pub inline pure func ZeroDuration(): Duration: ret Duration { ns = 0 } end",
      "pub struct DateTime:",
      "pub struct Duration:",
      "pub struct Ticker:",
      "pub struct Timer:"
    ],
    "tls": [
      "pub const AEAD_AES_128_GCM := 0",
      "pub const AEAD_AES_256_GCM := 1",
      "pub const AEAD_CHACHA20_POLY1305 := 2",
      "pub const AEAD_NONCE_LEN := 12",
      "pub const AEAD_TAG_LEN := 16",
      "pub const TLS10 := 0x0301",
      "pub const TLS11 := 0x0302",
      "pub const TLS12 := 0x0303",
      "pub const TLS13 := 0x0304",
      "pub func AeadFree(ctx: void*):",
      "pub func AeadKeyLen(kind: int): int:",
      "pub func AeadNew(kind: int, key: void*): void*:",
      "pub func AeadOpen(ctx: void*, nonce: void*, aad: void*, aadlen: int, ct: void*, n: int, out: void*): bool:",
      "pub func AeadSeal(ctx: void*, nonce: void*, aad: void*, aadlen: int, pt: void*, n: int, out: void*):",
      "pub func AesEcbBlock(key: void*, keylen: int, inp: void*, out: void*, decrypt: bool): bool:",
      "pub func AesGcmOpen(key_b64: str, nonce_b64: str, sealed_b64: str, ok &: bool): str:",
      "pub func AesGcmOpenBytes(key_b64: str, nonce_b64: str, sealed_b64: str, ok &: bool): str:",
      "pub func AesGcmOpenRaw(",
      "pub func AesGcmSeal(key_b64: str, nonce_b64: str, plaintext: str, ok &: bool): str:",
      "pub func AesGcmSealBytes(",
      "pub func AesGcmSealRaw(",
      "pub func BufAppendStr(b &: Buf, s: str):",
      "pub func BufLen(b: Buf): int:",
      "pub func CertIsValid(der: Buf): bool:",
      "pub func CertSubjectCN(der: Buf): str:",
      "pub func ChaCha20Poly1305OpenRaw(",
      "pub func ChaCha20Poly1305SealRaw(",
      "pub func CipherName(c: Conn): str:",
      "pub func Close(c &: Conn):",
      "pub func CloseWrite(c &: Conn):",
      "pub func ConnError(c: Conn): str:",
      "pub func ConnOk(c: Conn): bool:",
      "pub func Cork(c &: Conn):",
      "pub func Detach(c &: Conn):",
      "pub func Dial(host: str, port: int, cfg: Config): Conn:",
      "pub func ECDSADerEncode(rbytes: Buf, sbytes: Buf, width: int): Buf:",
      "pub func EcdhP256Generate(priv &: str, pub_spki &: str): bool:",
      "pub func EcdhP256PublicPoint(priv_b64: str): str:",
      "pub func EcdhP256Shared(priv_b64: str, peer_spki_b64: str, ok &: bool): str:",
      "pub func EcdhP256SharedPoint(priv_b64: str, peer_point_b64: str, ok &: bool): str:",
      "pub func Ed25519PublicKey(seed: void*, out: void*):",
      "pub func Ed25519Sign(seed: void*, msg: void*, n: int, out: void*):",
      "pub func Ed25519Verify(pubk: void*, msg: void*, n: int, sig: void*): bool:",
      "pub func Fd(c: Conn): i64:",
      "pub func Flush(c &: Conn): bool:",
      "pub func FreeBuf(b &: Buf):",
      "pub func FreePrivateKey(k &: PrivateKey):",
      "pub func FreeRoots(r &: Roots):",
      "pub func GcmNonce(counter: i64): str:",
      "pub func HashDigest(sha384: bool, msg: str): Buf:",
      "pub func HexDecodeBuf(s: str): Buf:",
      "pub func HexEncodeBuf(b: Buf): str:",
      "pub func HkdfSha256(ikm_b64: str, salt_b64: str, info: str, out_len: int, ok &: bool): str:",
      "pub func HkdfSha256Derive(ikm: void*, ikmlen: int, salt: void*, saltlen: int, info: str, out: void*, outlen: int): bool:",
      "pub func HkdfSha256Raw(",
      "pub func HmacSha512Raw(key: void*, klen: int, msg: void*, mlen: int, out: void*):",
      "pub func LoadCertChainFile(path: str): Roots:",
      "pub func LoadPrivateKeyFile(path: str): PrivateKey:",
      "pub func LoadRoots(ca_file: str): Roots:",
      "pub func Mlkem768Decapsulate(seed: void*, ct: void*, ss_out: void*):",
      "pub func Mlkem768Encapsulate(ek: void*, m: void*, ct_out: void*, ss_out: void*): bool:",
      "pub func Mlkem768PublicKey(seed: void*, ek_out: void*):",
      "pub func NewBuf(cap: int): Buf:",
      "pub func NewConfig(server_name: str): Config:",
      "pub func NewServerConfig(cert_file: str, key_file: str): ServerConfig:",
      "pub func NewZeroBuf(n: int): Buf:",
      "pub func P256Sign(priv_b64: str, digest_b64: str, ok &: bool): str:",
      "pub func P256Verify(pub_point_b64: str, digest_b64: str, sig_b64: str): bool:",
      "pub func ParsePrivateKeyPEM(pem: str): PrivateKey:",
      "pub func PeerCertCount(c: Conn): int:",
      "pub func Pending(c: Conn): int:",
      "pub func RandomSalt(n: int): str:",
      "pub func Read(c &: Conn, max: int): str:",
      "pub func ReadBytes(c &: Conn, buf: void*, max: int): int:",
      "pub func Readable(c: Conn): bool:",
      "pub func RootCount(r: Roots): int:",
      "pub func RsaEncryptOaepSha1(pem: str, plain_b64: str, ok &: bool): str:",
      "pub func RsaKeyBits(pem: str): int:",
      "pub func RsaSignPkcs1Sha256(pem: str, digest_b64: str, ok &: bool): str:",
      "pub func SelfTest(): int:",
      "pub func SignECDSA(k: PrivateKey, digest: Buf, rout: Buf, sout: Buf): bool:",
      "pub func SignRSAPKCS1(k: PrivateKey, sha384: bool, digest: Buf, sigout &: Buf): bool:",
      "pub func SignRSAPSS(k: PrivateKey, sha384: bool, digest: Buf, sigout &: Buf): bool:",
      "pub func SwitchDirect(c &: Conn):",
      "pub func VerifyCert(der: Buf, roots: Roots, host: str): int:",
      "pub func VerifyECDSADERWithKey(k: PrivateKey, digest: Buf, dersig: Buf): bool:",
      "pub func VerifyError(code: int): str:",
      "pub func VerifyRSAPSSWithKey(k: PrivateKey, sha384: bool, digest: Buf, sig: Buf): bool:",
      "pub func Version(c: Conn): str:",
      "pub func WipeBuf(b &: Buf):",
      "pub func WrapClient(fd: i64, cfg: Config): Conn:",
      "pub func WrapClientRaw(fd: i64, hello: void*, hlen: int, xpriv: void*, auth: void*, authlen: int, cfg: Config): Conn:",
      "pub func WrapClientRawPq(fd: i64, hello: void*, hlen: int, xpriv: void*, pq_seed: void*, auth: void*, authlen: int, cfg: Config): Conn:",
      "pub func WrapServer(fd: i64, cfg: ServerConfig): Conn:",
      "pub func WrapServerRaw(fd: i64, ch: void*, chlen: int, cert: void*, certlen: int, seed: void*): Conn:",
      "pub func Write(c &: Conn, data: str): int:",
      "pub func WriteBytes(c &: Conn, ptr: void*, n: int): int:",
      "pub func X25519Public(priv: void*, out: void*):",
      "pub func X25519Shared(priv: void*, peer: void*, out: void*): bool:",
      "pub func XChaCha20Poly1305OpenRaw(",
      "pub func XChaCha20Poly1305SealRaw(",
      "pub struct Config:",
      "pub struct Conn:",
      "pub struct ServerConfig:"
    ],
    "tui": [
      "pub const Black := Color.Ansi(0)",
      "pub const Blue := Color.Ansi(4)",
      "pub const BrightBlack := Color.Ansi(8)",
      "pub const BrightBlue := Color.Ansi(12)",
      "pub const BrightCyan := Color.Ansi(14)",
      "pub const BrightGreen := Color.Ansi(10)",
      "pub const BrightMagenta := Color.Ansi(13)",
      "pub const BrightRed := Color.Ansi(9)",
      "pub const BrightWhite := Color.Ansi(15)",
      "pub const BrightYellow := Color.Ansi(11)",
      "pub const Cyan := Color.Ansi(6)",
      "pub const DirDown := 1",
      "pub const DirLeft := 2",
      "pub const DirRight := 3",
      "pub const DirUp := 0",
      "pub const EventCapacity := 256",
      "pub const Green := Color.Ansi(2)",
      "pub const KeyEvent := 1",
      "pub const Magenta := Color.Ansi(5)",
      "pub const MouseEvent := 2",
      "pub const NoEvent := 0",
      "pub const NoWidget := -1",
      "pub const PollMs := 20",
      "pub const Red := Color.Ansi(1)",
      "pub const ResizeEvent := 3",
      "pub const RootId := 0",
      "pub const StyleDefault := Style {}",
      "pub const TickEvent := 4",
      "pub const White := Color.Ansi(7)",
      "pub const Yellow := Color.Ansi(3)",
      "pub enum Alignment:",
      "pub enum Axis:",
      "pub enum BorderStyle:",
      "pub enum CellOverflow:",
      "pub enum Color:",
      "pub enum ColorTier:",
      "pub enum CrossAlign:",
      "pub enum GlyphPolicy:",
      "pub enum ModalSize:",
      "pub enum Orientation:",
      "pub enum SizeKind:",
      "pub enum Weight:",
      "pub enum WrapMode:",
      "pub func BgSeq(c: Color): str:",
      "pub func BgSeqAt(c: Color, tier: ColorTier): str:",
      "pub func BorderInset(b: BorderStyle): int:",
      "pub func DetectGlyphPolicy(): GlyphPolicy:",
      "pub func DetectTier(): ColorTier:",
      "pub func DrawBorder(buf: Buffer, rect: Rect, border: BorderStyle, style: Style, title: str):",
      "pub func DrawBorderGlyphs(buf: Buffer, rect: Rect, glyphs: BorderGlyphs, style: Style, title: str):",
      "pub func FgSeq(c: Color): str:",
      "pub func FgSeqAt(c: Color, tier: ColorTier): str:",
      "pub func FitRect(r: Rect, box: Rect): Rect:",
      "pub func GlyphsASCII(): BorderGlyphs:",
      "pub func GlyphsDouble(): BorderGlyphs:",
      "pub func GlyphsFor(border: BorderStyle, policy: GlyphPolicy): BorderGlyphs:",
      "pub func GlyphsHeavy(): BorderGlyphs:",
      "pub func GlyphsMixed(): BorderGlyphs:",
      "pub func GlyphsRounded(): BorderGlyphs:",
      "pub func GlyphsSingle(): BorderGlyphs:",
      "pub func InsetRect(r: Rect, i: Insets): Rect:",
      "pub func Lower(c: Color, tier: ColorTier): Color:",
      "pub func MeasureText(text: str, max_width: int): Rect:",
      "pub func Nearest(from: Rect, candidates: Vector<Rect>, dir: int): int:",
      "pub func NewBuffer(width: int, height: int): Buffer:",
      "pub func NewButton(label: str): Button:",
      "pub func NewCheckbox(label: str, checked: bool): Checkbox:",
      "pub func NewColumn(): Column:",
      "pub func NewDefaultKeymap(): Keymap:",
      "pub func NewGrid(rows: int, cols: int): Grid:",
      "pub func NewInput(): Input:",
      "pub func NewInsets(top: int, right: int, bottom: int, left: int): Insets:",
      "pub func NewKeymap(): Keymap:",
      "pub func NewList(items: Vector<str>): List:",
      "pub func NewModal(): Modal:",
      "pub func NewProgress(): Progress:",
      "pub func NewRow(): Row:",
      "pub func NewScreen(root: dyn Widget, width: int, height: int): Screen:",
      "pub func NewSeparator(): Separator:",
      "pub func NewStack(): Stack:",
      "pub func NewTable(): Table:",
      "pub func NewTableView(): TableView:",
      "pub func NewTerminalScreen(root: dyn Widget): Screen:",
      "pub func NewText(content: str): Text:",
      "pub func NewTree(root: dyn Widget): Tree:",
      "pub func NewVimKeymap(on_search: func (Screen*, Event) bool): Keymap:",
      "pub func PlaceAxisOffset(avail: int, align: CrossAlign, natural: int): int:",
      "pub func PlaceAxisSize(avail: int, align: CrossAlign, natural: int): int:",
      "pub func SgrBuilds(): int:",
      "pub func SplitMain(length: int, sizes: Vector<LayoutSize>, gap: int): Vector<int>:",
      "pub func StyleEq(a: Style, b: Style): bool:",
      "pub func StyleMerge(parent: Style, child: Style): Style:",
      "pub func StyleSgr(style: Style, tier: ColorTier): str:",
      "pub func StyleSgrOff(style: Style, tier: ColorTier): str:",
      "pub func TrackSizes(total: int, n: int): Vector<int>:",
      "pub func UniformInsets(v: int): Insets:",
      "pub func WrapText(text: str, width: int): Vector<str>:",
      "pub func _paint_row(buf: Buffer, bounds: Rect, ws: Vector<int>, r: int, y: int, style: Style):",
      "pub func _paint_rule(buf: Buffer, bounds: Rect, ws: Vector<int>, y: int, style: Style):",
      "pub func _resolve_widths(w: int): Vector<int>:",
      "pub func add(child: dyn Widget):",
      "pub func add(child: dyn Widget):",
      "pub func add(child: dyn Widget): int:",
      "pub func add(child: dyn Widget): int:",
      "pub func add(child: dyn Widget): int:",
      "pub func add(child: dyn Widget): int:",
      "pub func add(parent: int, w: dyn Widget): int:",
      "pub func add(parent: int, w: dyn Widget): int:",
      "pub func add_column(col: TableColumn): int:",
      "pub func add_row(cells: Vector<str>): int:",
      "pub func ansi(): str:",
      "pub func area(): Rect:",
      "pub func bind(key: term.Key, action: func (Screen*, Event) bool):",
      "pub func bind_for(widget_id: int, key: term.Key, action: func (Screen*, Event) bool):",
      "pub func bind_for_seq(widget_id: int, seq: str, action: func (Screen*, Event) bool):",
      "pub func bind_seq(seq: str, action: func (Screen*, Event) bool):",
      "pub func bottom(): int:",
      "pub func bounds(): Rect:",
      "pub func bounds(): Rect:",
      "pub func can_focus(id: int): bool:",
      "pub func cancel_pending():",
      "pub func center(): Point:",
      "pub func checked(): bool:",
      "pub func clear():",
      "pub func clear_source():",
      "pub func close():",
      "pub func close():",
      "pub func commit():",
      "pub func contains(p: Point): bool:",
      "pub func count(): int:",
      "pub func diff(): str:",
      "pub func dispatch(event: Event): bool:",
      "pub func dispatch(from: int, event: Event): int:",
      "pub func draw():",
      "pub func fill(r: Rect, ch: str, style: Style):",
      "pub func fit_root():",
      "pub func flush():",
      "pub func focus(id: int): bool:",
      "pub func focus_down(): bool:",
      "pub func focus_left(): bool:",
      "pub func focus_next(): bool:",
      "pub func focus_prev(): bool:",
      "pub func focus_right(): bool:",
      "pub func focus_up(): bool:",
      "pub func focusable(): bool:",
      "pub func focusable(): bool:",
      "pub func focusable(): bool:",
      "pub func focusable(): bool:",
      "pub func focusable(): bool:",
      "pub func focusable(): bool:",
      "pub func focusable(): bool:",
      "pub func focusable(): bool:",
      "pub func focusable(): bool:",
      "pub func focusable(): bool:",
      "pub func focused_id(): int:",
      "pub func free():",
      "pub func free():",
      "pub func free():",
      "pub func get(id: int): dyn Widget:",
      "pub func get(x: int, y: int): Cell:",
      "pub func handle(screen: Screen*, event: Event): bool:",
      "pub func handle_event(event: Event): bool:",
      "pub func handle_event(event: Event): bool:",
      "pub func handle_event(event: Event): bool:",
      "pub func handle_event(event: Event): bool:",
      "pub func handle_event(event: Event): bool:",
      "pub func handle_event(event: Event): bool:",
      "pub func handle_event(event: Event): bool:",
      "pub func handle_event(event: Event): bool:",
      "pub func handle_event(event: Event): bool:",
      "pub func handle_event(event: Event): bool:",
      "pub func hit_test(x: int, y: int): int:",
      "pub func hits(): bool:",
      "pub func hits(): bool:",
      "pub func hits(): bool:",
      "pub func hits(): bool:",
      "pub func hits(): bool:",
      "pub func hits(): bool:",
      "pub func hits(): bool:",
      "pub func hits(): bool:",
      "pub func intersection(other: Rect): Rect:",
      "pub func intersects(other: Rect): bool:",
      "pub func invalidate(id: int):",
      "pub func invalidate_subtree(id: int):",
      "pub func is_char(ch: str): bool:",
      "pub func is_ctrl(ch: str): bool:",
      "pub func is_empty(): bool:",
      "pub func is_key(code: int): bool:",
      "pub func measure(axis: Axis, max_width: int): Measure:",
      "pub func measure(axis: Axis, max_width: int): Measure:",
      "pub func measure(axis: Axis, max_width: int): Measure:",
      "pub func measure(axis: Axis, max_width: int): Measure:",
      "pub func measure(axis: Axis, max_width: int): Measure:",
      "pub func mouse_point(): Point:",
      "pub func next_event(event &: Event): bool:",
      "pub func open():",
      "pub func parent(id: int): int:",
      "pub func pop_focus(): bool:",
      "pub func post(event: Event): bool:",
      "pub func preferred_size(max_width: int): Rect:",
      "pub func preferred_size(max_width: int): Rect:",
      "pub func preferred_size(max_width: int): Rect:",
      "pub func preferred_size(max_width: int): Rect:",
      "pub func preferred_size(max_width: int): Rect:",
      "pub func preferred_size(max_width: int): Rect:",
      "pub func preferred_size(max_width: int): Rect:",
      "pub func preferred_size(max_width: int): Rect:",
      "pub func preferred_size(max_width: int): Rect:",
      "pub func preferred_width(): int:",
      "pub func present():",
      "pub func progress(): int:",
      "pub func push_focus(id: int): bool:",
      "pub func put_str(x: int, y: int, text: str, style: Style):",
      "pub func raise(ids: Vector<int>):",
      "pub func raise_subtree(id: int):",
      "pub func render(buf: Buffer, bounds: Rect):",
      "pub func render(buf: Buffer, bounds: Rect):",
      "pub func render(buf: Buffer, bounds: Rect):",
      "pub func render(buf: Buffer, bounds: Rect):",
      "pub func render(buf: Buffer, bounds: Rect):",
      "pub func render(buf: Buffer, bounds: Rect):",
      "pub func render(buf: Buffer, bounds: Rect):",
      "pub func render(buf: Buffer, bounds: Rect):",
      "pub func render(buf: Buffer, bounds: Rect):",
      "pub func render(buf: Buffer, bounds: Rect):",
      "pub func render(buf: Buffer, bounds: Rect):",
      "pub func render(buf: Buffer, bounds: Rect):",
      "pub func resize(width: int, height: int):",
      "pub func resize(width: int, height: int):",
      "pub func right(): int:",
      "pub func row_text(y: int): str:",
      "pub func run():",
      "pub func run_with_tick(on_tick: func ()):",
      "pub func selected_index(): int:",
      "pub func selected_item(): str:",
      "pub func set(x: int, y: int, cell: Cell):",
      "pub func set_align(align: Alignment):",
      "pub func set_align(i: int, align_x: CrossAlign, align_y: CrossAlign):",
      "pub func set_align(i: int, align_x: CrossAlign, align_y: CrossAlign):",
      "pub func set_align(i: int, align_x: CrossAlign, align_y: CrossAlign):",
      "pub func set_align(i: int, align_x: CrossAlign, align_y: CrossAlign):",
      "pub func set_bounds(bounds: Rect):",
      "pub func set_bounds(bounds: Rect):",
      "pub func set_bounds(bounds: Rect):",
      "pub func set_bounds(bounds: Rect):",
      "pub func set_bounds(bounds: Rect):",
      "pub func set_bounds(bounds: Rect):",
      "pub func set_bounds(bounds: Rect):",
      "pub func set_cell(i: int, row: int, col: int):",
      "pub func set_cell_align(row: int, col: int, a: Alignment):",
      "pub func set_ch(ch: str): bool:",
      "pub func set_checked(value: bool):",
      "pub func set_closable(b: bool):",
      "pub func set_column_align(i: int, a: Alignment):",
      "pub func set_column_overflow(i: int, o: CellOverflow):",
      "pub func set_column_width(i: int, w: LayoutSize):",
      "pub func set_gap(gap: int):",
      "pub func set_gap(gap: int):",
      "pub func set_glyphs(policy: GlyphPolicy):",
      "pub func set_height(i: int, size: LayoutSize):",
      "pub func set_height(i: int, size: LayoutSize):",
      "pub func set_height(i: int, size: LayoutSize):",
      "pub func set_height(i: int, size: LayoutSize):",
      "pub func set_keymap(km: Keymap):",
      "pub func set_margin(i: int, margin: Insets):",
      "pub func set_margin(i: int, margin: Insets):",
      "pub func set_margin(i: int, margin: Insets):",
      "pub func set_margin(i: int, margin: Insets):",
      "pub func set_max(limit: int):",
      "pub func set_orientation(o: Orientation):",
      "pub func set_pad_x(n: int):",
      "pub func set_padding(pad: Insets):",
      "pub func set_padding(pad: Insets):",
      "pub func set_padding(pad: Insets):",
      "pub func set_padding(pad: Insets):",
      "pub func set_placeholder(p: str):",
      "pub func set_progress(percent: int):",
      "pub func set_size(sz: ModalSize):",
      "pub func set_source(src: func () str):",
      "pub func set_span(i: int, rows: int, cols: int):",
      "pub func set_style(s: Style):",
      "pub func set_style(style: Style):",
      "pub func set_text(content: str):",
      "pub func set_title(t: str):",
      "pub func set_value(v: str):",
      "pub func set_width(i: int, size: LayoutSize):",
      "pub func set_width(i: int, size: LayoutSize):",
      "pub func set_width(i: int, size: LayoutSize):",
      "pub func set_width(i: int, size: LayoutSize):",
      "pub func set_wrap(wrap: WrapMode):",
      "pub func start():",
      "pub func stop():",
      "pub func unbind(key: term.Key):",
      "pub func unbind_for(widget_id: int, key: term.Key):",
      "pub func unbind_for_seq(widget_id: int, seq: str):",
      "pub func unraise(ids: Vector<int>):",
      "pub func unraise_subtree(id: int):",
      "pub func valid(id: int): bool:",
      "pub func value(): str:",
      "pub func visible(): bool:",
      "pub func visible(): bool:",
      "pub func widget(id: int): dyn Widget:",
      "pub struct BaseWidget:",
      "pub struct BorderGlyphs:",
      "pub struct Buffer:",
      "pub struct Button:",
      "pub struct Cell:",
      "pub struct Checkbox:",
      "pub struct Column:",
      "pub struct Event:",
      "pub struct Grid:",
      "pub struct Input:",
      "pub struct Insets:",
      "pub struct Keymap:",
      "pub struct LayoutSize:",
      "pub struct LayoutSlot:",
      "pub struct List:",
      "pub struct Measure:",
      "pub struct Modal:",
      "pub struct Panel:",
      "pub struct Point:",
      "pub struct Progress:",
      "pub struct Rect:",
      "pub struct Row:",
      "pub struct Screen:",
      "pub struct Separator:",
      "pub struct Stack:",
      "pub struct Style:",
      "pub struct Table:",
      "pub struct TableColumn:",
      "pub struct TableView:",
      "pub struct Text:",
      "pub struct Tree:"
    ],
    "types": [
      "pub const TypeKindBool := 1",
      "pub const TypeKindFloat := 3",
      "pub const TypeKindInt := 2",
      "pub const TypeKindNull := 0",
      "pub const TypeKindStr := 4",
      "pub func Equal<T>(a: Vector<T>, b: Vector<T>): bool:",
      "pub func IsBool(s: str): bool:",
      "pub func IsFloat(s: str): bool:",
      "pub func IsInt(s: str): bool:",
      "pub func IsNumeric(s: str): bool: ret IsInt(s) or IsFloat(s) end",
      "pub func KindName(k: int): str:",
      "pub func KindOf(s: str): int:"
    ],
    "unicode": [
      "pub const BcAL := 2",
      "pub const BcAN := 6",
      "pub const BcB := 10",
      "pub const BcBN := 9",
      "pub const BcCS := 7",
      "pub const BcEN := 3",
      "pub const BcES := 4",
      "pub const BcET := 5",
      "pub const BcFSI := 21",
      "pub const BcL := 0",
      "pub const BcLRE := 14",
      "pub const BcLRI := 19",
      "pub const BcLRO := 16",
      "pub const BcNSM := 8",
      "pub const BcON := 13",
      "pub const BcPDF := 18",
      "pub const BcPDI := 22",
      "pub const BcR := 1",
      "pub const BcRLE := 15",
      "pub const BcRLI := 20",
      "pub const BcRLO := 17",
      "pub const BcS := 11",
      "pub const BcWS := 12",
      "pub const CatCc := 25",
      "pub const CatCf := 26",
      "pub const CatCn := 29",
      "pub const CatCo := 28",
      "pub const CatCs := 27",
      "pub const CatLl := 1",
      "pub const CatLm := 3",
      "pub const CatLo := 4",
      "pub const CatLt := 2",
      "pub const CatLu := 0",
      "pub const CatMc := 6",
      "pub const CatMe := 7",
      "pub const CatMn := 5",
      "pub const CatNd := 8",
      "pub const CatNl := 9",
      "pub const CatNo := 10",
      "pub const CatPc := 11",
      "pub const CatPd := 12",
      "pub const CatPe := 14",
      "pub const CatPf := 16",
      "pub const CatPi := 15",
      "pub const CatPo := 17",
      "pub const CatPs := 13",
      "pub const CatSc := 19",
      "pub const CatSk := 20",
      "pub const CatSm := 18",
      "pub const CatSo := 21",
      "pub const CatZl := 23",
      "pub const CatZp := 24",
      "pub const CatZs := 22",
      "pub const GcbCR := 1",
      "pub const GcbControl := 3",
      "pub const GcbExtend := 4",
      "pub const GcbExtendedPictographic := 14",
      "pub const GcbL := 9",
      "pub const GcbLF := 2",
      "pub const GcbLV := 12",
      "pub const GcbLVT := 13",
      "pub const GcbOther := 0",
      "pub const GcbPrepend := 7",
      "pub const GcbRegionalIndicator := 6",
      "pub const GcbSpacingMark := 8",
      "pub const GcbT := 11",
      "pub const GcbV := 10",
      "pub const GcbZWJ := 5",
      "pub const HangulLBase := 0x1100",
      "pub const HangulLCount := 19",
      "pub const HangulNCount := 588",
      "pub const HangulSBase := 0xAC00",
      "pub const HangulSCount := 11172",
      "pub const HangulTBase := 0x11A7",
      "pub const HangulTCount := 28",
      "pub const HangulVBase := 0x1161",
      "pub const HangulVCount := 21",
      "pub const IncbConsonant := 1",
      "pub const IncbExtend := 2",
      "pub const IncbLinker := 3",
      "pub const IncbNone := 0",
      "pub const MaxCodePoint := 0x10FFFF",
      "pub const MaxFoldLen := 3",
      "pub const PbtClose := 2",
      "pub const PbtNone := 0",
      "pub const PbtOpen := 1",
      "pub const ScriptAdlam := 132",
      "pub const ScriptAhom := 126",
      "pub const ScriptAnatolianHieroglyphs := 127",
      "pub const ScriptArabic := 7",
      "pub const ScriptArmenian := 5",
      "pub const ScriptAvestan := 80",
      "pub const ScriptBalinese := 62",
      "pub const ScriptBamum := 84",
      "pub const ScriptBassaVah := 104",
      "pub const ScriptBatak := 93",
      "pub const ScriptBengali := 11",
      "pub const ScriptBhaiksuki := 133",
      "pub const ScriptBopomofo := 35",
      "pub const ScriptBrahmi := 94",
      "pub const ScriptBraille := 53",
      "pub const ScriptBuginese := 54",
      "pub const ScriptBuhid := 44",
      "pub const ScriptCanadianAboriginal := 28",
      "pub const ScriptCarian := 75",
      "pub const ScriptCaucasianAlbanian := 103",
      "pub const ScriptChakma := 96",
      "pub const ScriptCham := 77",
      "pub const ScriptCherokee := 27",
      "pub const ScriptChorasmian := 153",
      "pub const ScriptCommon := 1",
      "pub const ScriptCoptic := 55",
      "pub const ScriptCuneiform := 63",
      "pub const ScriptCypriot := 52",
      "pub const ScriptCyproMinoan := 157",
      "pub const ScriptCyrillic := 4",
      "pub const ScriptDeseret := 40",
      "pub const ScriptDevanagari := 10",
      "pub const ScriptDivesAkuru := 154",
      "pub const ScriptDogra := 142",
      "pub const ScriptDuployan := 105",
      "pub const ScriptEgyptianHieroglyphs := 81",
      "pub const ScriptElbasan := 106",
      "pub const ScriptElymaic := 149",
      "pub const ScriptEthiopic := 26",
      "pub const ScriptGaray := 164",
      "pub const ScriptGeorgian := 24",
      "pub const ScriptGlagolitic := 57",
      "pub const ScriptGothic := 39",
      "pub const ScriptGrantha := 107",
      "pub const ScriptGreek := 3",
      "pub const ScriptGujarati := 13",
      "pub const ScriptGunjalaGondi := 143",
      "pub const ScriptGurmukhi := 12",
      "pub const ScriptGurungKhema := 165",
      "pub const ScriptHan := 36",
      "pub const ScriptHangul := 25",
      "pub const ScriptHanifiRohingya := 146",
      "pub const ScriptHanunoo := 43",
      "pub const ScriptHatran := 128",
      "pub const ScriptHebrew := 6",
      "pub const ScriptHiragana := 33",
      "pub const ScriptImperialAramaic := 87",
      "pub const ScriptInherited := 41",
      "pub const ScriptInscriptionalPahlavi := 90",
      "pub const ScriptInscriptionalParthian := 89",
      "pub const ScriptJavanese := 85",
      "pub const ScriptKaithi := 92",
      "pub const ScriptKannada := 17",
      "pub const ScriptKatakana := 34",
      "pub const ScriptKawi := 162",
      "pub const ScriptKayahLi := 72",
      "pub const ScriptKharoshthi := 61",
      "pub const ScriptKhitanSmallScript := 155",
      "pub const ScriptKhmer := 31",
      "pub const ScriptKhojki := 109",
      "pub const ScriptKhudawadi := 123",
      "pub const ScriptKiratRai := 166",
      "pub const ScriptLao := 21",
      "pub const ScriptLatin := 2",
      "pub const ScriptLepcha := 68",
      "pub const ScriptLimbu := 46",
      "pub const ScriptLinearA := 110",
      "pub const ScriptLinearB := 48",
      "pub const ScriptLisu := 83",
      "pub const ScriptLycian := 74",
      "pub const ScriptLydian := 76",
      "pub const ScriptMahajani := 111",
      "pub const ScriptMakasar := 144",
      "pub const ScriptMalayalam := 18",
      "pub const ScriptMandaic := 95",
      "pub const ScriptManichaean := 112",
      "pub const ScriptMarchen := 134",
      "pub const ScriptMasaramGondi := 138",
      "pub const ScriptMedefaidrin := 145",
      "pub const ScriptMeeteiMayek := 86",
      "pub const ScriptMendeKikakui := 113",
      "pub const ScriptMeroiticCursive := 97",
      "pub const ScriptMeroiticHieroglyphs := 98",
      "pub const ScriptMiao := 99",
      "pub const ScriptModi := 114",
      "pub const ScriptMongolian := 32",
      "pub const ScriptMro := 115",
      "pub const ScriptMultani := 129",
      "pub const ScriptMyanmar := 23",
      "pub const ScriptNabataean := 117",
      "pub const ScriptNagMundari := 163",
      "pub const ScriptNandinagari := 150",
      "pub const ScriptNewTaiLue := 56",
      "pub const ScriptNewa := 135",
      "pub const ScriptNko := 66",
      "pub const ScriptNushu := 139",
      "pub const ScriptNyiakengPuachueHmong := 151",
      "pub const ScriptOgham := 29",
      "pub const ScriptOlChiki := 69",
      "pub const ScriptOlOnal := 167",
      "pub const ScriptOldHungarian := 130",
      "pub const ScriptOldItalic := 38",
      "pub const ScriptOldNorthArabian := 116",
      "pub const ScriptOldPermic := 120",
      "pub const ScriptOldPersian := 60",
      "pub const ScriptOldSogdian := 148",
      "pub const ScriptOldSouthArabian := 88",
      "pub const ScriptOldTurkic := 91",
      "pub const ScriptOldUyghur := 158",
      "pub const ScriptOriya := 14",
      "pub const ScriptOsage := 136",
      "pub const ScriptOsmanya := 51",
      "pub const ScriptPahawhHmong := 108",
      "pub const ScriptPalmyrene := 118",
      "pub const ScriptPauCinHau := 119",
      "pub const ScriptPhagsPa := 65",
      "pub const ScriptPhoenician := 64",
      "pub const ScriptPsalterPahlavi := 121",
      "pub const ScriptRejang := 73",
      "pub const ScriptRunic := 30",
      "pub const ScriptSamaritan := 82",
      "pub const ScriptSaurashtra := 71",
      "pub const ScriptSharada := 100",
      "pub const ScriptShavian := 50",
      "pub const ScriptSiddham := 122",
      "pub const ScriptSignWriting := 131",
      "pub const ScriptSinhala := 19",
      "pub const ScriptSogdian := 147",
      "pub const ScriptSoraSompeng := 101",
      "pub const ScriptSoyombo := 140",
      "pub const ScriptSundanese := 67",
      "pub const ScriptSunuwar := 168",
      "pub const ScriptSylotiNagri := 59",
      "pub const ScriptSyriac := 8",
      "pub const ScriptTagalog := 42",
      "pub const ScriptTagbanwa := 45",
      "pub const ScriptTaiLe := 47",
      "pub const ScriptTaiTham := 78",
      "pub const ScriptTaiViet := 79",
      "pub const ScriptTakri := 102",
      "pub const ScriptTamil := 15",
      "pub const ScriptTangsa := 159",
      "pub const ScriptTangut := 137",
      "pub const ScriptTelugu := 16",
      "pub const ScriptThaana := 9",
      "pub const ScriptThai := 20",
      "pub const ScriptTibetan := 22",
      "pub const ScriptTifinagh := 58",
      "pub const ScriptTirhuta := 124",
      "pub const ScriptTodhri := 169",
      "pub const ScriptToto := 160",
      "pub const ScriptTuluTigalari := 170",
      "pub const ScriptUgaritic := 49",
      "pub const ScriptUnknown := 0",
      "pub const ScriptVai := 70",
      "pub const ScriptVithkuqi := 161",
      "pub const ScriptWancho := 152",
      "pub const ScriptWarangCiti := 125",
      "pub const ScriptYezidi := 156",
      "pub const ScriptYi := 37",
      "pub const ScriptZanabazarSquare := 141",
      "pub const Version := \"16.0.0\"",
      "pub const ZWJ := 0x200D",
      "pub const ZWNJ := 0x200C",
      "pub inline pure func IsJoinControl(cp: int): bool:",
      "pub pure func BidiClass(cp: int): int:",
      "pub pure func Category(cp: int): int:",
      "pub pure func CategoryName(cp: int): str:",
      "pub pure func CombiningClass(cp: int): int:",
      "pub pure func CompatDecompAt(cp: int, k: int): int:",
      "pub pure func CompatDecompLen(cp: int): int:",
      "pub pure func Compose(a: int, b: int): int:",
      "pub pure func ConjunctBreak(cp: int): int:",
      "pub pure func DecompAt(cp: int, k: int): int:",
      "pub pure func DecompLen(cp: int): int:",
      "pub pure func FullFoldAt(cp: int, k: int): int:",
      "pub pure func FullFoldLen(cp: int): int:",
      "pub pure func GraphemeBreak(cp: int): int:",
      "pub pure func HasFullFold(cp: int): bool:",
      "pub pure func IsAlnum(cp: int): bool:",
      "pub pure func IsAlphabetic(cp: int): bool:",
      "pub pure func IsAssigned(cp: int): bool:",
      "pub pure func IsControl(cp: int): bool:",
      "pub pure func IsDigit(cp: int): bool:",
      "pub pure func IsFormat(cp: int): bool:",
      "pub pure func IsLetter(cp: int): bool:",
      "pub pure func IsLower(cp: int): bool:",
      "pub pure func IsMark(cp: int): bool:",
      "pub pure func IsNumber(cp: int): bool:",
      "pub pure func IsPunct(cp: int): bool:",
      "pub pure func IsSpace(cp: int): bool:",
      "pub pure func IsSymbol(cp: int): bool:",
      "pub pure func IsTitle(cp: int): bool:",
      "pub pure func IsUpper(cp: int): bool:",
      "pub pure func PairedBracket(cp: int): int:",
      "pub pure func PairedBracketType(cp: int): int:",
      "pub pure func Script(cp: int): int:",
      "pub pure func ScriptName(cp: int): str:",
      "pub pure func ToFold(cp: int): int:",
      "pub pure func ToLower(cp: int): int:",
      "pub pure func ToTitle(cp: int): int:",
      "pub pure func ToUpper(cp: int): int:"
    ],
    "web": [
      "pub func Em(f: f64): Length:",
      "pub func Hsl(h: int, s: int, l: int): Color:",
      "pub func Hsla(h: int, s: int, l: int, a: int): Color:",
      "pub func PageBegin(): str.StringBuilder:",
      "pub func PageCss(b &: str.StringBuilder, c: Color):",
      "pub func PageCss(b &: str.StringBuilder, f: f64):",
      "pub func PageCss(b &: str.StringBuilder, l: Length):",
      "pub func PageCss(b &: str.StringBuilder, n: int):",
      "pub func PageCssUrl(b &: str.StringBuilder, u: Url):",
      "pub func PageEnd(b &: str.StringBuilder): str:",
      "pub func PageStatic(b &: str.StringBuilder, s: str):",
      "pub func PageText(b &: str.StringBuilder, c: Color):",
      "pub func PageText(b &: str.StringBuilder, f: f64):",
      "pub func PageText(b &: str.StringBuilder, l: Length):",
      "pub func PageText(b &: str.StringBuilder, n: i64):",
      "pub func PageText(b &: str.StringBuilder, n: int):",
      "pub func PageText(b &: str.StringBuilder, s: str):",
      "pub func PageText(b &: str.StringBuilder, u: Url):",
      "pub func PageText(b &: str.StringBuilder, v: bool):",
      "pub func PageUrl(b &: str.StringBuilder, u: Url):",
      "pub func ParseColor(s: str, ok &: bool): Color:",
      "pub func ParseLength(s: str, ok &: bool): Length:",
      "pub func ParseUrl(s: str, ok &: bool): Url:",
      "pub func Percent(n: int): Length:",
      "pub func Px(n: int): Length:",
      "pub func Rem(f: f64): Length:",
      "pub func Rgb(r: int, g: int, b: int): Color:",
      "pub func Rgba(r: int, g: int, b: int, a: int): Color:",
      "pub func set(s: str): bool:",
      "pub func set(s: str): bool:",
      "pub func set(s: str): bool:",
      "pub pure func UrlText(u: Url): str:",
      "pub pure func text(): str:",
      "pub pure func text(): str:",
      "pub pure func text(): str:",
      "pub struct Color:",
      "pub struct Length:",
      "pub struct Url:"
    ],
    "web.canvas": [
      "pub func Alpha(c: i64, v: f64): salam_js_global_alpha(c, v) end",
      "pub func Arc(c: i64, x: f64, y: f64, r: f64, a: f64, b: f64): salam_js_arc(c, x, y, r, a, b) end",
      "pub func BeginPath(c: i64): salam_js_begin_path(c) end",
      "pub func ClearRect(c: i64, x: f64, y: f64, w: f64, h: f64): salam_js_clear_rect(c, x, y, w, h) end",
      "pub func ClosePath(c: i64): salam_js_close_path(c) end",
      "pub func DrawImage(c: i64, img: i64, x: f64, y: f64, w: f64, h: f64): salam_js_draw_image(c, img, x, y, w, h) end",
      "pub func Fill(c: i64): salam_js_path_fill(c) end",
      "pub func FillRect(c: i64, x: f64, y: f64, w: f64, h: f64): salam_js_fill_rect(c, x, y, w, h) end",
      "pub func FillStyle(c: i64, v: str): salam_js_fill_style(c, v) end",
      "pub func FillText(c: i64, t: str, x: f64, y: f64): salam_js_fill_text(c, t, x, y) end",
      "pub func Font(c: i64, v: str): salam_js_font(c, v) end",
      "pub func Get(id: str): i64: ret salam_js_canvas_ctx(id) end",
      "pub func Height(c: i64): f64: ret salam_js_canvas_h(c) end",
      "pub func LineTo(c: i64, x: f64, y: f64): salam_js_line_to(c, x, y) end",
      "pub func LineWidth(c: i64, v: f64): salam_js_line_width(c, v) end",
      "pub func MoveTo(c: i64, x: f64, y: f64): salam_js_move_to(c, x, y) end",
      "pub func Of(el: i64): i64: ret salam_js_ctx_of(el) end",
      "pub func Restore(c: i64): salam_js_ctx_restore(c) end",
      "pub func Rotate(c: i64, a: f64): salam_js_rotate(c, a) end",
      "pub func RoundRect(c: i64, x: f64, y: f64, w: f64, h: f64, r: f64): salam_js_round_rect(c, x, y, w, h, r) end",
      "pub func Save(c: i64): salam_js_ctx_save(c) end",
      "pub func Scale(c: i64, x: f64, y: f64): salam_js_scale(c, x, y) end",
      "pub func Stroke(c: i64): salam_js_path_stroke(c) end",
      "pub func StrokeRect(c: i64, x: f64, y: f64, w: f64, h: f64): salam_js_stroke_rect(c, x, y, w, h) end",
      "pub func StrokeStyle(c: i64, v: str): salam_js_stroke_style(c, v) end",
      "pub func TextAlign(c: i64, v: str): salam_js_text_align(c, v) end",
      "pub func Translate(c: i64, x: f64, y: f64): salam_js_translate(c, x, y) end",
      "pub func Width(c: i64): f64: ret salam_js_canvas_w(c) end"
    ],
    "web.keys": [
      "pub func Down(k: str): bool:",
      "pub func Init():",
      "pub func Pressed(k: str): bool:",
      "pub func Track(k: str):"
    ],
    "webpush": [
      "pub const DEFAULT_TTL := 2419200",
      "pub func Encrypt(sub: Subscription, payload: str, ok &: bool): str:",
      "pub func EncryptWith(",
      "pub func GenerateKeys(): Keys:",
      "pub func KeysFrom(public_key: str, private_key: str): Keys:",
      "pub func NewOptions(subject: str): Options:",
      "pub func Send(keys: Keys, sub: Subscription, payload: str, opts: Options): Result:",
      "pub func VapidHeader(keys: Keys, audience: str, subject: str): str:",
      "pub func VapidHeaderAt(",
      "pub struct Keys:",
      "pub struct Options:",
      "pub struct Result:",
      "pub struct Subscription:"
    ]
  },
  "root": "std"
}
