Version: 0.0.0-internal-20241017.00.0.0-nightly-20230629.00.0.0-nightly-20230630.00.0.0-nightly-20230701.00.0.0-nightly-20230702.00.0.0-nightly-20230703.00.0.0-nightly-20230704.00.0.0-nightly-20230705.00.0.0-nightly-20230706.00.0.0-nightly-20230707.00.0.0-nightly-20230708.00.0.0-nightly-20230709.00.0.0-nightly-20230710.00.0.0-nightly-20230710.10.0.0-nightly-20230711.00.0.0-nightly-20230712.00.0.0-nightly-20230713.00.0.0-nightly-20230714.00.0.0-nightly-20230715.00.0.0-nightly-20230716.00.0.0-nightly-20230717.00.0.0-nightly-20230718.00.0.0-nightly-20230719.00.0.0-nightly-20230720.00.0.0-nightly-20230721.00.0.0-nightly-20230722.00.0.0-nightly-20230723.00.0.0-nightly-20230724.00.0.0-nightly-20230725.00.0.0-nightly-20230725.10.0.0-nightly-20230726.00.0.0-nightly-20230727.00.0.0-nightly-20230728.00.0.0-nightly-20230729.00.0.0-nightly-20230730.00.0.0-nightly-20230731.00.0.0-nightly-20230801.00.0.0-nightly-20230802.00.0.0-nightly-20230803.00.0.0-nightly-20230804.00.0.0-nightly-20230805.00.0.0-nightly-20230806.00.0.0-nightly-20230807.00.0.0-nightly-20230808.00.0.0-nightly-20230809.00.0.0-nightly-20230810.00.0.0-nightly-20230811.00.0.0-nightly-20230812.00.0.0-nightly-20230813.00.0.0-nightly-20230814.00.0.0-nightly-20230815.00.0.0-nightly-20230816.00.0.0-nightly-20230817.00.0.0-nightly-20230818.00.0.0-nightly-20230818.10.0.0-nightly-20230819.00.0.0-nightly-20230820.00.0.0-nightly-20230821.00.0.0-nightly-20230821.10.0.0-nightly-20230822.00.0.0-nightly-20230823.00.0.0-nightly-20230824.00.0.0-nightly-20230825.00.0.0-nightly-20230826.00.0.0-nightly-20230827.00.0.0-nightly-20230828.00.0.0-nightly-20230829.00.0.0-nightly-20230830.00.0.0-nightly-20230831.00.0.0-nightly-20230901.00.0.0-nightly-20230902.00.0.0-nightly-20230903.00.0.0-nightly-20230904.00.0.0-nightly-20230905.00.0.0-nightly-20230906.00.0.0-nightly-20230907.00.0.0-nightly-20230908.00.0.0-nightly-20230909.00.0.0-nightly-20230910.00.0.0-nightly-20230911.00.0.0-nightly-20230912.00.0.0-nightly-20230913.00.0.0-nightly-20230914.00.0.0-nightly-20230915.00.0.0-nightly-20230916.00.0.0-nightly-20230917.00.0.0-nightly-20230918.00.0.0-nightly-20230919.00.0.0-nightly-20230920.00.0.0-nightly-20230921.00.0.0-nightly-20230922.00.0.0-nightly-20230923.00.0.0-nightly-20230924.00.0.0-nightly-20230925.00.0.0-nightly-20230926.00.0.0-nightly-20230927.00.0.0-nightly-20230928.00.0.0-nightly-20230929.00.0.0-nightly-20230930.00.0.0-nightly-20231001.00.0.0-nightly-20231002.00.0.0-nightly-20231003.00.0.0-nightly-20231004.00.0.0-nightly-20231005.00.0.0-nightly-20231006.00.0.0-nightly-20231007.00.0.0-nightly-20231008.00.0.0-nightly-20231009.00.0.0-nightly-20231010.00.0.0-nightly-20231011.00.0.0-nightly-20231012.00.0.0-nightly-20231013.00.0.0-nightly-20231014.00.0.0-nightly-20231015.00.0.0-nightly-20231016.00.0.0-nightly-20231017.00.0.0-nightly-20231018.00.0.0-nightly-20231019.00.0.0-nightly-20231020.00.0.0-nightly-20231021.00.0.0-nightly-20231022.00.0.0-nightly-20231023.00.0.0-nightly-20231024.00.0.0-nightly-20231025.00.0.0-nightly-20231026.00.0.0-nightly-20231027.00.0.0-nightly-20231028.00.0.0-nightly-20231029.00.0.0-nightly-20231030.00.0.0-nightly-20231031.00.0.0-nightly-20231101.00.0.0-nightly-20231102.00.0.0-nightly-20231103.00.0.0-nightly-20231104.00.0.0-nightly-20231105.00.0.0-nightly-20231106.00.0.0-nightly-20231107.00.0.0-nightly-20231108.00.0.0-nightly-20231109.00.0.0-nightly-20231110.00.0.0-nightly-20231111.00.0.0-nightly-20231112.00.0.0-nightly-20231113.00.0.0-nightly-20231114.00.0.0-nightly-20231115.00.0.0-nightly-20231116.00.0.0-nightly-20231117.00.0.0-nightly-20231118.00.0.0-nightly-20231119.00.0.0-nightly-20231120.00.0.0-nightly-20231121.00.0.0-nightly-20231122.00.0.0-nightly-20231123.00.0.0-nightly-20231124.00.0.0-nightly-20231125.00.0.0-nightly-20231126.00.0.0-nightly-20231127.00.0.0-nightly-20231128.00.0.0-nightly-20231129.00.0.0-nightly-20231130.00.0.0-nightly-20231201.00.0.0-nightly-20231202.00.0.0-nightly-20231203.00.0.0-nightly-20231204.00.0.0-nightly-20231205.00.0.0-nightly-20231206.00.0.0-nightly-20231207.00.0.0-nightly-20231208.00.0.0-nightly-20231209.00.0.0-nightly-20231210.00.0.0-nightly-20231211.00.0.0-nightly-20231212.00.0.0-nightly-20231213.00.0.0-nightly-20231214.00.0.0-nightly-20231215.00.0.0-nightly-20231216.00.0.0-nightly-20231217.00.0.0-nightly-20231218.00.0.0-nightly-20231219.00.0.0-nightly-20231220.00.0.0-nightly-20231221.00.0.0-nightly-20231222.00.0.0-nightly-20231223.00.0.0-nightly-20231224.00.0.0-nightly-20231225.00.0.0-nightly-20231226.00.0.0-nightly-20231227.00.0.0-nightly-20231228.00.0.0-nightly-20231229.00.0.0-nightly-20231230.00.0.0-nightly-20231231.00.0.0-nightly-20240101.00.0.0-nightly-20240102.00.0.0-nightly-20240103.00.0.0-nightly-20240104.00.0.0-nightly-20240105.00.0.0-nightly-20240106.00.0.0-nightly-20240107.00.0.0-nightly-20240108.00.0.0-nightly-20240109.00.0.0-nightly-20240110.00.0.0-nightly-20240111.00.0.0-nightly-20240112.00.0.0-nightly-20240113.00.0.0-nightly-20240114.00.0.0-nightly-20240115.00.0.0-nightly-20240116.00.0.0-nightly-20240117.00.0.0-nightly-20240118.00.0.0-nightly-20240119.00.0.0-nightly-20240120.00.0.0-nightly-20240121.00.0.0-nightly-20240122.00.0.0-nightly-20240123.00.0.0-nightly-20240124.00.0.0-nightly-20240125.00.0.0-nightly-20240126.00.0.0-nightly-20240127.00.0.0-nightly-20240128.00.0.0-nightly-20240129.00.0.0-nightly-20240130.00.0.0-nightly-20240131.00.0.0-nightly-20240201.00.0.0-nightly-20240202.00.0.0-nightly-20240203.00.0.0-nightly-20240204.00.0.0-nightly-20240205.00.0.0-nightly-20240206.00.0.0-nightly-20240207.00.0.0-nightly-20240208.00.0.0-nightly-20240208.10.0.0-nightly-20240209.00.0.0-nightly-20240210.00.0.0-nightly-20240211.00.0.0-nightly-20240212.00.0.0-nightly-20240213.00.0.0-nightly-20240214.00.0.0-nightly-20240215.00.0.0-nightly-20240216.00.0.0-nightly-20240217.00.0.0-nightly-20240218.00.0.0-nightly-20240219.00.0.0-nightly-20240220.00.0.0-nightly-20240221.00.0.0-nightly-20240222.00.0.0-nightly-20240223.00.0.0-nightly-20240224.00.0.0-nightly-20240225.00.0.0-nightly-20240226.00.0.0-nightly-20240227.00.0.0-nightly-20240228.00.0.0-nightly-20240229.00.0.0-nightly-20240301.00.0.0-nightly-20240302.00.0.0-nightly-20240303.00.0.0-nightly-20240304.00.0.0-nightly-20240305.00.0.0-nightly-20240306.00.0.0-nightly-20240307.00.0.0-nightly-20240308.00.0.0-nightly-20240309.00.0.0-nightly-20240310.00.0.0-nightly-20240311.00.0.0-nightly-20240312.00.0.0-nightly-20240313.00.0.0-nightly-20240314.00.0.0-nightly-20240315.00.0.0-nightly-20240316.00.0.0-nightly-20240317.00.0.0-nightly-20240318.00.0.0-nightly-20240319.00.0.0-nightly-20240319.10.0.0-nightly-20240320.00.0.0-nightly-20240321.00.0.0-nightly-20240322.00.0.0-nightly-20240323.00.0.0-nightly-20240324.00.0.0-nightly-20240325.00.0.0-nightly-20240326.00.0.0-nightly-20240327.00.0.0-nightly-20240328.00.0.0-nightly-20240328.10.0.0-nightly-20240328.20.0.0-nightly-20240329.00.0.0-nightly-20240330.00.0.0-nightly-20240331.00.0.0-nightly-20240401.00.0.0-nightly-20240402.00.0.0-nightly-20240403.00.0.0-nightly-20240403.10.0.0-nightly-20240404.00.0.0-nightly-20240405.00.0.0-nightly-20240406.00.0.0-nightly-20240407.00.0.0-nightly-20240408.00.0.0-nightly-20240409.00.0.0-nightly-20240410.00.0.0-nightly-20240411.00.0.0-nightly-20240412.00.0.0-nightly-20240413.00.0.0-nightly-20240414.00.0.0-nightly-20240415.00.0.0-nightly-20240416.00.0.0-nightly-20240417.00.0.0-nightly-20240418.00.0.0-nightly-20240419.00.0.0-nightly-20240420.00.0.0-nightly-20240421.00.0.0-nightly-20240422.00.0.0-nightly-20240423.00.0.0-nightly-20240424.00.0.0-nightly-20240425.00.0.0-nightly-20240426.00.0.0-nightly-20240427.00.0.0-nightly-20240428.00.0.0-nightly-20240429.00.0.0-nightly-20240430.00.0.0-nightly-20240501.00.0.0-nightly-20240502.00.0.0-nightly-20240503.00.0.0-nightly-20240504.00.0.0-nightly-20240505.00.0.0-nightly-20240506.00.0.0-nightly-20240507.00.0.0-nightly-20240508.00.0.0-nightly-20240509.00.0.0-nightly-20240510.00.0.0-nightly-20240511.00.0.0-nightly-20240512.00.0.0-nightly-20240513.00.0.0-nightly-20240514.00.0.0-nightly-20240515.00.0.0-nightly-20240516.00.0.0-nightly-20240516.10.0.0-nightly-20240517.00.0.0-nightly-20240518.00.0.0-nightly-20240519.00.0.0-nightly-20240520.00.0.0-nightly-20240521.00.0.0-nightly-20240522.00.0.0-nightly-20240523.00.0.0-nightly-20240524.00.0.0-nightly-20240525.00.0.0-nightly-20240526.00.0.0-nightly-20240527.00.0.0-nightly-20240528.00.0.0-nightly-20240529.00.0.0-nightly-20240530.00.0.0-nightly-20240531.00.0.0-nightly-20240601.00.0.0-nightly-20240602.00.0.0-nightly-20240603.00.0.0-nightly-20240604.00.0.0-nightly-20240604.10.0.0-nightly-20240605.00.0.0-nightly-20240605.10.0.0-nightly-20240606.00.0.0-nightly-20240607.00.0.0-nightly-20240608.00.0.0-nightly-20240609.00.0.0-nightly-20240610.00.0.0-nightly-20240611.00.0.0-nightly-20240612.00.0.0-nightly-20240613.00.0.0-nightly-20240614.00.0.0-nightly-20240615.00.0.0-nightly-20240616.00.0.0-nightly-20240617.00.0.0-nightly-20240618.00.0.0-nightly-20240619.00.0.0-nightly-20240619.10.0.0-nightly-20240619.20.0.0-nightly-20240620.00.0.0-nightly-20240620.10.0.0-nightly-20240621.00.0.0-nightly-20240622.00.0.0-nightly-20240623.00.0.0-nightly-20240624.00.0.0-nightly-20240625.00.0.0-nightly-20240626.00.0.0-nightly-20240626.10.0.0-nightly-20240627.00.0.0-nightly-20240628.00.0.0-nightly-20240629.00.0.0-nightly-20240630.00.0.0-nightly-20240701.00.0.0-nightly-20240702.00.0.0-nightly-20240703.00.0.0-nightly-20240704.00.0.0-nightly-20240705.00.0.0-nightly-20240705.10.0.0-nightly-20240706.00.0.0-nightly-20240707.00.0.0-nightly-20240708.00.0.0-nightly-20240709.00.0.0-nightly-20240710.00.0.0-nightly-20240711.00.0.0-nightly-20240712.00.0.0-nightly-20240713.00.0.0-nightly-20240714.00.0.0-nightly-20240715.00.0.0-nightly-20240716.00.0.0-nightly-20240717.00.0.0-nightly-20240718.00.0.0-nightly-20240719.00.0.0-nightly-20240720.00.0.0-nightly-20240721.00.0.0-nightly-20240722.00.0.0-nightly-20240723.00.0.0-nightly-20240724.00.0.0-nightly-20240725.00.0.0-nightly-20240726.00.0.0-nightly-20240727.00.0.0-nightly-20240728.00.0.0-nightly-20240729.00.0.0-nightly-20240730.00.0.0-nightly-20240731.00.0.0-nightly-20240801.00.0.0-nightly-20240802.00.0.0-nightly-20240803.00.0.0-nightly-20240804.00.0.0-nightly-20240805.00.0.0-nightly-20240806.00.0.0-nightly-20240807.00.0.0-nightly-20240808.00.0.0-nightly-20240809.00.0.0-nightly-20240810.00.0.0-nightly-20240811.00.0.0-nightly-20240812.00.0.0-nightly-20240813.00.0.0-nightly-20240814.00.0.0-nightly-20240815.00.0.0-nightly-20240816.00.0.0-nightly-20240817.00.0.0-nightly-20240818.00.0.0-nightly-20240819.00.0.0-nightly-20240820.00.0.0-nightly-20240821.00.0.0-nightly-20240822.00.0.0-nightly-20240823.00.0.0-nightly-20240824.00.0.0-nightly-20240825.00.0.0-nightly-20240826.00.0.0-nightly-20240827.00.0.0-nightly-20240828.00.0.0-nightly-20240829.00.0.0-nightly-20240830.00.0.0-nightly-20240831.00.0.0-nightly-20240901.00.0.0-nightly-20240902.00.0.0-nightly-20240903.00.0.0-nightly-20240904.00.0.0-nightly-20240905.00.0.0-nightly-20240906.00.0.0-nightly-20240907.00.0.0-nightly-20240908.00.0.0-nightly-20240909.00.0.0-nightly-20240910.00.0.0-nightly-20240911.00.0.0-nightly-20240912.00.0.0-nightly-20240913.00.0.0-nightly-20240914.00.0.0-nightly-20240915.00.0.0-nightly-20240916.00.0.0-nightly-20240916.10.0.0-nightly-20240917.00.0.0-nightly-20240918.00.0.0-nightly-20240919.00.0.0-nightly-20240920.00.0.0-nightly-20240921.00.0.0-nightly-20240922.00.0.0-nightly-20240923.00.0.0-nightly-20240924.00.0.0-nightly-20240925.00.0.0-nightly-20240926.00.0.0-nightly-20240927.00.0.0-nightly-20240928.00.0.0-nightly-20240929.00.0.0-nightly-20240930.00.0.0-nightly-20241001.00.0.0-nightly-20241002.00.0.0-nightly-20241003.00.0.0-nightly-20241004.00.0.0-nightly-20241005.00.0.0-nightly-20241006.00.0.0-nightly-20241007.00.0.0-nightly-20241008.00.0.0-nightly-20241009.00.0.0-nightly-20241010.00.0.0-nightly-20241011.00.0.0-nightly-20241012.00.0.0-nightly-20241013.00.0.0-nightly-20241014.00.0.0-nightly-20241015.00.0.0-nightly-20241016.00.0.0-nightly-20241017.00.0.0-nightly-20241018.00.0.0-nightly-20241019.00.0.0-nightly-20241020.00.0.0-nightly-20241021.00.0.0-nightly-20241022.00.0.0-nightly-20241023.00.0.0-nightly-20241024.00.0.0-nightly-20241025.00.0.0-nightly-20241025.10.0.0-nightly-20241025.20.0.0-nightly-20241026.00.0.0-nightly-20241027.00.0.0-nightly-20241028.00.0.0-nightly-20241028.10.0.0-nightly-20241028.20.0.0-nightly-20241028.30.0.0-nightly-20241028.40.0.0-nightly-20241028.50.0.0-nightly-20241029.00.0.0-nightly-20241029.10.0.0-nightly-20241029.20.0.0-nightly-20241029.30.0.0-nightly-20241030.00.0.0-nightly-20241031.00.0.0-nightly-20241101.00.0.0-nightly-20241102.00.0.0-nightly-20241103.00.0.0-nightly-20241104.00.0.0-nightly-20241105.00.0.0-nightly-20241106.00.0.0-nightly-20241107.00.0.0-nightly-20241108.00.0.0-nightly-20241109.00.0.0-nightly-20241110.00.0.0-nightly-20241111.00.0.0-nightly-20241112.00.0.0-nightly-20241113.00.0.0-nightly-20241114.00.0.0-nightly-20241115.00.0.0-nightly-20241116.00.0.0-nightly-20241117.00.0.0-nightly-20241118.00.0.0-nightly-20241119.00.0.0-nightly-20241120.00.0.0-nightly-20241121.00.0.0-nightly-20241122.00.0.0-nightly-20241123.00.0.0-nightly-20241124.00.0.0-nightly-20241125.00.0.0-nightly-20241126.00.0.0-nightly-20241127.00.0.0-nightly-20241128.00.0.0-nightly-20241129.00.0.0-nightly-20241130.00.0.0-nightly-20241201.00.0.0-nightly-20241202.00.0.0-nightly-20241203.00.0.0-nightly-20241204.00.2.00.3.00.4.00.5.00.6.00.7.01.0.0-alpha.11.0.0-alpha.21.0.0-beta.11.0.0-beta.21.0.0-beta.410.0.010.1.010.2.011.0.012.0.013.0.013.0.113.1.013.1.113.1.214.0.015.0.016.0.017.0.018.0.019.0.019.0.120.0.021.0.022.0.023.0.023.1.024.0.025.0.026.0.027.0.027.1.028.0.029.0.029.1.029.2.030.0.031.0.031.1.032.0.033.0.034.0.034.1.034.2.035.0.035.0.135.1.035.2.035.2.135.3.035.3.135.3.235.4.036.0.036.0.137.0.0-alpha.037.0.0-alpha.137.0.0-alpha.237.0.0-alpha.337.0.0-rc.037.0.037.0.137.1.038.0.0-rc.038.0.0-rc.138.0.038.0.138.1.038.1.138.2.0-alpha.038.2.0-alpha.139.0.039.0.139.0.240.0.040.1.040.2.041.0.041.1.041.2.041.2.141.3.0-alpha.041.3.0-alpha.141.3.0-alpha.241.3.0-alpha.341.3.0-alpha.441.3.041.3.141.3.241.4.0-alpha.041.4.041.4.141.4.242.0.0-alpha.042.0.0-alpha.142.0.0-alpha.242.0.0-alpha.342.0.0-alpha.442.0.0-alpha.542.0.0-alpha.642.0.0-alpha.742.0.0-alpha.842.0.0-alpha.942.0.0-alpha.1042.0.0-alpha.1142.0.0-alpha.1242.0.0-alpha.1342.0.0-alpha.1442.0.0-alpha.1542.0.0-alpha.1642.0.0-alpha.1742.0.0-alpha.1842.0.0-alpha.1942.0.0-alpha.2042.0.0-alpha.2142.0.0-alpha.2242.0.0-alpha.2342.0.0-alpha.2442.0.042.0.1-alpha.042.0.1-alpha.142.0.1-alpha.242.0.1-alpha.342.0.142.0.2-alpha.042.0.2-alpha.142.0.2-alpha.242.0.243.0.0-alpha.043.0.0-alpha.143.0.0-alpha.243.0.0-alpha.343.0.0-alpha.443.0.0-alpha.543.0.0-alpha.643.0.043.1.0-alpha.043.1.0-alpha.143.1.0-alpha.243.1.0-alpha.343.1.0-alpha.443.1.0-alpha.543.1.0-alpha.643.1.0-alpha.743.1.0-alpha.843.1.043.1.143.2.0-alpha.043.2.0-alpha.143.2.0-alpha.243.2.0-alpha.343.2.0-alpha.443.2.0-alpha.543.2.0-alpha.643.2.0-alpha.743.2.043.3.0-alpha.043.3.0-alpha.143.3.0-alpha.243.3.0-alpha.343.3.0-alpha.443.3.0-alpha.543.3.0-alpha.643.3.0-alpha.743.3.0-alpha.843.3.0-alpha.943.3.0-alpha.1043.3.0-alpha.1143.3.0-alpha.1243.3.043.3.1-alpha.043.3.144.0.0-alpha.044.0.0-alpha.144.0.0-alpha.244.0.0-alpha.344.0.0-alpha.444.0.0-alpha.544.0.0-alpha.644.0.0-alpha.744.0.0-alpha.844.0.0-alpha.944.0.0-alpha.1044.0.0-alpha.1144.0.0-alpha.1244.0.0
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
* @module image/imageupload/utils
import type { ViewElement } from 'ckeditor5/src/engine.js';
import type ImageUtils from '../imageutils.js';
* Creates a regular expression used to test for image files.
*
* ```ts
* const imageType = createImageTypeRegExp( [ 'png', 'jpeg', 'svg+xml', 'vnd.microsoft.icon' ] );
* console.log( 'is supported image', imageType.test( file.type ) );
* ```
export declare function createImageTypeRegExp(types: Array<string>): RegExp;
* Creates a promise that fetches the image local source (Base64 or blob) and resolves with a `File` object.
* @param image Image whose source to fetch.
* @returns A promise which resolves when an image source is fetched and converted to a `File` instance.
* It resolves with a `File` object. If there were any errors during file processing, the promise will be rejected.
export declare function fetchLocalImage(image: ViewElement): Promise<File>;
* Checks whether a given node is an image element with a local source (Base64 or blob).
* @param node The node to check.
export declare function isLocalImage(imageUtils: ImageUtils, node: ViewElement): boolean;