import { z } from "zod"; import { type Database } from "./database.js"; declare const Identity: z.ZodObject<{ accountId: z.ZodUUID; workspaceId: z.ZodUUID; documentId: z.ZodUUID; fileId: z.ZodUUID; }, z.core.$strip>; /** Internal adapter for an existing, authorized Document indexing obligation. * No public tool receives the lease or can construct this processing actor. */ export declare function claimKnowledgeDocumentPreparation(db: Database, input: z.infer): Promise<{ status: "prepare"; entryId: string; leaseId: string; fileId: string; file: { scope?: "personal" | "workspace" | undefined; ownerSubjectId?: string | null | undefined; reachWorkspaceIds?: string[] | null | undefined; id: string; workspaceId: string; status: "deleted" | "expired" | "failed" | "pending_upload" | "ready"; filename: string; safeFilename: string; contentType: string; sizeBytes: number; sha256: string | null; bucket: string; objectKey: string; createdAt: string; updatedAt: string; access?: { visibility: "private" | "workspace"; whoCanOpen: string; } | undefined; appShot?: { app: string; bundleId?: string | undefined; title: string; capturedAt: string; platform: "linux" | "macos" | "windows"; text?: string | undefined; textTruncated?: boolean | undefined; window?: { processId: number; windowId: number; } | undefined; computer?: { name: string; sandboxId?: string | undefined; } | undefined; browser?: { url: string; profiles?: { deviceId: string; name: string; }[] | undefined; } | undefined; } | undefined; }; } | { status: "disabled"; fileId: string; }>; export declare function completeKnowledgeDocumentPreparation(db: Database, input: z.infer & { leaseId: string; title: string; content: string; sourceVersion: string; }): Promise<{ status: "retained"; receipt: { operationId: string; entryId: string; revisionId: string; version: number; outcome: "archived" | "pending" | "published" | "rejected"; reviewBatchId: string | null; replayed: boolean; }; } | { status: "unchanged"; entryId: string; revisionId: string; }>; export {};