import { ValueSpecAny } from "../types.ts"; import { IBuilder } from "./builder.ts"; import { Description } from "./value.ts"; export class Pointer extends IBuilder { static packageTorKey(a: A) { return new Pointer({ type: "pointer" as const, subtype: "package" as const, target: "tor-key" as const, ...a, }); } static packageTorAddress(a: A) { return new Pointer({ type: "pointer" as const, subtype: "package" as const, target: "tor-address" as const, ...a, }); } static packageLanAddress(a: A) { return new Pointer({ type: "pointer" as const, subtype: "package" as const, target: "lan-address" as const, ...a, }); } static packageConfig(a: A) { return new Pointer({ type: "pointer" as const, subtype: "package" as const, target: "config" as const, ...a, }); } static system>(a: A) { return new Pointer({ type: "pointer" as const, subtype: "system" as const, ...a, }); } }