export declare const PREPARED_WORKSPACE_SCHEMA = "pi-workflows.prepared-workspace.v1"; export type WorkspaceMode = "auto" | "branch" | "worktree" | "defaultBranch"; export type PreparedWorkspaceMode = Exclude; export type PreparedWorkspace = { schema: typeof PREPARED_WORKSPACE_SCHEMA; mode: PreparedWorkspaceMode; repository: string; worktreePath?: string; baseBranch: string; baseRevision: string; workBranch: string; directDefaultBranchAuthorized: boolean; preExistingChangedPaths: string[]; evidence: string[]; scope: string; }; export type WorkspacePreparationInput = { repository: string; baseBranch?: string; workspaceMode?: WorkspaceMode; directDefaultBranchAuthorized?: boolean; scope?: string; preparedWorkspace?: PreparedWorkspace; }; type WorkspaceInspection = { route: "ready" | "propose" | "blocked"; selectedMode?: PreparedWorkspaceMode; preparedWorkspace?: PreparedWorkspace; repository: string; baseBranch: string; baseRevision?: string; currentBranch?: string; preExistingChangedPaths: string[]; reason: string; evidence: string[]; }; type BranchProposal = { branchName: string; reason: string; }; export declare function parsePreparedWorkspace(value: unknown): PreparedWorkspace; export declare function parseWorkspacePreparationInput(value: unknown): WorkspacePreparationInput; export declare function inspectWorkspace(input: WorkspacePreparationInput): Promise; export declare function validateBranchName(repository: string, branchName: string, baseBranch: string): Promise; export declare function prepareWorkspace(input: WorkspacePreparationInput, inspection: WorkspaceInspection, proposal: BranchProposal): Promise; export declare const workspacePreparationWorkflow: import("../workflows/types.js").WorkflowDefinition WorkspaceInspection; }; }, import("../workflows/types.js").WorkflowIncludeMap> & { nodes: { readonly inspect: import("../workflows/types.js").FunctionActionNodeDefinition; readonly propose: import("../workflows/types.js").SubmittedAgentNodeDefinition; readonly apply: import("../workflows/types.js").FunctionActionNodeDefinition; readonly ready: import("../workflows/types.js").ComputeNodeDefinition; readonly blocked: import("../workflows/types.js").ComputeNodeDefinition; }; includes?: import("../workflows/types.js").WorkflowIncludeMap; exits?: { readonly ready: { readonly from: "ready"; readonly validate: typeof parsePreparedWorkspace; }; readonly blocked: { readonly from: "blocked"; readonly validate: (value: unknown) => WorkspaceInspection; }; }; }; export default workspacePreparationWorkflow;