@pixerate/editor 0.114.0 → 0.116.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/THIRD_PARTY_NOTICES.md +6 -0
  2. package/dist/animation-editor/index.cjs +54 -54
  3. package/dist/animation-editor/index.d.cts +2 -2
  4. package/dist/animation-editor/index.d.ts +2 -2
  5. package/dist/animation-editor/index.js +2 -2
  6. package/dist/{chunk-DFQEX3AM.cjs → chunk-2UT4GXYA.cjs} +133 -8
  7. package/dist/chunk-2UT4GXYA.cjs.map +1 -0
  8. package/dist/{chunk-VXR7XWMF.js → chunk-7LNZAWSJ.js} +437 -41
  9. package/dist/chunk-7LNZAWSJ.js.map +1 -0
  10. package/dist/{chunk-LKCYANMW.js → chunk-ARQ7PQ6Q.js} +129 -4
  11. package/dist/chunk-ARQ7PQ6Q.js.map +1 -0
  12. package/dist/chunk-COAMRKVI.cjs +159 -0
  13. package/dist/chunk-COAMRKVI.cjs.map +1 -0
  14. package/dist/{chunk-C6C5PDKU.js → chunk-D53KSJUV.js} +3 -322
  15. package/dist/chunk-D53KSJUV.js.map +1 -0
  16. package/dist/chunk-D53VQGEJ.js +3262 -0
  17. package/dist/chunk-D53VQGEJ.js.map +1 -0
  18. package/dist/chunk-EJVDBITD.cjs +501 -0
  19. package/dist/chunk-EJVDBITD.cjs.map +1 -0
  20. package/dist/{chunk-LPLCWZTM.cjs → chunk-FODKPD44.cjs} +555 -159
  21. package/dist/chunk-FODKPD44.cjs.map +1 -0
  22. package/dist/chunk-HOCPSFGA.cjs +3262 -0
  23. package/dist/chunk-HOCPSFGA.cjs.map +1 -0
  24. package/dist/chunk-IPFRWILU.js +1908 -0
  25. package/dist/chunk-IPFRWILU.js.map +1 -0
  26. package/dist/{chunk-FV5AXTSF.cjs → chunk-JSSBHMMU.cjs} +36 -188
  27. package/dist/chunk-JSSBHMMU.cjs.map +1 -0
  28. package/dist/chunk-LF4WOZXZ.js +159 -0
  29. package/dist/chunk-LF4WOZXZ.js.map +1 -0
  30. package/dist/{chunk-26PGXHY7.cjs → chunk-M7O4BJRH.cjs} +36 -36
  31. package/dist/{chunk-26PGXHY7.cjs.map → chunk-M7O4BJRH.cjs.map} +1 -1
  32. package/dist/chunk-N3467VD6.js +501 -0
  33. package/dist/chunk-N3467VD6.js.map +1 -0
  34. package/dist/{chunk-ST7E3NEE.cjs → chunk-PAOWHJ5O.cjs} +18 -337
  35. package/dist/chunk-PAOWHJ5O.cjs.map +1 -0
  36. package/dist/{chunk-EUVSQ25B.js → chunk-SEBYNBHW.js} +85 -46
  37. package/dist/chunk-SEBYNBHW.js.map +1 -0
  38. package/dist/chunk-SMJGE7HM.cjs +1908 -0
  39. package/dist/chunk-SMJGE7HM.cjs.map +1 -0
  40. package/dist/{chunk-MMVHBKMM.js → chunk-T2P5TIZ6.js} +2 -2
  41. package/dist/{chunk-FGW5OWJ4.js → chunk-VJUML33I.js} +4 -156
  42. package/dist/chunk-VJUML33I.js.map +1 -0
  43. package/dist/{chunk-5OVJHMZQ.cjs → chunk-ZYZGEILO.cjs} +332 -293
  44. package/dist/chunk-ZYZGEILO.cjs.map +1 -0
  45. package/dist/export/index.cjs +4 -2
  46. package/dist/export/index.cjs.map +1 -1
  47. package/dist/export/index.js +5 -3
  48. package/dist/{export-b6NjCZ5-.d.cts → export-BXxSGBCq.d.cts} +67 -5
  49. package/dist/{export-_1dUKwpF.d.ts → export-Dm44YUvS.d.ts} +67 -5
  50. package/dist/export-Dv0-ZVrV.d.cts +501 -0
  51. package/dist/export-Dv0-ZVrV.d.ts +501 -0
  52. package/dist/{retouch-Do6tBs2H.d.ts → flow-BMtHAmg4.d.ts} +561 -2
  53. package/dist/{retouch-Bxkuc0KH.d.cts → flow-COCB42TP.d.cts} +561 -2
  54. package/dist/image-editor/index.cjs +1227 -934
  55. package/dist/image-editor/index.cjs.map +1 -1
  56. package/dist/image-editor/index.d.cts +18 -10
  57. package/dist/image-editor/index.d.ts +18 -10
  58. package/dist/image-editor/index.js +324 -31
  59. package/dist/image-editor/index.js.map +1 -1
  60. package/dist/index.cjs +4 -2
  61. package/dist/index.cjs.map +1 -1
  62. package/dist/index.js +5 -3
  63. package/dist/index.js.map +1 -1
  64. package/dist/kernel-wasm-WYCGNZR4.js +10 -0
  65. package/dist/kernel-wasm-WYCGNZR4.js.map +1 -0
  66. package/dist/kernel-wasm-YPVAEMVN.cjs +10 -0
  67. package/dist/kernel-wasm-YPVAEMVN.cjs.map +1 -0
  68. package/dist/paint/index.cjs +165 -3
  69. package/dist/paint/index.cjs.map +1 -1
  70. package/dist/paint/index.d.cts +225 -3
  71. package/dist/paint/index.d.ts +225 -3
  72. package/dist/paint/index.js +166 -4
  73. package/dist/paint-editor/index.cjs +4691 -845
  74. package/dist/paint-editor/index.cjs.map +1 -1
  75. package/dist/paint-editor/index.d.cts +1525 -277
  76. package/dist/paint-editor/index.d.ts +1525 -277
  77. package/dist/paint-editor/index.js +4561 -715
  78. package/dist/paint-editor/index.js.map +1 -1
  79. package/dist/raster/index.cjs +4 -3
  80. package/dist/raster/index.cjs.map +1 -1
  81. package/dist/raster/index.js +10 -9
  82. package/dist/{svg-BnRj0q8i.d.cts → svg-CVdFc80-.d.cts} +2 -2
  83. package/dist/{svg-CmmBFfGT.d.ts → svg-DlEuhwoX.d.ts} +2 -2
  84. package/dist/{types-1SUQKDAw.d.ts → types-CDLGhAZp.d.ts} +40 -2
  85. package/dist/{types-yINF17Ta.d.cts → types-Tfly4Aya.d.cts} +40 -2
  86. package/dist/vector/index.cjs +1897 -975
  87. package/dist/vector/index.cjs.map +1 -1
  88. package/dist/vector/index.d.cts +292 -32
  89. package/dist/vector/index.d.ts +292 -32
  90. package/dist/vector/index.js +928 -6
  91. package/dist/vector/index.js.map +1 -1
  92. package/dist/video-editor/index.cjs +502 -2165
  93. package/dist/video-editor/index.cjs.map +1 -1
  94. package/dist/video-editor/index.d.cts +3 -501
  95. package/dist/video-editor/index.d.ts +3 -501
  96. package/dist/video-editor/index.js +151 -1814
  97. package/dist/video-editor/index.js.map +1 -1
  98. package/package.json +4 -2
  99. package/skills/pixerate-image-editor/SKILL.md +1 -0
  100. package/skills/pixerate-image-editor/references/color-management.md +8 -3
  101. package/skills/pixerate-image-editor/references/photoshop-files.md +15 -9
  102. package/skills/pixerate-paint-editor/SKILL.md +136 -4
  103. package/skills/pixerate-vector/SKILL.md +22 -1
  104. package/dist/chunk-5OVJHMZQ.cjs.map +0 -1
  105. package/dist/chunk-C6C5PDKU.js.map +0 -1
  106. package/dist/chunk-DFQEX3AM.cjs.map +0 -1
  107. package/dist/chunk-EUVSQ25B.js.map +0 -1
  108. package/dist/chunk-FGW5OWJ4.js.map +0 -1
  109. package/dist/chunk-FV5AXTSF.cjs.map +0 -1
  110. package/dist/chunk-GX332W2C.js +0 -181
  111. package/dist/chunk-GX332W2C.js.map +0 -1
  112. package/dist/chunk-LKCYANMW.js.map +0 -1
  113. package/dist/chunk-LPLCWZTM.cjs.map +0 -1
  114. package/dist/chunk-MUUXNRU4.cjs +0 -181
  115. package/dist/chunk-MUUXNRU4.cjs.map +0 -1
  116. package/dist/chunk-ST7E3NEE.cjs.map +0 -1
  117. package/dist/chunk-TCKIXI46.cjs +0 -1136
  118. package/dist/chunk-TCKIXI46.cjs.map +0 -1
  119. package/dist/chunk-UBIXVXPR.js +0 -1136
  120. package/dist/chunk-UBIXVXPR.js.map +0 -1
  121. package/dist/chunk-VXR7XWMF.js.map +0 -1
  122. /package/dist/{chunk-MMVHBKMM.js.map → chunk-T2P5TIZ6.js.map} +0 -0
@@ -12,9 +12,11 @@
12
12
 
13
13
 
14
14
 
15
+ var _chunkJSSBHMMUcjs = require('../chunk-JSSBHMMU.cjs');
15
16
 
16
17
 
17
- var _chunkFV5AXTSFcjs = require('../chunk-FV5AXTSF.cjs');
18
+
19
+ var _chunkCOAMRKVIcjs = require('../chunk-COAMRKVI.cjs');
18
20
  require('../chunk-O6FO6VI3.cjs');
19
21
  require('../chunk-5PTR7HTL.cjs');
20
22
  require('../chunk-CKRNELPO.cjs');
@@ -35,5 +37,5 @@ require('../chunk-EMQWJA3G.cjs');
35
37
 
36
38
 
37
39
 
