import { DataFrame, PushOptions, SinkNode, SinkNodeOptions } from '@openhps/core'; import { IriString } from '@openhps/rdf'; import { SolidPropertyService } from './SolidPropertyService'; import { SolidSession } from './SolidService'; /** * Solid property sink is a sink node that writes data to a Solid pod. * This sink node is used together with [[SolidPropertyService]] to initialize and * store data in a Solid pod. * * ## Usage * * ```typescript ModelBuilder.create() .addService(new SolidPropertyService((node) => { return node.collection ? node.collection.members.length < 50 : true; })) .addService(new SolidClientService({ clientName: "OpenHPS", defaultOidcIssuer: "https://.../", clientId: process.env.clientId, clientSecret: process.env.clientSecret, autoLogin: true })) .from() .to(new SolidPropertySink({ properties: [PropertyType.POSITION] })) .build(); * ``` */ export declare class SolidPropertySink extends SinkNode { protected options: SolidPropertySinkOptions; protected service: SolidPropertyService; constructor(options?: SolidPropertySinkOptions); onBuild(): Promise; onPush(frame: Out | Out[], options?: PushOptions): Promise; /** * Prepare the property for writing to the Solid pod. * @param property Property type * @param session Solid session */ protected prepareProperty(property: PropertyType, session: SolidSession): Promise; protected writeFrame(frame: Out): Promise; } export declare enum PropertyType { POSITION = 0 } export interface SolidPropertySinkOptions extends SinkNodeOptions { properties?: PropertyType[]; } //# sourceMappingURL=SolidPropertySink.d.ts.map