import type { IActionAbstractMediaTyped, IActorArgsMediaTyped, IActorTestAbstractMediaTyped, IActorOutputAbstractMediaTypedHandle, IActionAbstractMediaTypedHandle, IActionAbstractMediaTypedMediaTypeFormats, IActionAbstractMediaTypedMediaTypes, IActorOutputAbstractMediaTypedMediaTypeFormats, IActorOutputAbstractMediaTypedMediaTypes, IActorTestAbstractMediaTypedHandle, IActorTestAbstractMediaTypedMediaTypeFormats, IActorTestAbstractMediaTypedMediaTypes } from '@comunica/actor-abstract-mediatyped'; import { ActorAbstractMediaTyped } from '@comunica/actor-abstract-mediatyped'; import type { IAction, IActorOutput, IActorTest, Mediate } from '@comunica/core'; import type * as RDF from '@rdfjs/types'; /** * A comunica actor for RDF parse events. * * Actor types: * * Input: IActionRdfSerialize: A serialize input or a media type input. * * Test: * * Output: IActorRdfSerializeOutput: The serialized quads. * * @see IActionRdfSerialize * @see IActorRdfSerializeOutput */ export declare abstract class ActorRdfSerialize extends ActorAbstractMediaTyped { /** * @param args - @defaultNested { a } bus */ constructor(args: IActorRdfSerializeArgs); } export type IActionRootRdfSerialize = IActionAbstractMediaTyped; export type IActorTestRootRdfSerialize = IActorTestAbstractMediaTyped; export type IActorOutputRootRdfSerialize = IActorOutputAbstractMediaTypedHandle; export type IActionRdfSerializeHandle = IActionAbstractMediaTypedHandle; export type IActorTestRdfSerializeHandle = IActorTestAbstractMediaTypedHandle; export type IActorOutputRdfSerializeHandle = IActorOutputAbstractMediaTypedHandle; export type IActionRdfSerializeMediaTypes = IActionAbstractMediaTypedMediaTypes; export type IActorTestRdfSerializeMediaTypes = IActorTestAbstractMediaTypedMediaTypes; export type IActorOutputRdfSerializeMediaTypes = IActorOutputAbstractMediaTypedMediaTypes; export type IActionRdfSerializeMediaTypeFormats = IActionAbstractMediaTypedMediaTypeFormats; export type IActorTestRdfSerializeMediaTypeFormats = IActorTestAbstractMediaTypedMediaTypeFormats; export type IActorOutputRdfSerializeMediaTypeFormats = IActorOutputAbstractMediaTypedMediaTypeFormats; export interface IActionRdfSerialize extends IAction { /** * The stream of quads. */ quadStream: RDF.Stream; } export interface IActorRdfSerializeOutput extends IActorOutput { /** * A readable string stream in a certain RDF serialization that was serialized. */ data: NodeJS.ReadableStream; /** * An optional field indicating if the given output stream uses a triple-based serialization, * in which everything is serialized in the default graph. * If falsy, the quad stream contain actual quads, otherwise they should be interpreted as triples. */ triples?: boolean; } export type IActorRdfSerializeArgs = IActorArgsMediaTyped; export type MediatorRdfSerializeHandle = Mediate; export type MediatorRdfSerialize = Mediate; export type MediatorRdfSerializeMediaTypes = Mediate; export type MediatorRdfSerializeMediaTypeFormats = Mediate;