/*! * Copyright (c) 2019 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0 * * SPDX-License-Identifier: EPL-2.0 */ import { GenericResponse, PutResponse } from '../../model/response'; import { Feature, Features } from '../../model/things.model'; import { FieldsOptions, MatchOptions } from '../../options/request.options'; import { RequestSenderFactory } from '../request-factory/request-sender'; import { FeaturesHandle } from './features.interfaces'; /** * Handle to send Feature requests. */ export declare class DefaultFeaturesHandle implements FeaturesHandle { private readonly requestFactory; private readonly thingId; private constructor(); /** * returns an instance of FeaturesHandle using the provided RequestSender. * * @param builder - The for the RequestSender to work with. * @param thingId - The ThingId to use. * @returns The FeaturesHandle */ static getInstance(builder: RequestSenderFactory, thingId: string): DefaultFeaturesHandle; getFeatures(options?: FieldsOptions): Promise; getFeature(featureId: string, options?: FieldsOptions): Promise; getDefinition(featureId: string, options?: MatchOptions): Promise; getProperties(featureId: string, options?: FieldsOptions): Promise; getProperty(featureId: string, propertyPath: string, options?: MatchOptions): Promise; deleteFeatures(options?: MatchOptions): Promise; deleteFeature(featureId: string, options?: MatchOptions): Promise; deleteDefinition(featureId: string, options?: MatchOptions): Promise; deleteProperties(featureId: string, options?: MatchOptions): Promise; deleteProperty(featureId: string, propertyPath: string, options?: MatchOptions): Promise; putFeatures(features: Features, options?: MatchOptions): Promise>; putFeature(feature: Feature, options?: MatchOptions): Promise>; patchFeatures(features: Features, options?: MatchOptions): Promise>; patchFeature(feature: Feature, options?: MatchOptions): Promise>; putDefinition(featureId: string, definition: string[], options?: MatchOptions): Promise>; patchDefinition(featureId: string, definition: string[], options?: MatchOptions): Promise>; putProperties(featureId: string, properties: object, options?: MatchOptions): Promise>; putProperty(featureId: string, propertyPath: string, property: any, options?: MatchOptions): Promise>; patchProperties(featureId: string, properties: object, options?: MatchOptions): Promise>; patchProperty(featureId: string, propertyPath: string, property: any, options?: MatchOptions): Promise>; } //# sourceMappingURL=features.d.ts.map