import Graphic from "@arcgis/core/Graphic"; import { Feature } from "@vertigis/arcgis-extensions/data/Feature"; import { FeatureStream } from "@vertigis/arcgis-extensions/data/FeatureStream"; import type { Features, GraphicsLike, HasGraphics, Results } from "@vertigis/viewer-spec/messaging/common"; /** * Converts the input to a FeatureStream. * * @param features The feature(s) to convert. */ export declare function toFeatureStream(features: Features): FeatureStream; /** * Converts the input to an array of features. * * @param features The feature(s) to convert. */ export declare function toFeatureArray(features: Features): Promise; /** * Converts the input to an array of features. This version cannot convert from * a FeatureStream and will throw an error in this case. * * @param features The feature(s) to convert. */ export declare function toFeatureArraySync(features: Features): Feature[]; /** * Converts the input to a feature. If the input represents more than one * feature, it will return only the first one. * * @param features The feature(s) to convert. */ export declare function toFeature(features: Features): Promise; /** * Converts the input to a feature. If the input represents more than one * feature, it will return only the first one. This version cannot read from a * FeatureStream and will throw an error in this case. * * @param features The feature(s) to convert. */ export declare function toFeatureSync(features: Features): Feature; /** * Converts the input to a Results object. * * @param features The feature(s) to convert. */ export declare function toResults(features: Features): Results; /** * Converts the input to an array of graphics. * * @param graphics The graphic(s) to convert. */ export declare function toGraphicsArray(graphics: GraphicsLike | HasGraphics): Graphic[];