import { IParsedFeatures } from './parsed-features';
import TextFeature from 'ol/format/TextFeature';
import JSONFeature from 'ol/format/JSONFeature';
import XMLFeature from 'ol/format/XMLFeature';
/**
 * Defines a format driver for reading plain text into vector features
 *
 * @export
 * @interface IFormatDriver
 * @since 0.13
 */
export interface IFormatDriver {
    /**
     * Attempts to read the given text content into vector features. A failure
     * of this driver to parse the features is expressed by returning an object
     * where calling hasFeatures() on it returns false.
     *
     * @param {number} size
     * @param {string} text
     * @returns {Promise<IParsedFeatures>}
     * @memberof IFormatDriver
     */
    tryParse(size: number, text: string): Promise<IParsedFeatures>;
}
/**
 * A default format driver implementation primarily for interfacing with any
 * existing OpenLayers format driver instances
 *
 * @export
 * @class FormatDriver
 * @implements {IFormatDriver}
 * @since 0.13
 */
export declare class FormatDriver implements IFormatDriver {
    private type;
    private format;
    private defaultProjection;
    constructor(type: string, format: TextFeature | JSONFeature | XMLFeature, defaultProjection?: string | null);
    tryParse(size: number, text: string): Promise<IParsedFeatures>;
}
