import { GlobalOptions } from "../../types.js";
import { Command } from "../../../deps.js";
export interface Workspace {
    remote: string;
    workspaceId: string;
    name: string;
    token: string;
}
export declare function allWorkspaces(configDirOverride?: string): Promise<Workspace[]>;
export declare function getActiveWorkspace(opts?: GlobalOptions | undefined): Promise<Workspace | undefined>;
export declare function getWorkspaceByName(workspaceName: string, configDirOverride?: string): Promise<Workspace | undefined>;
export declare function list(opts: GlobalOptions): Promise<void>;
export declare function setActiveWorkspace(workspaceName: string, configDirOverride?: string): Promise<void>;
export declare function add(opts: GlobalOptions & {
    create: boolean;
    createWorkspaceName: string | undefined;
    createUsername: string | undefined;
}, workspaceName: string | undefined, workspaceId: string | undefined, remote: string | undefined): Promise<void>;
export declare function addWorkspace(workspace: Workspace, opts: any): Promise<void>;
export declare function removeWorkspace(name: string, silent: boolean, opts: any): Promise<void>;
export declare function getActiveWorkspaceOrFallback(opts: GlobalOptions): Promise<Workspace | undefined>;
declare const command: Command<void, void, {
    yes?: true | undefined;
}, [import("../../../deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").StringType], void, void, void, Command<void, void, void, [], void, {
    number: number;
    integer: number;
    string: string;
    boolean: boolean;
    file: string;
}, void, undefined>>;
export default command;
//# sourceMappingURL=workspace.d.ts.map