import "../../../../../options-B5K8QEV1.mjs"; import "../../../../../types-BCOU_CXE.mjs"; import "../../../../../types-XJPFqvc1.mjs"; import "../../../../../authz-cKSuylYa.mjs"; import "../../../../../index-HRJ8DhHY.mjs"; import "../../../../../runner-Bnq68jCZ.mjs"; import "../../../../../index-BFUET8yL.mjs"; import "../../../../../types-C2avdenh.mjs"; import "../../../../../hreflang-BktsQIF_.mjs"; import "../../../../../validate-3945fzPI.mjs"; import { EmDashHandlers } from "../../../../types.mjs"; import { AttachmentInfo } from "./analyze.mjs"; import { APIRoute } from "astro"; //#region src/astro/routes/api/import/wordpress/media.d.ts declare const prerender = false; /** Progress update sent during streaming */ interface MediaImportProgress { type: "progress"; current: number; total: number; filename?: string; status: "downloading" | "uploading" | "done" | "skipped" | "failed"; error?: string; } /** Final result sent at end of stream */ interface MediaImportResult { type?: "result"; /** Successfully imported items */ imported: Array<{ wpId?: number; originalUrl: string; newUrl: string; mediaId: string; }>; /** Failed items */ failed: Array<{ wpId?: number; originalUrl: string; error: string; }>; /** Map of old URLs to new URLs (for content rewriting) */ urlMap: Record; } declare const POST: APIRoute; declare function importMediaWithProgress(attachments: AttachmentInfo[], db: NonNullable, storage: NonNullable, onProgress: (progress: MediaImportProgress) => void): Promise; //#endregion export { MediaImportProgress, MediaImportResult, POST, importMediaWithProgress, prerender }; //# sourceMappingURL=media.d.mts.map