import { Dataset } from "@rdfjs/types"; import { JsonLdDocument } from "jsonld"; import { GraphType, InteractOptions } from "jsonld-dataset-proxy"; import { WriterOptions } from "n3"; import { DatasetChanges } from "o-dataset-pack"; import { LdoBase } from "./util"; export { graphOf, languagesOf, setLanguagePreferences, } from "jsonld-dataset-proxy"; export declare function write(...graphs: (GraphType | string)[]): InteractOptions; /** * Begins a transaction for the given linked data object * @param ldo */ export declare function startTransaction(ldo: LdoBase): void; /** * Ends a transaction and commits the * @param ldo */ export declare function commitTransaction(ldo: LdoBase): void; export declare function transactionChanges(ldo: LdoBase): DatasetChanges; export declare function getDataset(ldo: LdoBase): Dataset; export declare function toSparqlUpdate(ldo: LdoBase): Promise; export declare function serialize(ldo: LdoBase, options: WriterOptions): Promise; export declare function toTurtle(ldo: LdoBase): Promise; export declare function toJsonLd(_ldo: LdoBase): Promise; export declare function toNTriples(ldo: LdoBase): Promise;