// packages/editor/src/utils/media-finalize/index.js
import apiFetch from "@wordpress/api-fetch";
async function mediaFinalize(id, subSizes = []) {
  await apiFetch({
    path: `/wp/v2/media/${id}/finalize`,
    method: "POST",
    data: { sub_sizes: subSizes }
  });
}
export {
  mediaFinalize as default
};
//# sourceMappingURL=index.mjs.map
