import { AxiosInstance } from 'axios';
import { IDevWorkspace, IDevWorkspaceDevfile } from '../types';
import { IDevWorkspaceApi } from '../index';
export declare class RestDevWorkspaceApi implements IDevWorkspaceApi {
    private axios;
    constructor(axios: AxiosInstance);
    listInNamespace(namespace: string): Promise<IDevWorkspace[]>;
    getByName(namespace: string, workspaceName: string): Promise<IDevWorkspace>;
    create(devfile: IDevWorkspaceDevfile, defaultEditor?: string, defaultPlugins?: string[]): Promise<IDevWorkspace>;
    delete(namespace: string, name: string): Promise<void>;
    changeStatus(namespace: string, name: string, started: boolean): Promise<IDevWorkspace>;
    initializeNamespace(namespace: string): Promise<void>;
    doesProjectExist(projectName: string): Promise<boolean>;
    private createProject;
}
