export declare const WORKSPACE_PERMISSION_REPAIR_NEEDED_CODE = "workspace_permission_repair_needed";
export declare const MANAGED_WORKSPACE_CONFIGURATION_ERROR_CODE = "managed_workspace_configuration_error";
export type ManagedWorkspacePreflightPathKind = "agent_home" | "instructions" | "memory" | "life" | "skills";
export interface ManagedWorkspacePreflightPath {
    kind: ManagedWorkspacePreflightPathKind;
    path: string;
}
export interface ManagedWorkspacePreflightInput {
    agentHome: string;
    instructionsDir: string;
    memoryDir: string;
    lifeDir: string;
    skillsDir: string;
}
export interface ManagedWorkspacePreflightFailure {
    kind: ManagedWorkspacePreflightPathKind;
    path: string;
    operation: "configure" | "mkdir" | "stat" | "write_probe";
    code: string | null;
    message: string;
}
export declare class WorkspacePermissionPreflightError extends Error {
    readonly errorCode = "workspace_permission_repair_needed";
    readonly failure: ManagedWorkspacePreflightFailure;
    constructor(failure: ManagedWorkspacePreflightFailure);
}
export declare class ManagedWorkspaceConfigurationError extends Error {
    readonly errorCode = "managed_workspace_configuration_error";
    readonly failure: ManagedWorkspacePreflightFailure;
    constructor(failure: ManagedWorkspacePreflightFailure);
}
export declare function formatWorkspacePermissionPreflightMessage(failure: ManagedWorkspacePreflightFailure): string;
export declare function formatManagedWorkspaceConfigurationErrorMessage(failure: ManagedWorkspacePreflightFailure): string;
export declare function workspacePreflightPaths(input: ManagedWorkspacePreflightInput): ManagedWorkspacePreflightPath[];
export declare function preflightManagedAgentWorkspace(input: ManagedWorkspacePreflightInput): Promise<ManagedWorkspacePreflightPath[]>;
export declare function isWorkspacePermissionPreflightError(error: unknown): error is WorkspacePermissionPreflightError;
export declare function isManagedWorkspaceConfigurationError(error: unknown): error is ManagedWorkspaceConfigurationError;
//# sourceMappingURL=managed-workspace-preflight.d.ts.map