UNPKG

709 BTypeScriptView Raw
1import { Term } from "./term";
2export declare function isBlankNodeLike<Value extends string = string>(given: unknown, value?: Value): given is BlankNodeLike<Value>;
3export declare function isBlankNode<Value extends string = string>(given: unknown, value?: Value): given is BlankNode;
4export interface BlankNode<Value extends string = string> extends Term<"BlankNode", Value> {
5 equals(other: unknown): other is BlankNodeLike<Value>;
6}
7export declare class BlankNode<Value extends string = string> extends Term<"BlankNode", Value> implements BlankNode<Value> {
8 constructor(value: Value);
9}
10export declare type BlankNodeLike<Value extends string = string> = Pick<BlankNode<Value>, "termType" | "value">;