38
- exports.DOCX_ANONYMOUS_AUTHOR = _chunkFV5AXTSFcjs.DOCX_ANONYMOUS_AUTHOR; exports.DOCX_EXPORT_MIME_TYPE = _chunkFV5AXTSFcjs.DOCX_EXPORT_MIME_TYPE; exports.DocxExportController = _chunkFV5AXTSFcjs.DocxExportController; exports.XmlWriter = _chunkFV5AXTSFcjs.XmlWriter; exports.createDocxExportController = _chunkFV5AXTSFcjs.createDocxExportController; exports.createDocxParts = _chunkFV5AXTSFcjs.createDocxParts; exports.deflateRaw = _chunkFV5AXTSFcjs.deflateRaw; exports.docxFileName = _chunkFV5AXTSFcjs.docxFileName; exports.downloadBlob = _chunkFV5AXTSFcjs.downloadBlob; exports.escapeXmlAttr = _chunkFV5AXTSFcjs.escapeXmlAttr; exports.escapeXmlText = _chunkFV5AXTSFcjs.escapeXmlText; exports.exportDocx = _chunkFV5AXTSFcjs.exportDocx; exports.exportDocxBlob = _chunkFV5AXTSFcjs.exportDocxBlob; exports.stripInvalidXmlChars = _chunkFV5AXTSFcjs.stripInvalidXmlChars; exports.writeZip = _chunkFV5AXTSFcjs.writeZip;
40
+ exports.DOCX_ANONYMOUS_AUTHOR = _chunkJSSBHMMUcjs.DOCX_ANONYMOUS_AUTHOR; exports.DOCX_EXPORT_MIME_TYPE = _chunkJSSBHMMUcjs.DOCX_EXPORT_MIME_TYPE; exports.DocxExportController = _chunkJSSBHMMUcjs.DocxExportController; exports.XmlWriter = _chunkJSSBHMMUcjs.XmlWriter; exports.createDocxExportController = _chunkJSSBHMMUcjs.createDocxExportController; exports.createDocxParts = _chunkJSSBHMMUcjs.createDocxParts; exports.deflateRaw = _chunkCOAMRKVIcjs.deflateRaw; exports.docxFileName = _chunkJSSBHMMUcjs.docxFileName; exports.downloadBlob = _chunkJSSBHMMUcjs.downloadBlob; exports.escapeXmlAttr = _chunkJSSBHMMUcjs.escapeXmlAttr; exports.escapeXmlText = _chunkJSSBHMMUcjs.escapeXmlText; exports.exportDocx = _chunkJSSBHMMUcjs.exportDocx; exports.exportDocxBlob = _chunkJSSBHMMUcjs.exportDocxBlob; exports.stripInvalidXmlChars = _chunkJSSBHMMUcjs.stripInvalidXmlChars; exports.writeZip = _chunkCOAMRKVIcjs.writeZip;
39
41
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/export/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,g5BAAC","file":"/home/runner/work/editor/editor/packages/core/dist/export/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/export/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,g5BAAC","file":"/home/runner/work/editor/editor/packages/core/dist/export/index.cjs"}
@@ -5,16 +5,18 @@ import {
5
5
  XmlWriter,
6
6
  createDocxExportController,
7
7
  createDocxParts,
8
- deflateRaw,
9
8
  docxFileName,
10
9
  downloadBlob,
11
10
  escapeXmlAttr,
12
11
  escapeXmlText,
13
12
  exportDocx,
14
13
  exportDocxBlob,
15
- stripInvalidXmlChars,
14
+ stripInvalidXmlChars
15
+ } from "../chunk-VJUML33I.js";
16
+ import {
17
+ deflateRaw,
16
18
  writeZip
17
- } from "../chunk-FGW5OWJ4.js";
19
+ } from "../chunk-LF4WOZXZ.js";
18
20
  import "../chunk-AGGUNWT6.js";
19
21
  import "../chunk-2GFUA4X5.js";
20
22
  import "../chunk-633QC34G.js";
@@ -4,8 +4,8 @@ import { b as BuiltinProfileId, j as Intent, P as Profile, T as Transform, d as
4
4
  import { A as AffineMatrix, Q as Quad, a as WarpMesh, V as Vec2$1, H as Homography } from './types-CwMPoRMU.cjs';
5
5
  import { B as BezierPath } from './bezier-BfwIbVTl.cjs';
6
6
  import { b as TextRun, P as ParagraphRun, T as TextShaper, c as ParagraphStyle, d as TextStyle, L as LaidFragment, W as WarpPreset, e as TextLayout } from './warp-B39VsOtd.cjs';
7
- import { w as VectorSubpath, o as Vec2 } from './types-yINF17Ta.cjs';
8
- import { B as BrushSettings, M as MixerSettings, d as MixerLoad, f as RetouchSettings, g as StrokeCoverage, h as MixerTarget, i as MixerStroke, j as RetouchApply, c as StrokePoint, k as RetouchPaint, C as CoverageMap, P as PaintTileTarget, l as StrokeApply } from './retouch-Bxkuc0KH.cjs';
7
+ import { w as VectorSubpath, o as Vec2 } from './types-Tfly4Aya.cjs';
8
+ import { B as BrushSettings, M as MixerSettings, a as MixerLoad, R as RetouchSettings, S as StrokeCoverage, b as MixerTarget, c as MixerStroke, d as RetouchApply, e as StrokePoint, f as RetouchPaint, C as CoverageMap, P as PaintTileTarget, g as StrokeApply } from './flow-COCB42TP.cjs';
9
9
 
10
10
  /**
11
11
  * A selection: one 8-bit coverage value per image pixel (0 = not selected, 255 = fully
@@ -569,6 +569,32 @@ interface ProofSetup {
569
569
  gamutWarning: boolean;
570
570
  }
571
571
  declare const DEFAULT_PROOF: Omit<ProofSetup, 'profile'>;
572
+ /**
573
+ * Image › Mode beyond RGB. The document is still edited as RGB in its working space; the mode is
574
+ * what it is for: the viewport soft-proofs through the CMYK profile (unless Proof Setup says
575
+ * otherwise) and PSD export writes CMYK or Lab channels.
576
+ */
577
+ type DocumentColorMode = {
578
+ mode: 'cmyk';
579
+ profile: DocumentColorProfile;
580
+ intent: Intent;
581
+ } | {
582
+ mode: 'lab';
583
+ };
584
+ interface SerializedColorMode {
585
+ mode: 'cmyk' | 'lab';
586
+ profile?: SerializedColorProfile;
587
+ intent?: Intent;
588
+ }
589
+ declare function serializeColorMode(m: DocumentColorMode): SerializedColorMode;
590
+ declare function deserializeColorMode(raw: unknown, problems: string[]): DocumentColorMode | null;
591
+ /** The proof the viewport shows: Proof Setup, else a CMYK document's own profile. */
592
+ declare function effectiveProof(proof: ProofSetup | null | undefined, mode: DocumentColorMode | null | undefined): ProofSetup | null;
593
+ /**
594
+ * RGBA pixels (in the document profile `doc`) as the channel planes of `mode`, for a PSD:
595
+ * CMYK as Photoshop stores it (255 = no ink), Lab with L 0..255 for 0..100 and a, b offset by 128.
596
+ */
597
+ declare function colorModePlanes(doc: DocumentColorProfile | null | undefined, mode: DocumentColorMode): (rgba: Uint8ClampedArray, n: number) => Uint8Array[];
572
598
  /** The profile a document profile names (sRGB when missing). Throws `CmsError` for unreadable ICC bytes. */
573
599
  declare function resolveProfile(doc: DocumentColorProfile | null | undefined): Profile;
574
600
  /** The ICC bytes to embed for a document profile. */
@@ -921,6 +947,8 @@ interface SerializedLayeredImageEditorState {
921
947
  smartContents?: SerializedSmartContents[];
922
948
  /** The document's colour profile (missing = sRGB). */
923
949
  colorProfile?: SerializedColorProfile;
950
+ /** Image › Mode CMYK or Lab (missing = RGB). */
951
+ colorMode?: SerializedColorMode;
924
952
  /** Bits per channel (missing = 8). */
925
953
  bitDepth?: 16 | 32;
926
954
  }
@@ -1886,6 +1914,13 @@ interface PsdImportResult {
1886
1914
  };
1887
1915
  /** The embedded ICC profile (image resource 1039), raw bytes, when the file has one. */
1888
1916
  iccProfile?: Uint8Array;
1917
+ /** CMYK and Lab files: the mode (and CMYK profile) their pixels were converted from, to write them back. */
1918
+ sourceMode?: {
1919
+ mode: 'cmyk';
1920
+ profile: DocumentColorProfile;
1921
+ } | {
1922
+ mode: 'lab';
1923
+ };
1889
1924
  /** The bits per channel the layers keep: 16 or 32 for such files (not indexed or bitmap), else 8. */
1890
1925
  bitDepth: 8 | 16 | 32;
1891
1926
  }
