scanbot-web-sdk 8.0.0-rc.8 → 8.0.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 (36) hide show
  1. package/@types/core/bridge/worker-bridge.d.ts +56 -4
  2. package/@types/core/compiled/CheckDocumentModel.d.ts +5 -1
  3. package/@types/core/compiled/DocumentDataExtractorConfigurationTypes.d.ts +1 -20
  4. package/@types/core/compiled/ParametricFilters.d.ts +72 -1
  5. package/@types/scanbot-sdk.d.ts +28 -2
  6. package/@types/ui2/barcode/views/action-button/action-button.d.ts +1 -0
  7. package/@types/ui2/configuration/DocumentDataExtractorConfigurationTypes.d.ts +1 -1
  8. package/@types/ui2/configuration/common/CameraConfiguration.d.ts +3 -3
  9. package/@types/ui2/configuration/document/CameraScreenConfiguration.d.ts +1 -1
  10. package/@types/ui2/configuration/document/DocumentScannerCameraConfiguration.d.ts +3 -3
  11. package/@types/ui2/configuration/sdk/Camera.d.ts +7 -13
  12. package/@types/worker/worker-bridge.d.ts +56 -4
  13. package/bundle/ScanbotSDK.min.js +4 -4
  14. package/bundle/ScanbotSDK.ui2.min.js +8 -8
  15. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  16. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  17. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  18. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
  19. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  20. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
  21. package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
  22. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
  23. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  24. package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
  25. package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
  26. package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
  27. package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
  28. package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
  29. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  30. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  31. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  32. package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
  33. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  34. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
  35. package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
  36. package/package.json +1 -1
