import { DataCapsule, TaskState } from '@wix/bex-core';
export interface SchemaViewConfig {
    id: string;
    isVisible?: boolean;
    hideable?: boolean;
}
export interface SchemaFieldsStateParams {
    dataCapsule: DataCapsule;
    fields: SchemaViewConfig[];
}
export declare class SchemaFieldsState {
    _storedFields: SchemaViewConfig[];
    readonly initTask: TaskState<unknown>;
    private _persistQueue;
    private readonly params;
    constructor(params: SchemaFieldsStateParams);
    init(): void;
    get orderedFields(): SchemaViewConfig[];
    isFieldVisible(id: string): boolean;
    setFieldVisibility(id: string, isVisible: boolean): void;
    setFieldOrder(orderedFields: SchemaViewConfig[]): void;
    private persistFields;
    _fetchFromStorage(): Promise<void>;
}
//# sourceMappingURL=SchemaFieldsState.d.ts.map