import { BaseClient } from "../client"; import { type OpBody } from "../openapi"; export declare class Documents extends BaseClient { /** * Retrieve a document by its ID * @param documentId The ID of the document to retrieve * @returns The document */ retrieve(documentId: string): Promise<{ id: string; projectId: string; name: string; description: string; preview?: string; contentType: string; status: "pending" | "downloaded" | "converted" | "error"; error?: string; bucket: string; prefix: string; remote: import("../openapi").components["schemas"]["RemoteDocumentDescriptor"]; representations: import("../openapi").components["schemas"]["Representation"][]; updatedBy: string; updatedAt: string; createdBy: string; createdAt: string; parses: import("../openapi").components["schemas"]["ParseWithSchema"][]; }>; /** * Download a given representation of a document * @param documentId The ID of the document to download * @returns An object containing the pre-signed URL to download the document */ download(documentId: string, kind: OpBody<"download-document">["kind"]): Promise<{ downloadURL: string; }>; }