import { z } from "zod"; declare const PaseoWorktreeMetadataSchema: z.ZodUnion<[z.ZodObject<{ version: z.ZodLiteral<1>; baseRefName: z.ZodString; }, "strip", z.ZodTypeAny, { version: 1; baseRefName: string; }, { version: 1; baseRefName: string; }>, z.ZodObject<{ version: z.ZodLiteral<2>; baseRefName: z.ZodString; firstAgentBranchAutoName: z.ZodOptional; placeholderBranchName: z.ZodString; }, "strip", z.ZodTypeAny, { status: "pending"; placeholderBranchName: string; }, { status: "pending"; placeholderBranchName: string; }>, z.ZodObject<{ status: z.ZodLiteral<"attempted">; placeholderBranchName: z.ZodString; attemptedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "attempted"; placeholderBranchName: string; attemptedAt: string; }, { status: "attempted"; placeholderBranchName: string; attemptedAt: string; }>]>>; runtime: z.ZodOptional>; }, "strip", z.ZodTypeAny, { version: 2; baseRefName: string; firstAgentBranchAutoName?: { status: "pending"; placeholderBranchName: string; } | { status: "attempted"; placeholderBranchName: string; attemptedAt: string; } | undefined; runtime?: { worktreePort: number; } | undefined; }, { version: 2; baseRefName: string; firstAgentBranchAutoName?: { status: "pending"; placeholderBranchName: string; } | { status: "attempted"; placeholderBranchName: string; attemptedAt: string; } | undefined; runtime?: { worktreePort: number; } | undefined; }>]>; export type PaseoWorktreeMetadata = z.infer; export declare function getPaseoWorktreeMetadataPath(worktreeRoot: string): string; export declare function normalizeBaseRefName(input: string): string; export declare function writePaseoWorktreeMetadata(worktreeRoot: string, options: { baseRefName: string; }): void; export declare function writePaseoWorktreeRuntimeMetadata(worktreeRoot: string, options: { worktreePort: number; }): void; export declare function writePaseoWorktreeFirstAgentBranchAutoNameMetadata(worktreeRoot: string, options: { placeholderBranchName: string; }): void; export declare function markPaseoWorktreeFirstAgentBranchAutoNameAttempted(worktreeRoot: string, options?: { attemptedAt?: string; }): PaseoWorktreeMetadata | null; export declare function readPaseoWorktreeMetadata(worktreeRoot: string): PaseoWorktreeMetadata | null; export declare function requirePaseoWorktreeBaseRefName(worktreeRoot: string): string; export declare function readPaseoWorktreeRuntimePort(worktreeRoot: string): number | null; export {}; //# sourceMappingURL=worktree-metadata.d.ts.map