import { z } from "zod"; export declare const HistorySessionMetadataSchema: z.ZodObject<{ sessionId: z.ZodString; title: z.ZodOptional; cwd: z.ZodString; branch: z.ZodOptional; worktreePath: z.ZodOptional; machine: z.ZodObject<{ machineId: z.ZodString; machineName: z.ZodString; hostname: z.ZodString; }, "strip", z.ZodTypeAny, { machineId: string; hostname: string; machineName: string; }, { machineId: string; hostname: string; machineName: string; }>; project: z.ZodObject<{ projectId: z.ZodString; projectName: z.ZodString; projectDetectedName: z.ZodOptional; projectDescription: z.ZodOptional; cwd: z.ZodString; gitRoot: z.ZodOptional; repoName: z.ZodOptional; branch: z.ZodOptional; headSha: z.ZodOptional; isDirty: z.ZodOptional; worktreePath: z.ZodOptional; icon: z.ZodOptional>; sizeBytes: z.ZodOptional; }, "strip", z.ZodTypeAny, { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; }, { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }, { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }>; }, "strip", z.ZodTypeAny, { cwd: string; sessionId: string; machine: { machineId: string; hostname: string; machineName: string; }; project: { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }; branch?: string | undefined; worktreePath?: string | undefined; title?: string | undefined; }, { cwd: string; sessionId: string; machine: { machineId: string; hostname: string; machineName: string; }; project: { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }; branch?: string | undefined; worktreePath?: string | undefined; title?: string | undefined; }>; export declare const HistoryRecordSchema: z.ZodObject<{ request: z.ZodEffects; creator: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; owner: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; mode: z.ZodEnum<["single", "multi"]>; question: z.ZodObject<{ prompt: z.ZodString; ambiguity: z.ZodOptional; }, "strip", z.ZodTypeAny, { prompt: string; ambiguity?: string | undefined; }, { prompt: string; ambiguity?: string | undefined; }>; options: z.ZodArray; impact: z.ZodOptional; } & { provenance: z.ZodOptional>; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }>, "many">; images: z.ZodDefault; caption: z.ZodOptional; imageId: z.ZodString; mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/webp"]>; byteSize: z.ZodNumber; width: z.ZodNumber; height: z.ZodNumber; }, "strict", z.ZodTypeAny, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, "many">>; forkReference: z.ZodOptional; agentSessionPath: z.ZodOptional; leafId: z.ZodOptional; cwd: z.ZodOptional; model: z.ZodOptional; }, "strip", z.ZodTypeAny, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }>>; status: z.ZodEnum<["pending", "answered", "cancelled", "expired", "superseded"]>; createdAt: z.ZodString; expiresAt: z.ZodOptional; resolvedAt: z.ZodOptional; result: z.ZodOptional; requestId: z.ZodString; selectedValues: z.ZodArray; note: z.ZodOptional; affectedDescendantIds: z.ZodOptional>; descendantGuidance: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; }, { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"cancelled">; requestId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; }, { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"expired">; requestId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; }, { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; requestId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; }, { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; }>]>>; answerId: z.ZodOptional; answerRead: z.ZodOptional; parentQuestionId: z.ZodOptional; repository: z.ZodOptional; machineId: z.ZodOptional; commonDirectory: z.ZodOptional; }, "strict", z.ZodTypeAny, { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; }, { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; }>>; worktree: z.ZodOptional>; feature: z.ZodOptional; }, "strict", z.ZodTypeAny, { featureId: string; name?: string | undefined; }, { featureId: string; name?: string | undefined; }>>; }, "strict", z.ZodTypeAny, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; images: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[]; revision: number; ownerRevision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; revision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; ownerRevision?: number | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }>, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; images: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[]; revision: number; ownerRevision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; revision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; ownerRevision?: number | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }>; session: z.ZodObject<{ sessionId: z.ZodString; title: z.ZodOptional; cwd: z.ZodString; branch: z.ZodOptional; worktreePath: z.ZodOptional; machine: z.ZodObject<{ machineId: z.ZodString; machineName: z.ZodString; hostname: z.ZodString; }, "strip", z.ZodTypeAny, { machineId: string; hostname: string; machineName: string; }, { machineId: string; hostname: string; machineName: string; }>; project: z.ZodObject<{ projectId: z.ZodString; projectName: z.ZodString; projectDetectedName: z.ZodOptional; projectDescription: z.ZodOptional; cwd: z.ZodString; gitRoot: z.ZodOptional; repoName: z.ZodOptional; branch: z.ZodOptional; headSha: z.ZodOptional; isDirty: z.ZodOptional; worktreePath: z.ZodOptional; icon: z.ZodOptional>; sizeBytes: z.ZodOptional; }, "strip", z.ZodTypeAny, { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; }, { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }, { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }>; }, "strip", z.ZodTypeAny, { cwd: string; sessionId: string; machine: { machineId: string; hostname: string; machineName: string; }; project: { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }; branch?: string | undefined; worktreePath?: string | undefined; title?: string | undefined; }, { cwd: string; sessionId: string; machine: { machineId: string; hostname: string; machineName: string; }; project: { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }; branch?: string | undefined; worktreePath?: string | undefined; title?: string | undefined; }>; }, "strip", z.ZodTypeAny, { session: { cwd: string; sessionId: string; machine: { machineId: string; hostname: string; machineName: string; }; project: { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }; branch?: string | undefined; worktreePath?: string | undefined; title?: string | undefined; }; request: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; images: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[]; revision: number; ownerRevision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }; }, { session: { cwd: string; sessionId: string; machine: { machineId: string; hostname: string; machineName: string; }; project: { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }; branch?: string | undefined; worktreePath?: string | undefined; title?: string | undefined; }; request: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; revision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; ownerRevision?: number | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }; }>; export declare const HistoryResponseSchema: z.ZodObject<{ history: z.ZodArray; creator: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; owner: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; mode: z.ZodEnum<["single", "multi"]>; question: z.ZodObject<{ prompt: z.ZodString; ambiguity: z.ZodOptional; }, "strip", z.ZodTypeAny, { prompt: string; ambiguity?: string | undefined; }, { prompt: string; ambiguity?: string | undefined; }>; options: z.ZodArray; impact: z.ZodOptional; } & { provenance: z.ZodOptional>; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }>, "many">; images: z.ZodDefault; caption: z.ZodOptional; imageId: z.ZodString; mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/webp"]>; byteSize: z.ZodNumber; width: z.ZodNumber; height: z.ZodNumber; }, "strict", z.ZodTypeAny, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, "many">>; forkReference: z.ZodOptional; agentSessionPath: z.ZodOptional; leafId: z.ZodOptional; cwd: z.ZodOptional; model: z.ZodOptional; }, "strip", z.ZodTypeAny, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }>>; status: z.ZodEnum<["pending", "answered", "cancelled", "expired", "superseded"]>; createdAt: z.ZodString; expiresAt: z.ZodOptional; resolvedAt: z.ZodOptional; result: z.ZodOptional; requestId: z.ZodString; selectedValues: z.ZodArray; note: z.ZodOptional; affectedDescendantIds: z.ZodOptional>; descendantGuidance: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; }, { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"cancelled">; requestId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; }, { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"expired">; requestId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; }, { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; requestId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; }, { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; }>]>>; answerId: z.ZodOptional; answerRead: z.ZodOptional; parentQuestionId: z.ZodOptional; repository: z.ZodOptional; machineId: z.ZodOptional; commonDirectory: z.ZodOptional; }, "strict", z.ZodTypeAny, { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; }, { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; }>>; worktree: z.ZodOptional>; feature: z.ZodOptional; }, "strict", z.ZodTypeAny, { featureId: string; name?: string | undefined; }, { featureId: string; name?: string | undefined; }>>; }, "strict", z.ZodTypeAny, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; images: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[]; revision: number; ownerRevision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; revision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; ownerRevision?: number | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }>, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; images: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[]; revision: number; ownerRevision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; revision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; ownerRevision?: number | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }>; session: z.ZodObject<{ sessionId: z.ZodString; title: z.ZodOptional; cwd: z.ZodString; branch: z.ZodOptional; worktreePath: z.ZodOptional; machine: z.ZodObject<{ machineId: z.ZodString; machineName: z.ZodString; hostname: z.ZodString; }, "strip", z.ZodTypeAny, { machineId: string; hostname: string; machineName: string; }, { machineId: string; hostname: string; machineName: string; }>; project: z.ZodObject<{ projectId: z.ZodString; projectName: z.ZodString; projectDetectedName: z.ZodOptional; projectDescription: z.ZodOptional; cwd: z.ZodString; gitRoot: z.ZodOptional; repoName: z.ZodOptional; branch: z.ZodOptional; headSha: z.ZodOptional; isDirty: z.ZodOptional; worktreePath: z.ZodOptional; icon: z.ZodOptional>; sizeBytes: z.ZodOptional; }, "strip", z.ZodTypeAny, { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; }, { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }, { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }>; }, "strip", z.ZodTypeAny, { cwd: string; sessionId: string; machine: { machineId: string; hostname: string; machineName: string; }; project: { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }; branch?: string | undefined; worktreePath?: string | undefined; title?: string | undefined; }, { cwd: string; sessionId: string; machine: { machineId: string; hostname: string; machineName: string; }; project: { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }; branch?: string | undefined; worktreePath?: string | undefined; title?: string | undefined; }>; }, "strip", z.ZodTypeAny, { session: { cwd: string; sessionId: string; machine: { machineId: string; hostname: string; machineName: string; }; project: { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }; branch?: string | undefined; worktreePath?: string | undefined; title?: string | undefined; }; request: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; images: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[]; revision: number; ownerRevision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }; }, { session: { cwd: string; sessionId: string; machine: { machineId: string; hostname: string; machineName: string; }; project: { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }; branch?: string | undefined; worktreePath?: string | undefined; title?: string | undefined; }; request: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; revision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; ownerRevision?: number | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }; }>, "many">; timestamp: z.ZodString; }, "strip", z.ZodTypeAny, { timestamp: string; history: { session: { cwd: string; sessionId: string; machine: { machineId: string; hostname: string; machineName: string; }; project: { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }; branch?: string | undefined; worktreePath?: string | undefined; title?: string | undefined; }; request: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; images: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[]; revision: number; ownerRevision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }; }[]; }, { timestamp: string; history: { session: { cwd: string; sessionId: string; machine: { machineId: string; hostname: string; machineName: string; }; project: { cwd: string; projectId: string; projectName: string; gitRoot?: string | undefined; repoName?: string | undefined; branch?: string | undefined; headSha?: string | undefined; isDirty?: boolean | undefined; worktreePath?: string | undefined; icon?: { hash: string; dataUrl: string; mediaType?: "image/jpeg" | "image/png" | "image/webp" | "image/svg+xml" | "image/gif" | undefined; sizeBytes?: number | undefined; } | undefined; projectDetectedName?: string | undefined; projectDescription?: string | undefined; }; branch?: string | undefined; worktreePath?: string | undefined; title?: string | undefined; }; request: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; revision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; ownerRevision?: number | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }; }[]; }>; export type HistorySessionMetadata = z.infer; export type HistoryRecord = z.infer; export type HistoryResponse = z.infer; //# sourceMappingURL=history.d.ts.map