import { z } from "zod";
declare const SeaworkWorktreeMetadataSchema: z.ZodUnion<[z.ZodObject<{
    version: z.ZodLiteral<1>;
    baseRefName: z.ZodString;
}, "strip", z.ZodTypeAny, {
    baseRefName: string;
    version: 1;
}, {
    baseRefName: string;
    version: 1;
}>, z.ZodObject<{
    version: z.ZodLiteral<2>;
    baseRefName: z.ZodString;
    runtime: z.ZodOptional<z.ZodObject<{
        worktreePort: z.ZodNumber;
    }, "strip", z.ZodTypeAny, {
        worktreePort: number;
    }, {
        worktreePort: number;
    }>>;
}, "strip", z.ZodTypeAny, {
    baseRefName: string;
    version: 2;
    runtime?: {
        worktreePort: number;
    } | undefined;
}, {
    baseRefName: string;
    version: 2;
    runtime?: {
        worktreePort: number;
    } | undefined;
}>]>;
export type SeaworkWorktreeMetadata = z.infer<typeof SeaworkWorktreeMetadataSchema>;
export declare function getSeaworkWorktreeMetadataPath(worktreeRoot: string): string;
export declare function normalizeBaseRefName(input: string): string;
export declare function writeSeaworkWorktreeMetadata(worktreeRoot: string, options: {
    baseRefName: string;
}): void;
export declare function writeSeaworkWorktreeRuntimeMetadata(worktreeRoot: string, options: {
    worktreePort: number;
}): void;
export declare function readSeaworkWorktreeMetadata(worktreeRoot: string): SeaworkWorktreeMetadata | null;
export declare function requireSeaworkWorktreeBaseRefName(worktreeRoot: string): string;
export declare function readSeaworkWorktreeRuntimePort(worktreeRoot: string): number | null;
export {};
//# sourceMappingURL=worktree-metadata.d.ts.map