import type { Nullable, UploadNamespaceObjectRequest } from "instill-sdk"; /** * Optional object info to confirm upload after MinIO upload completes. * When provided, the hook will call updateObject to mark the object as uploaded. */ interface ObjectConfirmInfo { /** Namespace ID (e.g., "my-namespace") */ namespaceId: string; /** Object ID (e.g., "obj-abc123") - extracted from object.name */ objectId: string; /** File size in bytes */ size?: number; /** MIME content type */ contentType?: string; } export declare function useUploadNamespaceObject(): import("@tanstack/react-query").UseMutationResult; /** * Share link token for public resource access. * Note: The actual upload goes to a presigned URL, so this token * is not needed for the upload itself, but kept for API consistency. */ shareToken?: string; /** * Optional object info to confirm upload after MinIO upload completes. * When provided, calls updateObject to mark is_uploaded=true in the database. * This ensures the object record is correctly marked as uploaded. */ confirmUpload?: ObjectConfirmInfo; }, unknown>; export {}; //# sourceMappingURL=useUploadNamespaceObject.d.ts.map