@solid/community-server
Version:
Community Solid Server: an open and modular implementation of the Solid specifications
21 lines (20 loc) • 1.05 kB
TypeScript
import type { Representation } from '../../http/representation/Representation';
import type { RepresentationPreferences } from '../../http/representation/RepresentationPreferences';
import type { ResourceIdentifier } from '../../http/representation/ResourceIdentifier';
import type { RepresentationConverter } from '../conversion/RepresentationConverter';
/**
* Helper class that checks if the stored {@link RepresentationConverter} and {@link RepresentationPreferences}
* support the given input {@link RepresentationPreferences} and {@link Representation}.
*
* Creates a new object by combining the input arguments together with the stored preferences and checks
* if the converter can handle that object.
*/
export declare class PreferenceSupport {
private readonly preferences;
private readonly converter;
constructor(preferences: RepresentationPreferences, converter: RepresentationConverter);
supports(input: {
identifier: ResourceIdentifier;
representation: Representation;
}): Promise<boolean>;
}