@@ -58,6 +58,10 @@ export declare class WorkerBridge {
58
58
  jpegQuality?: number;
59
59
  resamplingMethod?: import("../compiled/PdfConfigurationTypes").ResamplingMethod;
60
60
  binarizationFilter?: ({
61
+ filterType?: number;
62
+ } & {
63
+ readonly _type: "LegacyFilter";
64
+ }) | ({
61
65
  outputMode?: import("../compiled/ParametricFilters").OutputMode;
62
66
  } & {
63
67
  readonly _type: "ScanbotBinarizationFilter";
@@ -68,7 +72,16 @@ export declare class WorkerBridge {
68
72
  preset?: import("../compiled/ParametricFilters").BinarizationFilterPreset;
69
73
  } & {
70
74
  readonly _type: "CustomBinarizationFilter";
71
- }) | ({} & {
75
+ }) | ({
76
+ radius?: number;
77
+ borderWidthFraction?: number;
78
+ blackOutliersFraction?: number;
79
+ whiteOutliersFraction?: number;
80
+ contrastEnhancement?: number;
81
+ colorEnhancement?: number;
82
+ paperWhitening?: number;
83
+ paperWhiteningBias?: number;
84
+ } & {
72
85
  readonly _type: "ColorDocumentFilter";
73
86
  }) | ({
74
87
  brightness?: number;
@@ -117,6 +130,10 @@ export declare class WorkerBridge {
117
130
  });
118
131
  }[];
119
132
  binarizationFilter?: ({
133
+ filterType?: number;
134
+ } & {
135
+ readonly _type: "LegacyFilter";
136
+ }) | ({
120
137
  outputMode?: import("../compiled/ParametricFilters").OutputMode;
121
138
  } & {
122
139
  readonly _type: "ScanbotBinarizationFilter";
@@ -127,7 +144,16 @@ export declare class WorkerBridge {
127
144
  preset?: import("../compiled/ParametricFilters").BinarizationFilterPreset;
128
145
  } & {
129
146
  readonly _type: "CustomBinarizationFilter";
130
- }) | ({} & {
147
+ }) | ({
148
+ radius?: number;
149
+ borderWidthFraction?: number;
150
+ blackOutliersFraction?: number;
151
+ whiteOutliersFraction?: number;
152
+ contrastEnhancement?: number;
153
+ colorEnhancement?: number;
154
+ paperWhitening?: number;
155
+ paperWhiteningBias?: number;
156
+ } & {
131
157
  readonly _type: "ColorDocumentFilter";
132
158
  }) | ({
133
159
  brightness?: number;
@@ -191,6 +217,10 @@ export declare class WorkerBridge {
191
217
  jpegQuality?: number;
192
218
  resamplingMethod?: import("../compiled/PdfConfigurationTypes").ResamplingMethod;
193
219
  binarizationFilter?: ({
220
+ filterType?: number;
221
+ } & {
222
+ readonly _type: "LegacyFilter";
223
+ }) | ({
194
224
  outputMode?: import("../compiled/ParametricFilters").OutputMode;
195
225
  } & {
196
226
  readonly _type: "ScanbotBinarizationFilter";
@@ -201,7 +231,16 @@ export declare class WorkerBridge {
201
231
  preset?: import("../compiled/ParametricFilters").BinarizationFilterPreset;
202
232
  } & {
203
233
  readonly _type: "CustomBinarizationFilter";
204
- }) | ({} & {
234
+ }) | ({
235
+ radius?: number;
236
+ borderWidthFraction?: number;
237
+ blackOutliersFraction?: number;
238
+ whiteOutliersFraction?: number;
239
+ contrastEnhancement?: number;
240
+ colorEnhancement?: number;
241
+ paperWhitening?: number;
242
+ paperWhiteningBias?: number;
243
+ } & {
205
244
  readonly _type: "ColorDocumentFilter";
206
245
  }) | ({
207
246
  brightness?: number;
@@ -250,6 +289,10 @@ export declare class WorkerBridge {
250
289
  });
251
290
  }[];
252
291
  binarizationFilter?: ({
292
+ filterType?: number;
293
+ } & {
294
+ readonly _type: "LegacyFilter";
295
+ }) | ({
253
296
  outputMode?: import("../compiled/ParametricFilters").OutputMode;
254
297
  } & {
255
298
  readonly _type: "ScanbotBinarizationFilter";
@@ -260,7 +303,16 @@ export declare class WorkerBridge {
260
303
  preset?: import("../compiled/ParametricFilters").BinarizationFilterPreset;
261
304
  } & {
262
305
  readonly _type: "CustomBinarizationFilter";
263
- }) | ({} & {
306
+ }) | ({
307
+ radius?: number;
308
+ borderWidthFraction?: number;
309
+ blackOutliersFraction?: number;
310
+ whiteOutliersFraction?: number;
311
+ contrastEnhancement?: number;
312
+ colorEnhancement?: number;
313
+ paperWhitening?: number;
314
+ paperWhiteningBias?: number;
315
+ } & {
264
316
  readonly _type: "ColorDocumentFilter";
265
317
  }) | ({
266
318
  brightness?: number;
@@ -27,8 +27,12 @@ export declare class USACheck extends Check {
27
27
  requiredDocumentType(): string;
28
28
  /** Account number */
29
29
  get accountNumber(): Field;
30
- /** Auxiliary On-Us */
30
+ /** Auxiliary On-Us field. For business checks this is often the serial number of the check. */
31
31
  get auxiliaryOnUs(): Field | undefined;
32
+ /** This field is often the check number, though it cannot be guaranteed as it is up to the discretion of the
33
+ issuing bank.
34
+ */
35
+ get checkNumber(): Field;
32
36
  /** Transit number */
33
37
  get transitNumber(): Field;
34
38
  }
@@ -3,7 +3,7 @@ import { MrzDocumentType } from "./MrzTypes";
3
3
  /**
4
4
  Base class for all document data extraction configuration elements.
5
5
  */
6
- export type DocumentDataExtractorConfigurationElement = DateValidationConfiguration | DeAddressParserConfiguration | EuropeanHealthInsuranceCardConfiguration | MrzFallbackConfiguration | AutoFocusConfiguration | GlareDetectionConfiguration | DocumentDataExtractorCommonConfiguration;
6
+ export type DocumentDataExtractorConfigurationElement = DateValidationConfiguration | EuropeanHealthInsuranceCardConfiguration | MrzFallbackConfiguration | AutoFocusConfiguration | GlareDetectionConfiguration | DocumentDataExtractorCommonConfiguration;
7
7
  /** @internal */
8
8
  export declare namespace DocumentDataExtractorConfigurationElement {
9
9
  /** @internal */
@@ -34,25 +34,6 @@ export declare class DateValidationConfiguration {
34
34
  constructor(source?: DeepPartial<DateValidationConfiguration>);
35
35
  }
36
36
  /**
37
- German Address Field validation configuration.
38
- This configuration does not enable the scanning of any document types by itself.
39
- Add to recognizer configuration to require German Address validation checks for specific document types.
40
- */
41
- export declare class DeAddressParserConfiguration {
42
- readonly _type: "DeAddressParserConfiguration";
43
- /**
44
- List of generic document formats for which German Address validation has to be applied.
45
- */
46
- documentTypes: string[];
47
- /**
48
- binary file with address database.
49
- @defaultValue "";
50
- */
51
- binaryFileAddressDatabase: string;
52
- /** @param source {@displayType `DeepPartial<DeAddressParserConfiguration>`} */
53
- constructor(source?: DeepPartial<DeAddressParserConfiguration>);
54
- }
55
- /**
56
37
  European Health Insurance Card (EHIC) issuing country.
57
38
 
58
39
  - `AUSTRIA`:
@@ -68,13 +68,26 @@ export declare const BinarizationFilterPresetValues: ReadonlyArray<BinarizationF
68
68
  /**
69
69
  Base class for all parametric filters.
70
70
  */
71
- export type ParametricFilter = ScanbotBinarizationFilter | CustomBinarizationFilter | ColorDocumentFilter | BrightnessFilter | ContrastFilter | GrayscaleFilter | WhiteBlackPointFilter;
71
+ export type ParametricFilter = LegacyFilter | ScanbotBinarizationFilter | CustomBinarizationFilter | ColorDocumentFilter | BrightnessFilter | ContrastFilter | GrayscaleFilter | WhiteBlackPointFilter;
72
72
  /** @internal */
73
73
  export declare namespace ParametricFilter {
74
74
  /** @internal */
75
75
  function from(source: DeepPartial<ParametricFilter>): ParametricFilter;
76
76
  }
77
77
  /**
78
+ Deprecated. Returns the input image unchanged.
79
+ */
80
+ export declare class LegacyFilter {
81
+ readonly _type: "LegacyFilter";
82
+ /**
83
+ Ignored.
84
+ @defaultValue 0;
85
+ */
86
+ filterType: number;
87
+ /** @param source {@displayType `DeepPartial<LegacyFilter>`} */
88
+ constructor(source?: DeepPartial<LegacyFilter>);
89
+ }
90
+ /**
78
91
  Automatic binarization filter. This filter is a good starting point for most use cases.
79
92
  */
80
93
  export declare class ScanbotBinarizationFilter {
@@ -125,6 +138,64 @@ Color document filter. This filter is a good starting point for most use cases.
125
138
  */
126
139
  export declare class ColorDocumentFilter {
127
140
  readonly _type: "ColorDocumentFilter";
141
+ /**
142
+ Filter radius. The bigger the radius, the slower the filter and generally the less noise in the result.
143
+ The radius is used for both shadows removal and the calculation of local statistics in the main body of the filter.
144
+ Higher radius usually allows to cope better with regions of light text on dark background.
145
+ All the values larger than 127 are clamped to 127.
146
+ @defaultValue 32;
147
+ */
148
+ radius: number;
149
+ /**
150
+ Ignore this fraction of pixels at the edge of the image when calculating statistics.
151
+ Pixels at the edge of the image typically have poor statistics. Ignoring them
152
+ and using only the inner pixels when calculating certain statistics can
153
+ substantially improve the quality of the result.
154
+ The value must be less than 0.5 but usually good values are between 0 and 0.15.
155
+ @defaultValue 0.06;
156
+ */
157
+ borderWidthFraction: number;
158
+ /**
159
+ Clip this fraction of the darkest pixels in operations such as autocontrast.
160
+ Increasing the range of middle gray levels at the expense of the brightest and darkest levels
161
+ may improve the overall contrast and quality of the result.
162
+ Sum of blackOutliersFraction and whiteOutliersFraction must be less than 1 but usually
163
+ good values for the parameters do not exceed 0.05;.
164
+ @defaultValue 0.0;
165
+ */
166
+ blackOutliersFraction: number;
167
+ /**
168
+ Clip this fraction of the brightest pixels in operations such as autocontrast.
169
+ Increasing the range of middle gray levels at the expense of the brightest and darkest levels
170
+ may improve the overall contrast and quality of the result.
171
+ Sum of blackOutliersFraction and whiteOutliersFraction must be less than 1 but usually
172
+ good values for the parameters do not exceed 0.05;.
173
+ @defaultValue 0.02;
174
+ */
175
+ whiteOutliersFraction: number;
176
+ /**
177
+ Strength of contrast enhancement. Typical values are between 0 and 1, although higher values are possible.
178
+ @defaultValue 0.5;
179
+ */
180
+ contrastEnhancement: number;
181
+ /**
182
+ Strength of color saturation enhancement. Typical values are between 0 and 1, although higher values are possible.
183
+ @defaultValue 0.5;
184
+ */
185
+ colorEnhancement: number;
186
+ /**
187
+ Paper whitening strength balances color enhancement and paper color improvement.
188
+ Only relevant if colorEnhancement is above 0. Typical values are between 0 and 2.
189
+ @defaultValue 1.0;
190
+ */
191
+ paperWhitening: number;
192
+ /**
193
+ Paper whitening bias balances between whitening more of the paper of preserving more of the colors.
194
+ Negative values will preserve more colors, positive values will whiten more of the paper.
195
+ Only relevant if colorEnhancement is above 0. Typical values are between -25 and 25.
196
+ @defaultValue 0;
197
+ */
198
+ paperWhiteningBias: number;
128
199
  /** @param source {@displayType `DeepPartial<ColorDocumentFilter>`} */
129
200
  constructor(source?: DeepPartial<ColorDocumentFilter>);
130
201
  }
@@ -121,6 +121,10 @@ export default class ScanbotSDK {
121
121
  jpegQuality?: number;
122
122
  resamplingMethod?: Config.ResamplingMethod;
123
123
  binarizationFilter?: ({
124
+ filterType?: number;
125
+ } & {
126
+ readonly _type: "LegacyFilter";
127
+ }) | ({
124
128
  outputMode?: Config.OutputMode;
125
129
  } & {
126
130
  readonly _type: "ScanbotBinarizationFilter";
@@ -131,7 +135,16 @@ export default class ScanbotSDK {
131
135
  preset?: Config.BinarizationFilterPreset;
132
136
  } & {
133
137
  readonly _type: "CustomBinarizationFilter";
134
- }) | ({} & {
138
+ }) | ({
139
+ radius?: number;
140
+ borderWidthFraction?: number;
141
+ blackOutliersFraction?: number;
142
+ whiteOutliersFraction?: number;
143
+ contrastEnhancement?: number;
144
+ colorEnhancement?: number;
145
+ paperWhitening?: number;
146
+ paperWhiteningBias?: number;
147
+ } & {
135
148
  readonly _type: "ColorDocumentFilter";
136
149
  }) | ({
137
150
  brightness?: number;
@@ -180,6 +193,10 @@ export default class ScanbotSDK {
180
193
  });
181
194
  }[];
182
195
  binarizationFilter?: ({
196
+ filterType?: number;
197
+ } & {
198
+ readonly _type: "LegacyFilter";
199
+ }) | ({
183
200
  outputMode?: Config.OutputMode;
184
201
  } & {
185
202
  readonly _type: "ScanbotBinarizationFilter";
@@ -190,7 +207,16 @@ export default class ScanbotSDK {
190
207
  preset?: Config.BinarizationFilterPreset;
191
208
  } & {
192
209
  readonly _type: "CustomBinarizationFilter";
193
- }) | ({} & {
210
+ }) | ({
211
+ radius?: number;
212
+ borderWidthFraction?: number;
213
+ blackOutliersFraction?: number;
214
+ whiteOutliersFraction?: number;
215
+ contrastEnhancement?: number;
216
+ colorEnhancement?: number;
217
+ paperWhitening?: number;
218
+ paperWhiteningBias?: number;
219
+ } & {
194
220
  readonly _type: "ColorDocumentFilter";
195
221
  }) | ({
196
222
  brightness?: number;
@@ -10,4 +10,5 @@ export declare class Props extends RoundButton {
10
10
  }
11
11
  export declare const ACTION_BUTTON_HEIGHT = 48;
12
12
  export declare const ACTION_BUTTON_PADDING = 16;
13
+ export declare const ACTION_BUTTON_BAR_HEIGHT: number;
13
14
  export default function ActionButton(props: Props): React.JSX.Element;
@@ -1 +1 @@
1
- export type { AutoFocusConfiguration, DateValidationConfiguration, DeAddressParserConfiguration, DocumentDataExtractorCommonConfiguration, DocumentDataExtractorConfigurationElement, EuropeanHealthInsuranceCardConfiguration, EuropeanHealthInsuranceCardIssuingCountryValues, EuropeanHealthInsuranceCardIssuingCountry, GlareDetectionConfiguration, MrzFallbackConfiguration, } from "../../core-types";
1
+ export type { AutoFocusConfiguration, DateValidationConfiguration, DocumentDataExtractorCommonConfiguration, DocumentDataExtractorConfigurationElement, EuropeanHealthInsuranceCardConfiguration, EuropeanHealthInsuranceCardIssuingCountryValues, EuropeanHealthInsuranceCardIssuingCountry, GlareDetectionConfiguration, MrzFallbackConfiguration, } from "../../core-types";
@@ -1,5 +1,5 @@
1
1
  import type { DeepPartial } from "../utils";
2
- import { AnalyzerFrameResolution } from "../sdk/Camera";
2
+ import { CameraLiveScannerResolution } from "../sdk/Camera";
3
3
  /**
4
4
  The ideal resolution of the camera preview.
5
5
  */
@@ -72,10 +72,10 @@ export declare class CameraConfiguration {
72
72
  */
73
73
  fpsLimit: number;
74
74
  /**
75
- The size of the image from camera which would be sent to the scanner for analysis.
75
+ The size of the image from camera which would be sent to the scanner for live scanning.
76
76
  @defaultValue "FULL_HD";
77
77
  */
78
- analyzerFrameResolution: AnalyzerFrameResolution;
78
+ cameraLiveScannerResolution: CameraLiveScannerResolution;
79
79
  /** @param source {@displayType `DeepPartial<CameraConfiguration>`} */
80
80
  constructor(source?: DeepPartial<CameraConfiguration>);
81
81
  }
@@ -549,7 +549,7 @@ export declare class CameraScreenConfiguration {
549
549
  */
550
550
  backgroundColor: string;
551
551
  /**
552
- If set to true, images imported from the gallery/photo library will be analyzed and eventually rotated to correct their orientation.
552
+ If set to true, images captured by the camera or imported from the gallery or photo library will be analyzed and automatically rotated to correct their orientation.
553
553
  @defaultValue true;
554
554
  */
555
555
  autoRotateImages: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { DeepPartial } from "../utils";
2
- import { AnalyzerFrameResolution } from "../sdk/Camera";
2
+ import { CameraLiveScannerResolution } from "../sdk/Camera";
3
3
  import { CameraModule } from "../common/CameraConfiguration";
4
4
  import { Resolution } from "../common/CameraConfiguration";
5
5
  /**
@@ -50,10 +50,10 @@ export declare class DocumentScannerCameraConfiguration {
50
50
  */
51
51
  fpsLimit: number;
52
52
  /**
53
- The size of the image from camera which would be sent to the scanner for analysis.
53
+ The size of the image from camera which would be sent to the scanner for live scanning.
54
54
  @defaultValue "FULL_HD";
55
55
  */
56
- analyzerFrameResolution: AnalyzerFrameResolution;
56
+ cameraLiveScannerResolution: CameraLiveScannerResolution;
57
57
  /** @param source {@displayType `DeepPartial<DocumentScannerCameraConfiguration>`} */
58
58
  constructor(source?: DeepPartial<DocumentScannerCameraConfiguration>);
59
59
  }
@@ -1,31 +1,25 @@
1
1
  /**
2
- The size of the image from camera which would be send to the scanner for analysis.
2
+ The size of the image from camera which would be sent to the scanner for live scanning.
3
3
 
4
- - `HD`:
5
- The image is in HD resolution. 1280x720 pixels or close to it.
4
+ - `AUTO`:
5
+ Select to the image resolution automatically based on device specifics.
6
6
  - `FULL_HD`:
7
7
  The image is in Full HD resolution. 1920x1080 pixels or close to it.
8
- - `QHD`:
9
- The image is in QHD resolution. 2560x1440 pixels or close to it.
10
8
  - `UHD`:
11
9
  The image is in UHD resolution. 3840x2160 pixels or close to it.
12
10
  */
13
- export type AnalyzerFrameResolution =
11
+ export type CameraLiveScannerResolution =
14
12
  /**
15
- The image is in HD resolution. 1280x720 pixels or close to it.
13
+ Select to the image resolution automatically based on device specifics.
16
14
  */
17
- "HD"
15
+ "AUTO"
18
16
  /**
19
17
  The image is in Full HD resolution. 1920x1080 pixels or close to it.
20
18
  */
21
19
  | "FULL_HD"
22
- /**
23
- The image is in QHD resolution. 2560x1440 pixels or close to it.
24
- */
25
- | "QHD"
26
20
  /**
27
21
  The image is in UHD resolution. 3840x2160 pixels or close to it.
28
22
  */
29
23
  | "UHD";
30
24
  /** @hidden */
31
- export declare const AnalyzerFrameResolutionValues: ReadonlyArray<AnalyzerFrameResolution>;
25
+ export declare const CameraLiveScannerResolutionValues: ReadonlyArray<CameraLiveScannerResolution>;
@@ -43,6 +43,10 @@ export declare class WorkerBridge {
43
43
  jpegQuality?: number;
44
44
  resamplingMethod?: import("../core-types").ResamplingMethod;
45
45
  binarizationFilter?: ({
46
+ filterType?: number;
47
+ } & {
48
+ readonly _type: "LegacyFilter";
49
+ }) | ({
46
50
  outputMode?: import("../core-types").OutputMode;
47
51
  } & {
48
52
  readonly _type: "ScanbotBinarizationFilter";
@@ -53,7 +57,16 @@ export declare class WorkerBridge {
53
57
  preset?: import("../core-types").BinarizationFilterPreset;
54
58
  } & {
55
59
  readonly _type: "CustomBinarizationFilter";
56
- }) | ({} & {
60
+ }) | ({
61
+ radius?: number;
62
+ borderWidthFraction?: number;
63
+ blackOutliersFraction?: number;
64
+ whiteOutliersFraction?: number;
65
+ contrastEnhancement?: number;
66
+ colorEnhancement?: number;
67
+ paperWhitening?: number;
68
+ paperWhiteningBias?: number;
69
+ } & {
57
70
  readonly _type: "ColorDocumentFilter";
58
71
  }) | ({
59
72
  brightness?: number;
@@ -102,6 +115,10 @@ export declare class WorkerBridge {
102
115
  });
103
116
  }[];
104
117
  binarizationFilter?: ({
118
+ filterType?: number;
119
+ } & {
120
+ readonly _type: "LegacyFilter";
121
+ }) | ({
105
122
  outputMode?: import("../core-types").OutputMode;
106
123
  } & {
107
124
  readonly _type: "ScanbotBinarizationFilter";
@@ -112,7 +129,16 @@ export declare class WorkerBridge {
112
129
  preset?: import("../core-types").BinarizationFilterPreset;
113
130
  } & {
114
131
  readonly _type: "CustomBinarizationFilter";
115
- }) | ({} & {
132
+ }) | ({
133
+ radius?: number;
134
+ borderWidthFraction?: number;
135
+ blackOutliersFraction?: number;
136
+ whiteOutliersFraction?: number;
137
+ contrastEnhancement?: number;
138
+ colorEnhancement?: number;
139
+ paperWhitening?: number;
140
+ paperWhiteningBias?: number;
141
+ } & {
116
142
  readonly _type: "ColorDocumentFilter";
117
143
  }) | ({
118
144
  brightness?: number;
@@ -176,6 +202,10 @@ export declare class WorkerBridge {
176
202
  jpegQuality?: number;
177
203
  resamplingMethod?: import("../core-types").ResamplingMethod;
178
204
  binarizationFilter?: ({
205
+ filterType?: number;
206
+ } & {
207
+ readonly _type: "LegacyFilter";
208
+ }) | ({
179
209
  outputMode?: import("../core-types").OutputMode;
180
210
  } & {
181
211
  readonly _type: "ScanbotBinarizationFilter";
@@ -186,7 +216,16 @@ export declare class WorkerBridge {
186
216
  preset?: import("../core-types").BinarizationFilterPreset;
187
217
  } & {
188
218
  readonly _type: "CustomBinarizationFilter";
189
- }) | ({} & {
219
+ }) | ({
220
+ radius?: number;
221
+ borderWidthFraction?: number;
222
+ blackOutliersFraction?: number;
223
+ whiteOutliersFraction?: number;
224
+ contrastEnhancement?: number;
225
+ colorEnhancement?: number;
226
+ paperWhitening?: number;
227
+ paperWhiteningBias?: number;
228
+ } & {
190
229
  readonly _type: "ColorDocumentFilter";
191
230
  }) | ({
192
231
  brightness?: number;
@@ -235,6 +274,10 @@ export declare class WorkerBridge {
235
274
  });
236
275
  }[];
237
276
  binarizationFilter?: ({
277
+ filterType?: number;
278
+ } & {
279
+ readonly _type: "LegacyFilter";
280
+ }) | ({
238
281
  outputMode?: import("../core-types").OutputMode;
239
282
  } & {
240
283
  readonly _type: "ScanbotBinarizationFilter";
@@ -245,7 +288,16 @@ export declare class WorkerBridge {
245
288
  preset?: import("../core-types").BinarizationFilterPreset;
246
289
  } & {
247
290
  readonly _type: "CustomBinarizationFilter";
248
- }) | ({} & {
291
+ }) | ({
292
+ radius?: number;
293
+ borderWidthFraction?: number;
294
+ blackOutliersFraction?: number;
295
+ whiteOutliersFraction?: number;
296
+ contrastEnhancement?: number;
297
+ colorEnhancement?: number;
298
+ paperWhitening?: number;
299
+ paperWhiteningBias?: number;
300
+ } & {
249
301
  readonly _type: "ColorDocumentFilter";
250
302
  }) | ({
251
303
  brightness?: number;