@@ -2795,7 +2830,7 @@ declare class ImageEditorController {
2795
2830
  private pendingDirty;
2796
2831
  private notify;
2797
2832
  private displayFor;
2798
- /** Keeps the renderer's display transform in step with the document profile and Proof Setup. */
2833
+ /** Keeps the renderer's display transform in step with the document profile, mode and Proof Setup. */
2799
2834
  private syncDisplay;
2800
2835
  /** Recomputes the compatibility views (`adjustments`, `depthMask`, `annotations`) when the stack changed. */
2801
2836
  private syncViews;
@@ -3633,13 +3668,29 @@ declare class ImageEditorController {
3633
3668
  * step. Returns the layer id.
3634
3669
  */
3635
3670
  rasterizeLayer(id: string): Promise<string>;
3636
- /** The document's colour profile: its name, built-in id (or `null` for an embedded profile) and colour space. */
3671
+ /** The document's colour profile: its name, built-in id (or `null` for an embedded profile), colour space, and Image › Mode. */
3637
3672
  getColorProfile(): {
3638
3673
  name: string;
3639
3674
  builtin: BuiltinProfileId | null;
3640
3675
  colorSpace: ColorSpace;
3641
3676
  srgb: boolean;
3677
+ mode: 'rgb' | 'cmyk' | 'lab';
3678
+ cmykProfile?: {
3679
+ name: string;
3680
+ builtin: BuiltinProfileId | null;
3681
+ intent: Intent;
3682
+ };
3642
3683
  };
3684
+ /**
3685
+ * Image › Mode (one undo step): `rgb`, `cmyk` (with a CMYK `profile`, default the coated
3686
+ * CMYK, and the `intent` RGB is separated with) or `lab`. The pixels stay RGB in the working
3687
+ * space; a CMYK document is soft-proofed through its profile in the viewport, and PSD export
3688
+ * writes CMYK or Lab channels. Returns the profile summary.
3689
+ */
3690
+ setColorMode(mode: 'rgb' | 'cmyk' | 'lab', options?: {
3691
+ profile?: string | Uint8Array;
3692
+ intent?: Intent;
3693
+ }): ReturnType<ImageEditorController['getColorProfile']>;
3643
3694
  /** Resolves a profile argument (built-in id or alias, or ICC bytes) as an RGB document profile. */
3644
3695
  private rgbProfileArg;
3645
3696
  /**
@@ -3698,6 +3749,8 @@ declare class ImageEditorController {
3698
3749
  bitDepth: BitDepth;
3699
3750
  changedLayerIds: string[];
3700
3751
  };
3752
+ /** How `toPsd` writes colour: RGB with the working space, or CMYK / Lab channels for those modes. */
3753
+ private psdColorOptions;
3701
3754
  /** Pixels per inch of the last opened PSD (written back by `toPsd`). */
3702
3755
  private psdResolution;
3703
3756
  /**
@@ -4112,6 +4165,8 @@ interface ImageEditorState {
4112
4165
  colorProfile?: DocumentColorProfile;
4113
4166
  /** View › Proof Setup (view state): soft-proof the viewport through another profile, or `null`. */
4114
4167
  proofSetup?: ProofSetup | null;
4168
+ /** Image › Mode CMYK or Lab (missing: RGB): what the document is for (see `DocumentColorMode`). Recorded in history and saved. */
4169
+ colorMode?: DocumentColorMode;
4115
4170
  /**
4116
4171
  * Bits per channel of the document (Image › Mode): 8 (missing), 16 or 32 (linear float).
4117
4172
  * Pixel layers keep 16- or 32-bit samples where they have them (see `raster/deep`); the
@@ -4201,6 +4256,13 @@ interface PsdExportInput {
4201
4256
  patterns?: readonly EffectPattern[];
4202
4257
  /** Written as image resources 1037 and 1049. */
4203
4258
  globalLight?: GlobalLight;
4259
+ /**
4260
+ * The file's colour mode (default rgb). For cmyk and lab, `colorPlanes` turns RGBA pixels into
4261
+ * the mode's channel planes (CMYK as Photoshop stores it: 255 is no ink; Lab: L 0..255 for
4262
+ * 0..100, a and b offset by 128).
4263
+ */
4264
+ colorMode?: 'rgb' | 'cmyk' | 'lab';
4265
+ colorPlanes?: (rgba: Uint8ClampedArray, n: number) => Uint8Array[];
4204
4266
  /** The document's ICC profile, written as image resource 1039. */
4205
4267
  iccProfile?: Uint8Array;
4206
4268
  /** Bits per channel to write (default 8): 16 and 32 write the layers' deep samples (see `raster/deep`). */
@@ -4219,4 +4281,4 @@ interface PsdExportResult {
4219
4281
  /** Writes the prepared stack as PSD (or PSB) bytes. */
4220
4282
  declare function exportPsd(input: PsdExportInput): PsdExportResult;
4221
4283
 
4222
- export { type AdjustmentLayerBase as $, type AdjustmentKind as A, LayerCompositor as B, type CurvePoint as C, type DepthMaskOptions as D, type SmartFilterStack as E, type SmartFilter as F, type SmartObjectLayer as G, type HueRange as H, type ImageEditorAssetStore as I, type SmartContents as J, type SmartDocument as K, type LevelsChannel as L, type SmartPlacement as M, type FreeTransformGeometry as N, type LiveShapeKind as O, type PsdExportResult as P, type TypeLayerInfo as Q, type RefineEdgeParams as R, type SerializedLayer as S, type TextEnv as T, type LayerPlacement as U, type FreeTransformMode as V, type FreeTransformResult as W, FreeTransformSession as X, type FreeTransformInit as Y, type TransformAnchor as Z, type AIResultOptions as _, type ImageAdjustments as a, type LayerSourcesHost as a$, type AdjustmentLayerInit as a0, type AdjustmentLayerUpdate as a1, type AnnotationPlacement as a2, type AnnotationType as a3, type ArrowAnnotation as a4, type AspectRatio as a5, type BaseAnnotation as a6, type BlackWhiteParams as a7, type BlurFilter as a8, type CircleAnnotation as a9, type GroupLayer as aA, HISTOGRAM_BINS as aB, type HistogramChannel as aC, type HistoryEntryHandle as aD, type HueSaturationParams as aE, IMAGE_EDITOR_SCHEMA_VERSION as aF, type ImageAnnotation as aG, type ImageDimensions as aH, type ImageEditorAIHooks as aI, type ImageEditorFit as aJ, type ImageEditorOptions as aK, ImageEditorRenderer as aL, type ImageEditorState as aM, type ImageEditorTool as aN, type ImageLayerType as aO, type InpaintHook as aP, type InpaintOptions as aQ, type InvertParams as aR, LAYERED_SCHEMA_VERSION as aS, LIVE_SHAPE_KINDS as aT, type LayerBase as aU, type LayerBlendMode as aV, type LayerFilterKind as aW, type LayerLocation as aX, type LayerMaskProps as aY, LayerOperationError as aZ, type LayerProperties as a_, type CloneSource as aa, type ColorBalanceParams as ab, type ColorBalanceTone as ac, type ColorRangeOptions as ad, type ColorRangeSample as ae, type CreateAnnotationPayload as af, type CropHandle as ag, type CurvesParams as ah, DEFAULT_ADJUSTMENTS as ai, DEFAULT_DEPTH_MASK as aj, DEFAULT_MITER_LIMIT as ak, DEFAULT_PROOF as al, DEFAULT_REFINE_EDGE_PARAMS as am, DEFAULT_TRANSFORM as an, type DeserializeContext as ao, type DevelopSettings as ap, type DocumentColorProfile as aq, EMPTY_DISTANCE as ar, type ExportOptions as as, FREE_TRANSFORM_CONTENTS as at, FREE_TRANSFORM_MODES as au, type FillOptions as av, type FreeTransformContent as aw, type FreeTransformHost as ax, type FreeTransformPreview as ay, GUIDED_FILTER_EPS as az, type SerializedImageEditorState as b, type SerializedSmartObjectLayer as b$, type LayerTarget as b0, type LegacySerializedImageEditorState as b1, type LevelsParams as b2, type LineAnnotation as b3, type LiveShape as b4, type MagicWandOptions as b5, type MixerStrokeInit as b6, PARAGRAPH_STYLE_FIELDS as b7, PSD_BLEND_KEYS as b8, type PaintOptions as b9, type RemoveBackgroundOptions as bA, type RenderOptions as bB, type RetouchStrokeInit as bC, type RetouchTool as bD, SELECTION_MODES as bE, SELECTION_MODIFY_OPS as bF, SHAPE_OPERATIONS as bG, SHAPE_RENDER_MARGIN as bH, type SampleOptions as bI, type SelectionChannel as bJ, type SelectionCommandOptions as bK, type SelectionModifyOp as bL, type SerializeContext as bM, type SerializedAdjustmentLayer as bN, type SerializedAnnotationLayer as bO, type SerializedColorProfile as bP, type SerializedDeepPixels as bQ, type SerializedGroupLayer as bR, type SerializedLayerEffects as bS, type SerializedLayeredImageEditorState as bT, type SerializedPattern as bU, type SerializedPixelLayer as bV, type SerializedRasterMask as bW, type SerializedSelection as bX, type SerializedShapeLayer as bY, type SerializedSmartContents as bZ, type SerializedSmartFilter as b_, type PaintStrokeResult as ba, PaintStrokeSession as bb, type PenAnnotation as bc, type PhotoFilterParams as bd, type PixelBuffer as be, type PixelLayerInit as bf, type PixelTransform as bg, type PosterizeParams as bh, type ProofSetup as bi, type PsdChannel as bj, type PsdExportInput as bk, type PsdFile as bl, type PsdHeader as bm, type PsdImportOptions as bn, type PsdImportResult as bo, type PsdLayerMask as bp, type PsdLayerRecord as bq, type PsdLayerSummary as br, type PsdRect as bs, type PsdResource as bt, type PsdSmartFilter as bu, type PsdTaggedBlock as bv, type PsdTreeNode as bw, RETOUCH_TOOLS as bx, type RectAnnotation as by, type RemoveBackgroundHook as bz, type AdjustmentLayer as c, cornersFromMatrix as c$, type SerializedTypeLayer as c0, type ShapeArrowhead as c1, type ShapeComponent as c2, type ShapeEnv as c3, type ShapeFillRule as c4, type ShapeGeometryInput as c5, type ShapeLayerData as c6, type ShapeLayerInfo as c7, type ShapeLayerInit as c8, type ShapeLineCap as c9, type ViewportMetrics as cA, addLayerEffect as cB, addLayerFilter as cC, adjustmentNodeAsLayer as cD, anchorPoint as cE, annotationBlend as cF, annotationOfShape as cG, annotationOfType as cH, applyImageProjectionToContext as cI, applyParams as cJ, blurFilter as cK, borderCoverage as cL, boxMean as cM, boxPointOf as cN, buildLayerMaskPlanes as cO, calculateCropDrag as cP, canvasToImagePoint as cQ, clampCropToImage as cR, colorRange as cS, combineSelections as cT, componentPath as cU, compositeDeep as cV, computeHistogram as cW, computeSelectionBounds as cX, contractCoverage as cY, convertHex as cZ, convertSurfaceColors as c_, type ShapeLineJoin as ca, type ShapeOperation as cb, type ShapePaint as cc, type ShapePsdData as cd, type ShapeSelectionOptions as ce, type ShapeStroke as cf, type ShapeStrokeAlign as cg, type ShapeStrokeInput as ch, type SmartFilterKind as ci, type SmartObjectInfo as cj, type SmartPsdData as ck, type StrokeInit as cl, type StrokeTool as cm, TEXT_RENDER_MARGIN as cn, TEXT_STYLE_FIELDS as co, TONE_RANGE_PRESETS as cp, TRANSFORM_ANCHORS as cq, type TextAnnotation as cr, type TextLayerInit as cs, type ThresholdParams as ct, type ToneRangePreset as cu, type TransformParams as cv, type TransformReadout as cw, type TypeLayerData as cx, type TypePsdData as cy, type VibranceParams as cz, type AdjustmentParamsMap as d, isSelectionEmpty as d$, coverageToByte as d0, createSelectionMask as d1, createShapeLayer as d2, createTypeLayer as d3, decodeDeepSurface as d4, decodeLayerChannel as d5, decodeLayerMask as d6, decodeMergedImage as d7, decodePngDataUrl as d8, decodeSelectionRle as d9, geometryHomography as dA, getAnnotationBounds as dB, getCropCursor as dC, getRotatedSize as dD, getViewportMetrics as dE, getViewportProjection as dF, globalImageCache as dG, greyMorphology as dH, groupLayers as dI, guidePlanes as dJ, guidedFilterColor as dK, hasSurface as dL, hasWarp as dM, hashMaskContent as dN, histogramPath as dO, hitTestAnnotation as dP, hitTestCrop as dQ, hueRange as dR, identityTransform as dS, imageToCanvasPoint as dT, importPsd as dU, invertSelection as dV, isActiveFilter as dW, isIdentityTransform as dX, isQuarterTurnSwapped as dY, isRenderedLayer as dZ, isRetouchTool as d_, defaultShapeName as da, depthMaskAlpha as db, describeTransform as dc, deserializeColorProfile as dd, deserializeEffects as de, deserializeLayer as df, deserializeLayers as dg, deserializePatterns as dh, deserializeSelection as di, developFilter as dj, displayTransform as dk, distanceTransform as dl, documentProfile as dm, duplicateLayer as dn, edgeWidth as dp, ellipsePoints as dq, ellipseSelection as dr, encodeDeepSurface as ds, encodeSelectionRle as dt, encodeSurface as du, expandCoverage as dv, exportPsd as dw, featherCoverage as dx, flipCorners as dy, fullSelection as dz, type AdjustmentLayerMask as e, removeLayerFilter as e$, isSelectionMode as e0, isSpatialFilter as e1, isSrgb as e2, isTransformAnchor as e3, isValidWarp as e4, layerEffectsOf as e5, layerMaskCoverage as e6, layerMaskFromSelection as e7, layerMaskKey as e8, layerName as e9, offsetLayer as eA, offsetShape as eB, parseBlend as eC, parseColor as eD, parseSelectionMode as eE, patchParagraphStyle as eF, patchTextStyle as eG, pixelLayerBounds as eH, pixelLayers as eI, placeLayer as eJ, polygonCoverage as eK, polygonSelection as eL, presetWarp as eM, previewStep as eN, profileBytes as eO, projectImagePoint as eP, projectImageRect as eQ, projectMaskCoverage as eR, psdToLayers as eS, readPsd as eT, rectSelection as eU, referencePoint as eV, refineCoverage as eW, refineEdgeHalo as eX, refineSelection as eY, removeLayer as eZ, removeLayerEffect as e_, layerTree as ea, layerTypeLabel as eb, liveComponent as ec, liveShapeSubpaths as ed, magicWand as ee, mapCropHandle as ef, mapSubpaths as eg, matrixFromCorners as eh, matrixFromParams as ei, mergeShapeComponents as ej, migrateSerializedImageEditorState as ek, migrateToLayeredState as el, modifySelection as em, moveLayer as en, newLayerId as eo, normalizeAngle as ep, normalizeFilter as eq, normalizeLayerMask as er, normalizeLiveShape as es, normalizeRect as et, normalizeRefineEdgeParams as eu, normalizeShapePaint as ev, normalizeShapeStroke as ew, normalizeStoredAdjustments as ex, normalizeSubpaths as ey, normalizeText as ez, type AdjustmentLayerOf as f, updateLayerEffect as f$, renderShape as f0, renderShapeRect as f1, renderText as f2, replaceTextRange as f3, requireLayer as f4, requireOperation as f5, requireShapeLayer as f6, requireTypeLayer as f7, requireUnlocked as f8, rerenderShape as f9, shapeGeometryBounds as fA, shapeLayers as fB, shapeOutline as fC, shapeRenderClip as fD, shiftCoverage as fE, smartObjectLayers as fF, smoothCoverage as fG, srgb8ToLab as fH, textMatrix as fI, textOutlines as fJ, textRange as fK, toHex as fL, toTextSpace as fM, toneRange as fN, transformHomography as fO, transformMap as fP, transformShapeComponents as fQ, transformTypeLayer as fR, transformedBox as fS, transformedPoint as fT, typeAsPixelLayer as fU, typeFrame as fV, typeFromAnnotation as fW, typeLayerName as fX, ungroupLayer as fY, unionRect as fZ, unprojectCanvasPoint as f_, rerenderText as fa, resizePixels as fb, resizeSelection as fc, resolveExternalAssets as fd, resolveProfile as fe, runLayerFilters as ff, selectionArea as fg, selectionFromCoverage as fh, selectionFromPixels as fi, selectionToCoverage as fj, selectionToPixels as fk, selectionValueAt as fl, serializeColorProfile as fm, serializeContents as fn, serializeEffects as fo, serializeLayer as fp, serializeLayers as fq, serializeLayersExternal as fr, serializePatterns as fs, serializeSelection as ft, setLayerEffects as fu, setLayerEffectsEnabled as fv, setLayerMask as fw, setLayerProperties as fx, shapeAsPixelLayer as fy, shapeFromAnnotation as fz, ImageEditorController as g, updateLayerFilter as g0, updateLayerMaskProps as g1, updateShapeLayer as g2, updateTypeLayer as g3, withNewIds as g4, writePsd as g5, type SelectionMask as h, type SelectionMode as i, type ColorDistance as j, type ImagePoint as k, type ImageLayer as l, type CropBox as m, type RasterMask as n, type Annotation as o, type AdjustmentLayerNode as p, type AnnotationLayer as q, type ShapeLayer as r, type TypeLayer as s, type LayerFilter as t, type PixelLayer as u, type DevelopFilter as v, type ImageTransform as w, type ImageHistogram as x, type ImageProjection as y, type CompositorSources as z };
4284
+ export { type AdjustmentLayerBase as $, type AdjustmentKind as A, LayerCompositor as B, type CurvePoint as C, type DepthMaskOptions as D, type SmartFilterStack as E, type SmartFilter as F, type SmartObjectLayer as G, type HueRange as H, type ImageEditorAssetStore as I, type SmartContents as J, type SmartDocument as K, type LevelsChannel as L, type SmartPlacement as M, type FreeTransformGeometry as N, type LiveShapeKind as O, type PsdExportResult as P, type TypeLayerInfo as Q, type RefineEdgeParams as R, type SerializedLayer as S, type TextEnv as T, type LayerPlacement as U, type FreeTransformMode as V, type FreeTransformResult as W, FreeTransformSession as X, type FreeTransformInit as Y, type TransformAnchor as Z, type AIResultOptions as _, type ImageAdjustments as a, type LayerProperties as a$, type AdjustmentLayerInit as a0, type AdjustmentLayerUpdate as a1, type AnnotationPlacement as a2, type AnnotationType as a3, type ArrowAnnotation as a4, type AspectRatio as a5, type BaseAnnotation as a6, type BlackWhiteParams as a7, type BlurFilter as a8, type CircleAnnotation as a9, GUIDED_FILTER_EPS as aA, type GroupLayer as aB, HISTOGRAM_BINS as aC, type HistogramChannel as aD, type HistoryEntryHandle as aE, type HueSaturationParams as aF, IMAGE_EDITOR_SCHEMA_VERSION as aG, type ImageAnnotation as aH, type ImageDimensions as aI, type ImageEditorAIHooks as aJ, type ImageEditorFit as aK, type ImageEditorOptions as aL, ImageEditorRenderer as aM, type ImageEditorState as aN, type ImageEditorTool as aO, type ImageLayerType as aP, type InpaintHook as aQ, type InpaintOptions as aR, type InvertParams as aS, LAYERED_SCHEMA_VERSION as aT, LIVE_SHAPE_KINDS as aU, type LayerBase as aV, type LayerBlendMode as aW, type LayerFilterKind as aX, type LayerLocation as aY, type LayerMaskProps as aZ, LayerOperationError as a_, type CloneSource as aa, type ColorBalanceParams as ab, type ColorBalanceTone as ac, type ColorRangeOptions as ad, type ColorRangeSample as ae, type CreateAnnotationPayload as af, type CropHandle as ag, type CurvesParams as ah, DEFAULT_ADJUSTMENTS as ai, DEFAULT_DEPTH_MASK as aj, DEFAULT_MITER_LIMIT as ak, DEFAULT_PROOF as al, DEFAULT_REFINE_EDGE_PARAMS as am, DEFAULT_TRANSFORM as an, type DeserializeContext as ao, type DevelopSettings as ap, type DocumentColorMode as aq, type DocumentColorProfile as ar, EMPTY_DISTANCE as as, type ExportOptions as at, FREE_TRANSFORM_CONTENTS as au, FREE_TRANSFORM_MODES as av, type FillOptions as aw, type FreeTransformContent as ax, type FreeTransformHost as ay, type FreeTransformPreview as az, type SerializedImageEditorState as b, type SerializedSmartContents as b$, type LayerSourcesHost as b0, type LayerTarget as b1, type LegacySerializedImageEditorState as b2, type LevelsParams as b3, type LineAnnotation as b4, type LiveShape as b5, type MagicWandOptions as b6, type MixerStrokeInit as b7, PARAGRAPH_STYLE_FIELDS as b8, PSD_BLEND_KEYS as b9, type RemoveBackgroundHook as bA, type RemoveBackgroundOptions as bB, type RenderOptions as bC, type RetouchStrokeInit as bD, type RetouchTool as bE, SELECTION_MODES as bF, SELECTION_MODIFY_OPS as bG, SHAPE_OPERATIONS as bH, SHAPE_RENDER_MARGIN as bI, type SampleOptions as bJ, type SelectionChannel as bK, type SelectionCommandOptions as bL, type SelectionModifyOp as bM, type SerializeContext as bN, type SerializedAdjustmentLayer as bO, type SerializedAnnotationLayer as bP, type SerializedColorMode as bQ, type SerializedColorProfile as bR, type SerializedDeepPixels as bS, type SerializedGroupLayer as bT, type SerializedLayerEffects as bU, type SerializedLayeredImageEditorState as bV, type SerializedPattern as bW, type SerializedPixelLayer as bX, type SerializedRasterMask as bY, type SerializedSelection as bZ, type SerializedShapeLayer as b_, type PaintOptions as ba, type PaintStrokeResult as bb, PaintStrokeSession as bc, type PenAnnotation as bd, type PhotoFilterParams as be, type PixelBuffer as bf, type PixelLayerInit as bg, type PixelTransform as bh, type PosterizeParams as bi, type ProofSetup as bj, type PsdChannel as bk, type PsdExportInput as bl, type PsdFile as bm, type PsdHeader as bn, type PsdImportOptions as bo, type PsdImportResult as bp, type PsdLayerMask as bq, type PsdLayerRecord as br, type PsdLayerSummary as bs, type PsdRect as bt, type PsdResource as bu, type PsdSmartFilter as bv, type PsdTaggedBlock as bw, type PsdTreeNode as bx, RETOUCH_TOOLS as by, type RectAnnotation as bz, type AdjustmentLayer as c, contractCoverage as c$, type SerializedSmartFilter as c0, type SerializedSmartObjectLayer as c1, type SerializedTypeLayer as c2, type ShapeArrowhead as c3, type ShapeComponent as c4, type ShapeEnv as c5, type ShapeFillRule as c6, type ShapeGeometryInput as c7, type ShapeLayerData as c8, type ShapeLayerInfo as c9, type TypePsdData as cA, type VibranceParams as cB, type ViewportMetrics as cC, addLayerEffect as cD, addLayerFilter as cE, adjustmentNodeAsLayer as cF, anchorPoint as cG, annotationBlend as cH, annotationOfShape as cI, annotationOfType as cJ, applyImageProjectionToContext as cK, applyParams as cL, blurFilter as cM, borderCoverage as cN, boxMean as cO, boxPointOf as cP, buildLayerMaskPlanes as cQ, calculateCropDrag as cR, canvasToImagePoint as cS, clampCropToImage as cT, colorModePlanes as cU, colorRange as cV, combineSelections as cW, componentPath as cX, compositeDeep as cY, computeHistogram as cZ, computeSelectionBounds as c_, type ShapeLayerInit as ca, type ShapeLineCap as cb, type ShapeLineJoin as cc, type ShapeOperation as cd, type ShapePaint as ce, type ShapePsdData as cf, type ShapeSelectionOptions as cg, type ShapeStroke as ch, type ShapeStrokeAlign as ci, type ShapeStrokeInput as cj, type SmartFilterKind as ck, type SmartObjectInfo as cl, type SmartPsdData as cm, type StrokeInit as cn, type StrokeTool as co, TEXT_RENDER_MARGIN as cp, TEXT_STYLE_FIELDS as cq, TONE_RANGE_PRESETS as cr, TRANSFORM_ANCHORS as cs, type TextAnnotation as ct, type TextLayerInit as cu, type ThresholdParams as cv, type ToneRangePreset as cw, type TransformParams as cx, type TransformReadout as cy, type TypeLayerData as cz, type AdjustmentParamsMap as d, isActiveFilter as d$, convertHex as d0, convertSurfaceColors as d1, cornersFromMatrix as d2, coverageToByte as d3, createSelectionMask as d4, createShapeLayer as d5, createTypeLayer as d6, decodeDeepSurface as d7, decodeLayerChannel as d8, decodeLayerMask as d9, expandCoverage as dA, exportPsd as dB, featherCoverage as dC, flipCorners as dD, fullSelection as dE, geometryHomography as dF, getAnnotationBounds as dG, getCropCursor as dH, getRotatedSize as dI, getViewportMetrics as dJ, getViewportProjection as dK, globalImageCache as dL, greyMorphology as dM, groupLayers as dN, guidePlanes as dO, guidedFilterColor as dP, hasSurface as dQ, hasWarp as dR, hashMaskContent as dS, histogramPath as dT, hitTestAnnotation as dU, hitTestCrop as dV, hueRange as dW, identityTransform as dX, imageToCanvasPoint as dY, importPsd as dZ, invertSelection as d_, decodeMergedImage as da, decodePngDataUrl as db, decodeSelectionRle as dc, defaultShapeName as dd, depthMaskAlpha as de, describeTransform as df, deserializeColorMode as dg, deserializeColorProfile as dh, deserializeEffects as di, deserializeLayer as dj, deserializeLayers as dk, deserializePatterns as dl, deserializeSelection as dm, developFilter as dn, displayTransform as dp, distanceTransform as dq, documentProfile as dr, duplicateLayer as ds, edgeWidth as dt, effectiveProof as du, ellipsePoints as dv, ellipseSelection as dw, encodeDeepSurface as dx, encodeSelectionRle as dy, encodeSurface as dz, type AdjustmentLayerMask as e, refineCoverage as e$, isIdentityTransform as e0, isQuarterTurnSwapped as e1, isRenderedLayer as e2, isRetouchTool as e3, isSelectionEmpty as e4, isSelectionMode as e5, isSpatialFilter as e6, isSrgb as e7, isTransformAnchor as e8, isValidWarp as e9, normalizeShapePaint as eA, normalizeShapeStroke as eB, normalizeStoredAdjustments as eC, normalizeSubpaths as eD, normalizeText as eE, offsetLayer as eF, offsetShape as eG, parseBlend as eH, parseColor as eI, parseSelectionMode as eJ, patchParagraphStyle as eK, patchTextStyle as eL, pixelLayerBounds as eM, pixelLayers as eN, placeLayer as eO, polygonCoverage as eP, polygonSelection as eQ, presetWarp as eR, previewStep as eS, profileBytes as eT, projectImagePoint as eU, projectImageRect as eV, projectMaskCoverage as eW, psdToLayers as eX, readPsd as eY, rectSelection as eZ, referencePoint as e_, layerEffectsOf as ea, layerMaskCoverage as eb, layerMaskFromSelection as ec, layerMaskKey as ed, layerName as ee, layerTree as ef, layerTypeLabel as eg, liveComponent as eh, liveShapeSubpaths as ei, magicWand as ej, mapCropHandle as ek, mapSubpaths as el, matrixFromCorners as em, matrixFromParams as en, mergeShapeComponents as eo, migrateSerializedImageEditorState as ep, migrateToLayeredState as eq, modifySelection as er, moveLayer as es, newLayerId as et, normalizeAngle as eu, normalizeFilter as ev, normalizeLayerMask as ew, normalizeLiveShape as ex, normalizeRect as ey, normalizeRefineEdgeParams as ez, type AdjustmentLayerOf as f, typeFrame as f$, refineEdgeHalo as f0, refineSelection as f1, removeLayer as f2, removeLayerEffect as f3, removeLayerFilter as f4, renderShape as f5, renderShapeRect as f6, renderText as f7, replaceTextRange as f8, requireLayer as f9, setLayerEffects as fA, setLayerEffectsEnabled as fB, setLayerMask as fC, setLayerProperties as fD, shapeAsPixelLayer as fE, shapeFromAnnotation as fF, shapeGeometryBounds as fG, shapeLayers as fH, shapeOutline as fI, shapeRenderClip as fJ, shiftCoverage as fK, smartObjectLayers as fL, smoothCoverage as fM, srgb8ToLab as fN, textMatrix as fO, textOutlines as fP, textRange as fQ, toHex as fR, toTextSpace as fS, toneRange as fT, transformHomography as fU, transformMap as fV, transformShapeComponents as fW, transformTypeLayer as fX, transformedBox as fY, transformedPoint as fZ, typeAsPixelLayer as f_, requireOperation as fa, requireShapeLayer as fb, requireTypeLayer as fc, requireUnlocked as fd, rerenderShape as fe, rerenderText as ff, resizePixels as fg, resizeSelection as fh, resolveExternalAssets as fi, resolveProfile as fj, runLayerFilters as fk, selectionArea as fl, selectionFromCoverage as fm, selectionFromPixels as fn, selectionToCoverage as fo, selectionToPixels as fp, selectionValueAt as fq, serializeColorMode as fr, serializeColorProfile as fs, serializeContents as ft, serializeEffects as fu, serializeLayer as fv, serializeLayers as fw, serializeLayersExternal as fx, serializePatterns as fy, serializeSelection as fz, ImageEditorController as g, typeFromAnnotation as g0, typeLayerName as g1, ungroupLayer as g2, unionRect as g3, unprojectCanvasPoint as g4, updateLayerEffect as g5, updateLayerFilter as g6, updateLayerMaskProps as g7, updateShapeLayer as g8, updateTypeLayer as g9, withNewIds as ga, writePsd as gb, type SelectionMask as h, type SelectionMode as i, type ColorDistance as j, type ImagePoint as k, type ImageLayer as l, type CropBox as m, type RasterMask as n, type Annotation as o, type AdjustmentLayerNode as p, type AnnotationLayer as q, type ShapeLayer as r, type TypeLayer as s, type LayerFilter as t, type PixelLayer as u, type DevelopFilter as v, type ImageTransform as w, type ImageHistogram as x, type ImageProjection as y, type CompositorSources as z };
@@ -4,8 +4,8 @@ import { b as BuiltinProfileId, j as Intent, P as Profile, T as Transform, d as
4
4
  import { A as AffineMatrix, Q as Quad, a as WarpMesh, V as Vec2$1, H as Homography } from './types-CwMPoRMU.js';
5
5
  import { B as BezierPath } from './bezier-DYBvLgUH.js';
6
6
  import { b as TextRun, P as ParagraphRun, T as TextShaper, c as ParagraphStyle, d as TextStyle, L as LaidFragment, W as WarpPreset, e as TextLayout } from './warp-DMN30aY6.js';
7
- import { w as VectorSubpath, o as Vec2 } from './types-1SUQKDAw.js';
8
- import { B as BrushSettings, M as MixerSettings, d as MixerLoad, f as RetouchSettings, g as StrokeCoverage, h as MixerTarget, i as MixerStroke, j as RetouchApply, c as StrokePoint, k as RetouchPaint, C as CoverageMap, P as PaintTileTarget, l as StrokeApply } from './retouch-Do6tBs2H.js';
7
+ import { w as VectorSubpath, o as Vec2 } from './types-CDLGhAZp.js';
8
+ import { B as BrushSettings, M as MixerSettings, a as MixerLoad, R as RetouchSettings, S as StrokeCoverage, b as MixerTarget, c as MixerStroke, d as RetouchApply, e as StrokePoint, f as RetouchPaint, C as CoverageMap, P as PaintTileTarget, g as StrokeApply } from './flow-BMtHAmg4.js';
9
9
 
10
10
  /**
11
11
  * A selection: one 8-bit coverage value per image pixel (0 = not selected, 255 = fully
@@ -569,6 +569,32 @@ interface ProofSetup {
569
569
  gamutWarning: boolean;
570
570
  }
571
571
  declare const DEFAULT_PROOF: Omit<ProofSetup, 'profile'>;
572
+ /**
573
+ * Image › Mode beyond RGB. The document is still edited as RGB in its working space; the mode is
574
+ * what it is for: the viewport soft-proofs through the CMYK profile (unless Proof Setup says
575
+ * otherwise) and PSD export writes CMYK or Lab channels.
576
+ */
577
+ type DocumentColorMode = {
578
+ mode: 'cmyk';
579
+ profile: DocumentColorProfile;
580
+ intent: Intent;
581
+ } | {
582
+ mode: 'lab';
583
+ };
584
+ interface SerializedColorMode {
585
+ mode: 'cmyk' | 'lab';
586
+ profile?: SerializedColorProfile;
587
+ intent?: Intent;
588
+ }
589
+ declare function serializeColorMode(m: DocumentColorMode): SerializedColorMode;
590
+ declare function deserializeColorMode(raw: unknown, problems: string[]): DocumentColorMode | null;
591
+ /** The proof the viewport shows: Proof Setup, else a CMYK document's own profile. */
592
+ declare function effectiveProof(proof: ProofSetup | null | undefined, mode: DocumentColorMode | null | undefined): ProofSetup | null;
593
+ /**
594
+ * RGBA pixels (in the document profile `doc`) as the channel planes of `mode`, for a PSD:
595
+ * CMYK as Photoshop stores it (255 = no ink), Lab with L 0..255 for 0..100 and a, b offset by 128.
596
+ */
597
+ declare function colorModePlanes(doc: DocumentColorProfile | null | undefined, mode: DocumentColorMode): (rgba: Uint8ClampedArray, n: number) => Uint8Array[];
572
598
  /** The profile a document profile names (sRGB when missing). Throws `CmsError` for unreadable ICC bytes. */
573
599
  declare function resolveProfile(doc: DocumentColorProfile | null | undefined): Profile;
574
600
  /** The ICC bytes to embed for a document profile. */
@@ -921,6 +947,8 @@ interface SerializedLayeredImageEditorState {
921
947
  smartContents?: SerializedSmartContents[];
922
948
  /** The document's colour profile (missing = sRGB). */
923
949
  colorProfile?: SerializedColorProfile;
950
+ /** Image › Mode CMYK or Lab (missing = RGB). */
951
+ colorMode?: SerializedColorMode;
924
952
  /** Bits per channel (missing = 8). */
925
953
  bitDepth?: 16 | 32;
926
954
  }
@@ -1886,6 +1914,13 @@ interface PsdImportResult {
1886
1914
  };
1887
1915
  /** The embedded ICC profile (image resource 1039), raw bytes, when the file has one. */
1888
1916
  iccProfile?: Uint8Array;
1917
+ /** CMYK and Lab files: the mode (and CMYK profile) their pixels were converted from, to write them back. */
1918
+ sourceMode?: {
1919
+ mode: 'cmyk';
1920
+ profile: DocumentColorProfile;
1921
+ } | {
1922
+ mode: 'lab';
1923
+ };
1889
1924
  /** The bits per channel the layers keep: 16 or 32 for such files (not indexed or bitmap), else 8. */
1890
1925
  bitDepth: 8 | 16 | 32;
1891
1926
  }
@@ -2795,7 +2830,7 @@ declare class ImageEditorController {
2795
2830
  private pendingDirty;
2796
2831
  private notify;
2797
2832
  private displayFor;
2798
- /** Keeps the renderer's display transform in step with the document profile and Proof Setup. */
2833
+ /** Keeps the renderer's display transform in step with the document profile, mode and Proof Setup. */
2799
2834
  private syncDisplay;
2800
2835
  /** Recomputes the compatibility views (`adjustments`, `depthMask`, `annotations`) when the stack changed. */
2801
2836
  private syncViews;
@@ -3633,13 +3668,29 @@ declare class ImageEditorController {
3633
3668
  * step. Returns the layer id.
3634
3669
  */
3635
3670
  rasterizeLayer(id: string): Promise<string>;
3636
- /** The document's colour profile: its name, built-in id (or `null` for an embedded profile) and colour space. */
3671
+ /** The document's colour profile: its name, built-in id (or `null` for an embedded profile), colour space, and Image › Mode. */
3637
3672
  getColorProfile(): {
3638
3673
  name: string;
3639
3674
  builtin: BuiltinProfileId | null;
3640
3675
  colorSpace: ColorSpace;
3641
3676
  srgb: boolean;
3677
+ mode: 'rgb' | 'cmyk' | 'lab';
3678
+ cmykProfile?: {
3679
+ name: string;
3680
+ builtin: BuiltinProfileId | null;
3681
+ intent: Intent;
3682
+ };
3642
3683
  };
3684
+ /**
3685
+ * Image › Mode (one undo step): `rgb`, `cmyk` (with a CMYK `profile`, default the coated
3686
+ * CMYK, and the `intent` RGB is separated with) or `lab`. The pixels stay RGB in the working
3687
+ * space; a CMYK document is soft-proofed through its profile in the viewport, and PSD export
3688
+ * writes CMYK or Lab channels. Returns the profile summary.
3689
+ */
3690
+ setColorMode(mode: 'rgb' | 'cmyk' | 'lab', options?: {
3691
+ profile?: string | Uint8Array;
3692
+ intent?: Intent;
3693
+ }): ReturnType<ImageEditorController['getColorProfile']>;
3643
3694
  /** Resolves a profile argument (built-in id or alias, or ICC bytes) as an RGB document profile. */
3644
3695
  private rgbProfileArg;
3645
3696
  /**
@@ -3698,6 +3749,8 @@ declare class ImageEditorController {
3698
3749
  bitDepth: BitDepth;
3699
3750
  changedLayerIds: string[];
3700
3751
  };
3752
+ /** How `toPsd` writes colour: RGB with the working space, or CMYK / Lab channels for those modes. */
3753
+ private psdColorOptions;
3701
3754
  /** Pixels per inch of the last opened PSD (written back by `toPsd`). */
3702
3755
  private psdResolution;
3703
3756
  /**
@@ -4112,6 +4165,8 @@ interface ImageEditorState {
4112
4165
  colorProfile?: DocumentColorProfile;
4113
4166
  /** View › Proof Setup (view state): soft-proof the viewport through another profile, or `null`. */
4114
4167
  proofSetup?: ProofSetup | null;
4168
+ /** Image › Mode CMYK or Lab (missing: RGB): what the document is for (see `DocumentColorMode`). Recorded in history and saved. */
4169
+ colorMode?: DocumentColorMode;
4115
4170
  /**
4116
4171
  * Bits per channel of the document (Image › Mode): 8 (missing), 16 or 32 (linear float).
4117
4172
  * Pixel layers keep 16- or 32-bit samples where they have them (see `raster/deep`); the
@@ -4201,6 +4256,13 @@ interface PsdExportInput {
4201
4256
  patterns?: readonly EffectPattern[];
4202
4257
  /** Written as image resources 1037 and 1049. */
4203
4258
  globalLight?: GlobalLight;
4259
+ /**
4260
+ * The file's colour mode (default rgb). For cmyk and lab, `colorPlanes` turns RGBA pixels into
4261
+ * the mode's channel planes (CMYK as Photoshop stores it: 255 is no ink; Lab: L 0..255 for
4262
+ * 0..100, a and b offset by 128).
4263
+ */
4264
+ colorMode?: 'rgb' | 'cmyk' | 'lab';
4265
+ colorPlanes?: (rgba: Uint8ClampedArray, n: number) => Uint8Array[];
4204
4266
  /** The document's ICC profile, written as image resource 1039. */
4205
4267
  iccProfile?: Uint8Array;
4206
4268
  /** Bits per channel to write (default 8): 16 and 32 write the layers' deep samples (see `raster/deep`). */
@@ -4219,4 +4281,4 @@ interface PsdExportResult {
4219
4281
  /** Writes the prepared stack as PSD (or PSB) bytes. */
4220
4282
  declare function exportPsd(input: PsdExportInput): PsdExportResult;
4221
4283
 
4222
- export { type AdjustmentLayerBase as $, type AdjustmentKind as A, LayerCompositor as B, type CurvePoint as C, type DepthMaskOptions as D, type SmartFilterStack as E, type SmartFilter as F, type SmartObjectLayer as G, type HueRange as H, type ImageEditorAssetStore as I, type SmartContents as J, type SmartDocument as K, type LevelsChannel as L, type SmartPlacement as M, type FreeTransformGeometry as N, type LiveShapeKind as O, type PsdExportResult as P, type TypeLayerInfo as Q, type RefineEdgeParams as R, type SerializedLayer as S, type TextEnv as T, type LayerPlacement as U, type FreeTransformMode as V, type FreeTransformResult as W, FreeTransformSession as X, type FreeTransformInit as Y, type TransformAnchor as Z, type AIResultOptions as _, type ImageAdjustments as a, type LayerSourcesHost as a$, type AdjustmentLayerInit as a0, type AdjustmentLayerUpdate as a1, type AnnotationPlacement as a2, type AnnotationType as a3, type ArrowAnnotation as a4, type AspectRatio as a5, type BaseAnnotation as a6, type BlackWhiteParams as a7, type BlurFilter as a8, type CircleAnnotation as a9, type GroupLayer as aA, HISTOGRAM_BINS as aB, type HistogramChannel as aC, type HistoryEntryHandle as aD, type HueSaturationParams as aE, IMAGE_EDITOR_SCHEMA_VERSION as aF, type ImageAnnotation as aG, type ImageDimensions as aH, type ImageEditorAIHooks as aI, type ImageEditorFit as aJ, type ImageEditorOptions as aK, ImageEditorRenderer as aL, type ImageEditorState as aM, type ImageEditorTool as aN, type ImageLayerType as aO, type InpaintHook as aP, type InpaintOptions as aQ, type InvertParams as aR, LAYERED_SCHEMA_VERSION as aS, LIVE_SHAPE_KINDS as aT, type LayerBase as aU, type LayerBlendMode as aV, type LayerFilterKind as aW, type LayerLocation as aX, type LayerMaskProps as aY, LayerOperationError as aZ, type LayerProperties as a_, type CloneSource as aa, type ColorBalanceParams as ab, type ColorBalanceTone as ac, type ColorRangeOptions as ad, type ColorRangeSample as ae, type CreateAnnotationPayload as af, type CropHandle as ag, type CurvesParams as ah, DEFAULT_ADJUSTMENTS as ai, DEFAULT_DEPTH_MASK as aj, DEFAULT_MITER_LIMIT as ak, DEFAULT_PROOF as al, DEFAULT_REFINE_EDGE_PARAMS as am, DEFAULT_TRANSFORM as an, type DeserializeContext as ao, type DevelopSettings as ap, type DocumentColorProfile as aq, EMPTY_DISTANCE as ar, type ExportOptions as as, FREE_TRANSFORM_CONTENTS as at, FREE_TRANSFORM_MODES as au, type FillOptions as av, type FreeTransformContent as aw, type FreeTransformHost as ax, type FreeTransformPreview as ay, GUIDED_FILTER_EPS as az, type SerializedImageEditorState as b, type SerializedSmartObjectLayer as b$, type LayerTarget as b0, type LegacySerializedImageEditorState as b1, type LevelsParams as b2, type LineAnnotation as b3, type LiveShape as b4, type MagicWandOptions as b5, type MixerStrokeInit as b6, PARAGRAPH_STYLE_FIELDS as b7, PSD_BLEND_KEYS as b8, type PaintOptions as b9, type RemoveBackgroundOptions as bA, type RenderOptions as bB, type RetouchStrokeInit as bC, type RetouchTool as bD, SELECTION_MODES as bE, SELECTION_MODIFY_OPS as bF, SHAPE_OPERATIONS as bG, SHAPE_RENDER_MARGIN as bH, type SampleOptions as bI, type SelectionChannel as bJ, type SelectionCommandOptions as bK, type SelectionModifyOp as bL, type SerializeContext as bM, type SerializedAdjustmentLayer as bN, type SerializedAnnotationLayer as bO, type SerializedColorProfile as bP, type SerializedDeepPixels as bQ, type SerializedGroupLayer as bR, type SerializedLayerEffects as bS, type SerializedLayeredImageEditorState as bT, type SerializedPattern as bU, type SerializedPixelLayer as bV, type SerializedRasterMask as bW, type SerializedSelection as bX, type SerializedShapeLayer as bY, type SerializedSmartContents as bZ, type SerializedSmartFilter as b_, type PaintStrokeResult as ba, PaintStrokeSession as bb, type PenAnnotation as bc, type PhotoFilterParams as bd, type PixelBuffer as be, type PixelLayerInit as bf, type PixelTransform as bg, type PosterizeParams as bh, type ProofSetup as bi, type PsdChannel as bj, type PsdExportInput as bk, type PsdFile as bl, type PsdHeader as bm, type PsdImportOptions as bn, type PsdImportResult as bo, type PsdLayerMask as bp, type PsdLayerRecord as bq, type PsdLayerSummary as br, type PsdRect as bs, type PsdResource as bt, type PsdSmartFilter as bu, type PsdTaggedBlock as bv, type PsdTreeNode as bw, RETOUCH_TOOLS as bx, type RectAnnotation as by, type RemoveBackgroundHook as bz, type AdjustmentLayer as c, cornersFromMatrix as c$, type SerializedTypeLayer as c0, type ShapeArrowhead as c1, type ShapeComponent as c2, type ShapeEnv as c3, type ShapeFillRule as c4, type ShapeGeometryInput as c5, type ShapeLayerData as c6, type ShapeLayerInfo as c7, type ShapeLayerInit as c8, type ShapeLineCap as c9, type ViewportMetrics as cA, addLayerEffect as cB, addLayerFilter as cC, adjustmentNodeAsLayer as cD, anchorPoint as cE, annotationBlend as cF, annotationOfShape as cG, annotationOfType as cH, applyImageProjectionToContext as cI, applyParams as cJ, blurFilter as cK, borderCoverage as cL, boxMean as cM, boxPointOf as cN, buildLayerMaskPlanes as cO, calculateCropDrag as cP, canvasToImagePoint as cQ, clampCropToImage as cR, colorRange as cS, combineSelections as cT, componentPath as cU, compositeDeep as cV, computeHistogram as cW, computeSelectionBounds as cX, contractCoverage as cY, convertHex as cZ, convertSurfaceColors as c_, type ShapeLineJoin as ca, type ShapeOperation as cb, type ShapePaint as cc, type ShapePsdData as cd, type ShapeSelectionOptions as ce, type ShapeStroke as cf, type ShapeStrokeAlign as cg, type ShapeStrokeInput as ch, type SmartFilterKind as ci, type SmartObjectInfo as cj, type SmartPsdData as ck, type StrokeInit as cl, type StrokeTool as cm, TEXT_RENDER_MARGIN as cn, TEXT_STYLE_FIELDS as co, TONE_RANGE_PRESETS as cp, TRANSFORM_ANCHORS as cq, type TextAnnotation as cr, type TextLayerInit as cs, type ThresholdParams as ct, type ToneRangePreset as cu, type TransformParams as cv, type TransformReadout as cw, type TypeLayerData as cx, type TypePsdData as cy, type VibranceParams as cz, type AdjustmentParamsMap as d, isSelectionEmpty as d$, coverageToByte as d0, createSelectionMask as d1, createShapeLayer as d2, createTypeLayer as d3, decodeDeepSurface as d4, decodeLayerChannel as d5, decodeLayerMask as d6, decodeMergedImage as d7, decodePngDataUrl as d8, decodeSelectionRle as d9, geometryHomography as dA, getAnnotationBounds as dB, getCropCursor as dC, getRotatedSize as dD, getViewportMetrics as dE, getViewportProjection as dF, globalImageCache as dG, greyMorphology as dH, groupLayers as dI, guidePlanes as dJ, guidedFilterColor as dK, hasSurface as dL, hasWarp as dM, hashMaskContent as dN, histogramPath as dO, hitTestAnnotation as dP, hitTestCrop as dQ, hueRange as dR, identityTransform as dS, imageToCanvasPoint as dT, importPsd as dU, invertSelection as dV, isActiveFilter as dW, isIdentityTransform as dX, isQuarterTurnSwapped as dY, isRenderedLayer as dZ, isRetouchTool as d_, defaultShapeName as da, depthMaskAlpha as db, describeTransform as dc, deserializeColorProfile as dd, deserializeEffects as de, deserializeLayer as df, deserializeLayers as dg, deserializePatterns as dh, deserializeSelection as di, developFilter as dj, displayTransform as dk, distanceTransform as dl, documentProfile as dm, duplicateLayer as dn, edgeWidth as dp, ellipsePoints as dq, ellipseSelection as dr, encodeDeepSurface as ds, encodeSelectionRle as dt, encodeSurface as du, expandCoverage as dv, exportPsd as dw, featherCoverage as dx, flipCorners as dy, fullSelection as dz, type AdjustmentLayerMask as e, removeLayerFilter as e$, isSelectionMode as e0, isSpatialFilter as e1, isSrgb as e2, isTransformAnchor as e3, isValidWarp as e4, layerEffectsOf as e5, layerMaskCoverage as e6, layerMaskFromSelection as e7, layerMaskKey as e8, layerName as e9, offsetLayer as eA, offsetShape as eB, parseBlend as eC, parseColor as eD, parseSelectionMode as eE, patchParagraphStyle as eF, patchTextStyle as eG, pixelLayerBounds as eH, pixelLayers as eI, placeLayer as eJ, polygonCoverage as eK, polygonSelection as eL, presetWarp as eM, previewStep as eN, profileBytes as eO, projectImagePoint as eP, projectImageRect as eQ, projectMaskCoverage as eR, psdToLayers as eS, readPsd as eT, rectSelection as eU, referencePoint as eV, refineCoverage as eW, refineEdgeHalo as eX, refineSelection as eY, removeLayer as eZ, removeLayerEffect as e_, layerTree as ea, layerTypeLabel as eb, liveComponent as ec, liveShapeSubpaths as ed, magicWand as ee, mapCropHandle as ef, mapSubpaths as eg, matrixFromCorners as eh, matrixFromParams as ei, mergeShapeComponents as ej, migrateSerializedImageEditorState as ek, migrateToLayeredState as el, modifySelection as em, moveLayer as en, newLayerId as eo, normalizeAngle as ep, normalizeFilter as eq, normalizeLayerMask as er, normalizeLiveShape as es, normalizeRect as et, normalizeRefineEdgeParams as eu, normalizeShapePaint as ev, normalizeShapeStroke as ew, normalizeStoredAdjustments as ex, normalizeSubpaths as ey, normalizeText as ez, type AdjustmentLayerOf as f, updateLayerEffect as f$, renderShape as f0, renderShapeRect as f1, renderText as f2, replaceTextRange as f3, requireLayer as f4, requireOperation as f5, requireShapeLayer as f6, requireTypeLayer as f7, requireUnlocked as f8, rerenderShape as f9, shapeGeometryBounds as fA, shapeLayers as fB, shapeOutline as fC, shapeRenderClip as fD, shiftCoverage as fE, smartObjectLayers as fF, smoothCoverage as fG, srgb8ToLab as fH, textMatrix as fI, textOutlines as fJ, textRange as fK, toHex as fL, toTextSpace as fM, toneRange as fN, transformHomography as fO, transformMap as fP, transformShapeComponents as fQ, transformTypeLayer as fR, transformedBox as fS, transformedPoint as fT, typeAsPixelLayer as fU, typeFrame as fV, typeFromAnnotation as fW, typeLayerName as fX, ungroupLayer as fY, unionRect as fZ, unprojectCanvasPoint as f_, rerenderText as fa, resizePixels as fb, resizeSelection as fc, resolveExternalAssets as fd, resolveProfile as fe, runLayerFilters as ff, selectionArea as fg, selectionFromCoverage as fh, selectionFromPixels as fi, selectionToCoverage as fj, selectionToPixels as fk, selectionValueAt as fl, serializeColorProfile as fm, serializeContents as fn, serializeEffects as fo, serializeLayer as fp, serializeLayers as fq, serializeLayersExternal as fr, serializePatterns as fs, serializeSelection as ft, setLayerEffects as fu, setLayerEffectsEnabled as fv, setLayerMask as fw, setLayerProperties as fx, shapeAsPixelLayer as fy, shapeFromAnnotation as fz, ImageEditorController as g, updateLayerFilter as g0, updateLayerMaskProps as g1, updateShapeLayer as g2, updateTypeLayer as g3, withNewIds as g4, writePsd as g5, type SelectionMask as h, type SelectionMode as i, type ColorDistance as j, type ImagePoint as k, type ImageLayer as l, type CropBox as m, type RasterMask as n, type Annotation as o, type AdjustmentLayerNode as p, type AnnotationLayer as q, type ShapeLayer as r, type TypeLayer as s, type LayerFilter as t, type PixelLayer as u, type DevelopFilter as v, type ImageTransform as w, type ImageHistogram as x, type ImageProjection as y, type CompositorSources as z };
4284
+ export { type AdjustmentLayerBase as $, type AdjustmentKind as A, LayerCompositor as B, type CurvePoint as C, type DepthMaskOptions as D, type SmartFilterStack as E, type SmartFilter as F, type SmartObjectLayer as G, type HueRange as H, type ImageEditorAssetStore as I, type SmartContents as J, type SmartDocument as K, type LevelsChannel as L, type SmartPlacement as M, type FreeTransformGeometry as N, type LiveShapeKind as O, type PsdExportResult as P, type TypeLayerInfo as Q, type RefineEdgeParams as R, type SerializedLayer as S, type TextEnv as T, type LayerPlacement as U, type FreeTransformMode as V, type FreeTransformResult as W, FreeTransformSession as X, type FreeTransformInit as Y, type TransformAnchor as Z, type AIResultOptions as _, type ImageAdjustments as a, type LayerProperties as a$, type AdjustmentLayerInit as a0, type AdjustmentLayerUpdate as a1, type AnnotationPlacement as a2, type AnnotationType as a3, type ArrowAnnotation as a4, type AspectRatio as a5, type BaseAnnotation as a6, type BlackWhiteParams as a7, type BlurFilter as a8, type CircleAnnotation as a9, GUIDED_FILTER_EPS as aA, type GroupLayer as aB, HISTOGRAM_BINS as aC, type HistogramChannel as aD, type HistoryEntryHandle as aE, type HueSaturationParams as aF, IMAGE_EDITOR_SCHEMA_VERSION as aG, type ImageAnnotation as aH, type ImageDimensions as aI, type ImageEditorAIHooks as aJ, type ImageEditorFit as aK, type ImageEditorOptions as aL, ImageEditorRenderer as aM, type ImageEditorState as aN, type ImageEditorTool as aO, type ImageLayerType as aP, type InpaintHook as aQ, type InpaintOptions as aR, type InvertParams as aS, LAYERED_SCHEMA_VERSION as aT, LIVE_SHAPE_KINDS as aU, type LayerBase as aV, type LayerBlendMode as aW, type LayerFilterKind as aX, type LayerLocation as aY, type LayerMaskProps as aZ, LayerOperationError as a_, type CloneSource as aa, type ColorBalanceParams as ab, type ColorBalanceTone as ac, type ColorRangeOptions as ad, type ColorRangeSample as ae, type CreateAnnotationPayload as af, type CropHandle as ag, type CurvesParams as ah, DEFAULT_ADJUSTMENTS as ai, DEFAULT_DEPTH_MASK as aj, DEFAULT_MITER_LIMIT as ak, DEFAULT_PROOF as al, DEFAULT_REFINE_EDGE_PARAMS as am, DEFAULT_TRANSFORM as an, type DeserializeContext as ao, type DevelopSettings as ap, type DocumentColorMode as aq, type DocumentColorProfile as ar, EMPTY_DISTANCE as as, type ExportOptions as at, FREE_TRANSFORM_CONTENTS as au, FREE_TRANSFORM_MODES as av, type FillOptions as aw, type FreeTransformContent as ax, type FreeTransformHost as ay, type FreeTransformPreview as az, type SerializedImageEditorState as b, type SerializedSmartContents as b$, type LayerSourcesHost as b0, type LayerTarget as b1, type LegacySerializedImageEditorState as b2, type LevelsParams as b3, type LineAnnotation as b4, type LiveShape as b5, type MagicWandOptions as b6, type MixerStrokeInit as b7, PARAGRAPH_STYLE_FIELDS as b8, PSD_BLEND_KEYS as b9, type RemoveBackgroundHook as bA, type RemoveBackgroundOptions as bB, type RenderOptions as bC, type RetouchStrokeInit as bD, type RetouchTool as bE, SELECTION_MODES as bF, SELECTION_MODIFY_OPS as bG, SHAPE_OPERATIONS as bH, SHAPE_RENDER_MARGIN as bI, type SampleOptions as bJ, type SelectionChannel as bK, type SelectionCommandOptions as bL, type SelectionModifyOp as bM, type SerializeContext as bN, type SerializedAdjustmentLayer as bO, type SerializedAnnotationLayer as bP, type SerializedColorMode as bQ, type SerializedColorProfile as bR, type SerializedDeepPixels as bS, type SerializedGroupLayer as bT, type SerializedLayerEffects as bU, type SerializedLayeredImageEditorState as bV, type SerializedPattern as bW, type SerializedPixelLayer as bX, type SerializedRasterMask as bY, type SerializedSelection as bZ, type SerializedShapeLayer as b_, type PaintOptions as ba, type PaintStrokeResult as bb, PaintStrokeSession as bc, type PenAnnotation as bd, type PhotoFilterParams as be, type PixelBuffer as bf, type PixelLayerInit as bg, type PixelTransform as bh, type PosterizeParams as bi, type ProofSetup as bj, type PsdChannel as bk, type PsdExportInput as bl, type PsdFile as bm, type PsdHeader as bn, type PsdImportOptions as bo, type PsdImportResult as bp, type PsdLayerMask as bq, type PsdLayerRecord as br, type PsdLayerSummary as bs, type PsdRect as bt, type PsdResource as bu, type PsdSmartFilter as bv, type PsdTaggedBlock as bw, type PsdTreeNode as bx, RETOUCH_TOOLS as by, type RectAnnotation as bz, type AdjustmentLayer as c, contractCoverage as c$, type SerializedSmartFilter as c0, type SerializedSmartObjectLayer as c1, type SerializedTypeLayer as c2, type ShapeArrowhead as c3, type ShapeComponent as c4, type ShapeEnv as c5, type ShapeFillRule as c6, type ShapeGeometryInput as c7, type ShapeLayerData as c8, type ShapeLayerInfo as c9, type TypePsdData as cA, type VibranceParams as cB, type ViewportMetrics as cC, addLayerEffect as cD, addLayerFilter as cE, adjustmentNodeAsLayer as cF, anchorPoint as cG, annotationBlend as cH, annotationOfShape as cI, annotationOfType as cJ, applyImageProjectionToContext as cK, applyParams as cL, blurFilter as cM, borderCoverage as cN, boxMean as cO, boxPointOf as cP, buildLayerMaskPlanes as cQ, calculateCropDrag as cR, canvasToImagePoint as cS, clampCropToImage as cT, colorModePlanes as cU, colorRange as cV, combineSelections as cW, componentPath as cX, compositeDeep as cY, computeHistogram as cZ, computeSelectionBounds as c_, type ShapeLayerInit as ca, type ShapeLineCap as cb, type ShapeLineJoin as cc, type ShapeOperation as cd, type ShapePaint as ce, type ShapePsdData as cf, type ShapeSelectionOptions as cg, type ShapeStroke as ch, type ShapeStrokeAlign as ci, type ShapeStrokeInput as cj, type SmartFilterKind as ck, type SmartObjectInfo as cl, type SmartPsdData as cm, type StrokeInit as cn, type StrokeTool as co, TEXT_RENDER_MARGIN as cp, TEXT_STYLE_FIELDS as cq, TONE_RANGE_PRESETS as cr, TRANSFORM_ANCHORS as cs, type TextAnnotation as ct, type TextLayerInit as cu, type ThresholdParams as cv, type ToneRangePreset as cw, type TransformParams as cx, type TransformReadout as cy, type TypeLayerData as cz, type AdjustmentParamsMap as d, isActiveFilter as d$, convertHex as d0, convertSurfaceColors as d1, cornersFromMatrix as d2, coverageToByte as d3, createSelectionMask as d4, createShapeLayer as d5, createTypeLayer as d6, decodeDeepSurface as d7, decodeLayerChannel as d8, decodeLayerMask as d9, expandCoverage as dA, exportPsd as dB, featherCoverage as dC, flipCorners as dD, fullSelection as dE, geometryHomography as dF, getAnnotationBounds as dG, getCropCursor as dH, getRotatedSize as dI, getViewportMetrics as dJ, getViewportProjection as dK, globalImageCache as dL, greyMorphology as dM, groupLayers as dN, guidePlanes as dO, guidedFilterColor as dP, hasSurface as dQ, hasWarp as dR, hashMaskContent as dS, histogramPath as dT, hitTestAnnotation as dU, hitTestCrop as dV, hueRange as dW, identityTransform as dX, imageToCanvasPoint as dY, importPsd as dZ, invertSelection as d_, decodeMergedImage as da, decodePngDataUrl as db, decodeSelectionRle as dc, defaultShapeName as dd, depthMaskAlpha as de, describeTransform as df, deserializeColorMode as dg, deserializeColorProfile as dh, deserializeEffects as di, deserializeLayer as dj, deserializeLayers as dk, deserializePatterns as dl, deserializeSelection as dm, developFilter as dn, displayTransform as dp, distanceTransform as dq, documentProfile as dr, duplicateLayer as ds, edgeWidth as dt, effectiveProof as du, ellipsePoints as dv, ellipseSelection as dw, encodeDeepSurface as dx, encodeSelectionRle as dy, encodeSurface as dz, type AdjustmentLayerMask as e, refineCoverage as e$, isIdentityTransform as e0, isQuarterTurnSwapped as e1, isRenderedLayer as e2, isRetouchTool as e3, isSelectionEmpty as e4, isSelectionMode as e5, isSpatialFilter as e6, isSrgb as e7, isTransformAnchor as e8, isValidWarp as e9, normalizeShapePaint as eA, normalizeShapeStroke as eB, normalizeStoredAdjustments as eC, normalizeSubpaths as eD, normalizeText as eE, offsetLayer as eF, offsetShape as eG, parseBlend as eH, parseColor as eI, parseSelectionMode as eJ, patchParagraphStyle as eK, patchTextStyle as eL, pixelLayerBounds as eM, pixelLayers as eN, placeLayer as eO, polygonCoverage as eP, polygonSelection as eQ, presetWarp as eR, previewStep as eS, profileBytes as eT, projectImagePoint as eU, projectImageRect as eV, projectMaskCoverage as eW, psdToLayers as eX, readPsd as eY, rectSelection as eZ, referencePoint as e_, layerEffectsOf as ea, layerMaskCoverage as eb, layerMaskFromSelection as ec, layerMaskKey as ed, layerName as ee, layerTree as ef, layerTypeLabel as eg, liveComponent as eh, liveShapeSubpaths as ei, magicWand as ej, mapCropHandle as ek, mapSubpaths as el, matrixFromCorners as em, matrixFromParams as en, mergeShapeComponents as eo, migrateSerializedImageEditorState as ep, migrateToLayeredState as eq, modifySelection as er, moveLayer as es, newLayerId as et, normalizeAngle as eu, normalizeFilter as ev, normalizeLayerMask as ew, normalizeLiveShape as ex, normalizeRect as ey, normalizeRefineEdgeParams as ez, type AdjustmentLayerOf as f, typeFrame as f$, refineEdgeHalo as f0, refineSelection as f1, removeLayer as f2, removeLayerEffect as f3, removeLayerFilter as f4, renderShape as f5, renderShapeRect as f6, renderText as f7, replaceTextRange as f8, requireLayer as f9, setLayerEffects as fA, setLayerEffectsEnabled as fB, setLayerMask as fC, setLayerProperties as fD, shapeAsPixelLayer as fE, shapeFromAnnotation as fF, shapeGeometryBounds as fG, shapeLayers as fH, shapeOutline as fI, shapeRenderClip as fJ, shiftCoverage as fK, smartObjectLayers as fL, smoothCoverage as fM, srgb8ToLab as fN, textMatrix as fO, textOutlines as fP, textRange as fQ, toHex as fR, toTextSpace as fS, toneRange as fT, transformHomography as fU, transformMap as fV, transformShapeComponents as fW, transformTypeLayer as fX, transformedBox as fY, transformedPoint as fZ, typeAsPixelLayer as f_, requireOperation as fa, requireShapeLayer as fb, requireTypeLayer as fc, requireUnlocked as fd, rerenderShape as fe, rerenderText as ff, resizePixels as fg, resizeSelection as fh, resolveExternalAssets as fi, resolveProfile as fj, runLayerFilters as fk, selectionArea as fl, selectionFromCoverage as fm, selectionFromPixels as fn, selectionToCoverage as fo, selectionToPixels as fp, selectionValueAt as fq, serializeColorMode as fr, serializeColorProfile as fs, serializeContents as ft, serializeEffects as fu, serializeLayer as fv, serializeLayers as fw, serializeLayersExternal as fx, serializePatterns as fy, serializeSelection as fz, ImageEditorController as g, typeFromAnnotation as g0, typeLayerName as g1, ungroupLayer as g2, unionRect as g3, unprojectCanvasPoint as g4, updateLayerEffect as g5, updateLayerFilter as g6, updateLayerMaskProps as g7, updateShapeLayer as g8, updateTypeLayer as g9, withNewIds as ga, writePsd as gb, type SelectionMask as h, type SelectionMode as i, type ColorDistance as j, type ImagePoint as k, type ImageLayer as l, type CropBox as m, type RasterMask as n, type Annotation as o, type AdjustmentLayerNode as p, type AnnotationLayer as q, type ShapeLayer as r, type TypeLayer as s, type LayerFilter as t, type PixelLayer as u, type DevelopFilter as v, type ImageTransform as w, type ImageHistogram as x, type ImageProjection as y, type CompositorSources as z };