import type { AgentChatAttachment } from "../agent/types.js"; import { type OwnedAttachmentHydrationBudget, type OwnedAttachmentReadFailure } from "./owned-attachment.js"; export interface PreUploadedImageAttachment { name?: string; url: string; provider: string; contentType?: string; } export interface PreUploadedFileAttachment { name?: string; url: string; provider: string; contentType?: string; sizeBytes?: number; referenceOnly?: boolean; securityNote?: string; } export interface PreUploadAttachmentsResult { attachments: AgentChatAttachment[]; uploaded: PreUploadedImageAttachment[]; uploadedFiles: PreUploadedFileAttachment[]; readFailures: OwnedAttachmentReadFailure[]; providerMissing: boolean; uploadFailed: boolean; readableWithoutStorage: string[]; uploadError?: string; injectedText: string | null; } export declare function isFileUploadProviderConfigured(): boolean; export declare function preUploadImageAttachments(opts: { attachments: AgentChatAttachment[] | undefined; ownerEmail: string | null | undefined; }): Promise; export declare function preUploadAttachments(opts: { attachments: AgentChatAttachment[] | undefined; ownerEmail: string | null | undefined; includeFiles?: boolean; hydrationBudget?: OwnedAttachmentHydrationBudget; }): Promise;