import { Feature, Segment, DatafileContentV1, DatafileContentV2, Attribute, AttributeKey, SegmentKey, FeatureKey } from "@featurevisor/types";
export declare function parseJsonConditionsIfStringified<T>(record: T, key: string): T;
export declare class DatafileReader {
    private schemaVersion;
    private revision;
    private attributes;
    private segments;
    private features;
    constructor(datafileJson: DatafileContentV1 | DatafileContentV2);
    getRevision(): string;
    getSchemaVersion(): string;
    getAllAttributes(): Attribute[];
    getAttribute(attributeKey: AttributeKey): Attribute | undefined;
    getSegment(segmentKey: SegmentKey): Segment | undefined;
    getFeature(featureKey: FeatureKey): Feature | undefined;
}
