import type * as RdfJs from "@rdfjs/types"; import type { IriString } from "./interfaces"; import type { XmlSchemaTypeIri } from "./datatypes"; export declare const rdfJsDataset: RdfJs.DatasetCoreFactory["dataset"]; export declare const localNodeSkolemPrefix: "https://inrupt.com/.well-known/sdk-local-node/"; export type LocalNodeIri = `${typeof localNodeSkolemPrefix}${string}`; export type LocalNodeName = string; type DataTypeIriString = XmlSchemaTypeIri | IriString; type LocaleString = string; export type BlankNodeId = `_:${string}`; export type Objects = Readonly>; langStrings: Readonly>; namedNodes: ReadonlyArray; blankNodes: ReadonlyArray; }>>; export type Predicates = Readonly>; export type Subject = Readonly<{ type: "Subject"; url: BlankNodeId | LocalNodeIri | IriString; predicates: Predicates; }>; export type Graph = Readonly>; export type ImmutableDataset = Readonly<{ type: "Dataset"; graphs: Readonly & { default: Graph; }>; }>; /** * Runtime freezing might be too much overhead; * if so, this function allows us to replace it by a function * that merely marks its input as Readonly<> for static analysis. */ export declare const freeze: { (f: T): T; (o: T): Readonly; (o: T): Readonly; }; export declare function isLocalNodeIri(iri: LocalNodeIri | IriString): iri is LocalNodeIri; export declare function getLocalNodeName(localNodeIri: LocalNodeIri): string; export declare function getLocalNodeIri(localNodeName: string): LocalNodeIri; export declare function isBlankNodeId(value: T | BlankNodeId): value is BlankNodeId; export declare function getBlankNodeValue(blankNodeId: BlankNodeId): string; export declare function getBlankNodeId(blankNode: RdfJs.BlankNode): BlankNodeId; export {};