import { ComponentID, ComponentIdObj } from '@teambit/component-id';
import { LaneId } from '@teambit/lane-id';
import { Logger } from '@teambit/logger';
type Config = Record<string, any> | undefined;
type ComponentConfig = {
    id: ComponentID;
    config: Config;
};
type ComponentConfigObj = {
    id: ComponentIdObj;
    config: Config;
};
export declare class StagedConfig {
    readonly filePath: string;
    private componentsConfig;
    private logger;
    hasChanged: boolean;
    constructor(filePath: string, componentsConfig: ComponentConfig[], logger: Logger);
    static load(scopePath: string, logger: Logger, laneId?: LaneId): Promise<StagedConfig>;
    toObject(): ComponentConfigObj[];
    write(): Promise<void>;
    getConfigPerId(id: ComponentID): Config;
    getAll(): ComponentConfig[];
    isEmpty(): boolean;
    deleteFile(): Promise<void>;
    addComponentConfig(id: ComponentID, config: Config): void;
    removeComponentConfig(id: ComponentID): void;
}
export {};
