chrome-types 0.1.405 → 0.1.407

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 (3) hide show
  1. package/_all.d.ts +23 -357
  2. package/index.d.ts +17 -247
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Tue Jan 06 2026 22:34:25 GMT+0000 (Coordinated Universal Time)
18
- // Built at 6e48d4846be29f4a9aaed3eb462a776dde83c792
17
+ // Generated on Wed Jan 07 2026 15:45:17 GMT+0000 (Coordinated Universal Time)
18
+ // Built at b53c887388cda795521d8f71e46844d3fc36967a
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -876,7 +876,6 @@ declare namespace chrome {
876
876
  *
877
877
  * @param name Optional name to identify this alarm. Defaults to the empty string.
878
878
  * @param alarmInfo Describes when the alarm should fire. The initial time must be specified by either `when` or `delayInMinutes` (but not both). If `periodInMinutes` is set, the alarm will repeat every `periodInMinutes` minutes after the initial event. If neither `when` or `delayInMinutes` is set for a repeating alarm, `periodInMinutes` is used as the default for `delayInMinutes`.
879
- * @param callback Promise that resolves when the alarm has been created.
880
879
  */
881
880
  export function create(
882
881
 
@@ -898,7 +897,6 @@ declare namespace chrome {
898
897
  * To help you debug your app or extension, when you've loaded it unpacked, there's no limit to how often the alarm can fire.
899
898
  *
900
899
  * @param alarmInfo Describes when the alarm should fire. The initial time must be specified by either `when` or `delayInMinutes` (but not both). If `periodInMinutes` is set, the alarm will repeat every `periodInMinutes` minutes after the initial event. If neither `when` or `delayInMinutes` is set for a repeating alarm, `periodInMinutes` is used as the default for `delayInMinutes`.
901
- * @param callback Promise that resolves when the alarm has been created.
902
900
  */
903
901
  export function create(
904
902
 
@@ -1161,7 +1159,6 @@ declare namespace chrome {
1161
1159
  * Gets a list of audio devices filtered based on `filter`.
1162
1160
  *
1163
1161
  * @param filter Device properties by which to filter the list of returned audio devices. If the filter is not set or set to `{}`, returned device list will contain all available audio devices.
1164
- * @param callback Reports the requested list of audio devices.
1165
1162
  */
1166
1163
  export function getDevices(
1167
1164
 
@@ -1242,7 +1239,6 @@ declare namespace chrome {
1242
1239
  * Gets the system-wide mute state for the specified stream type.
1243
1240
  *
1244
1241
  * @param streamType Stream type for which mute state should be fetched.
1245
- * @param callback Promise that resolves with a boolean indicating whether mute is set or not for specified stream type.
1246
1242
  */
1247
1243
  export function getMute(
1248
1244
 
@@ -2000,7 +1996,6 @@ declare namespace chrome {
2000
1996
  * Clears various types of browsing data stored in a user's profile.
2001
1997
  *
2002
1998
  * @param dataToRemove The set of data types to remove.
2003
- * @param callback Resolves when deletion has completed.
2004
1999
  */
2005
2000
  export function remove(
2006
2001
 
@@ -2023,8 +2018,6 @@ declare namespace chrome {
2023
2018
 
2024
2019
  /**
2025
2020
  * Clears websites' appcache data.
2026
- *
2027
- * @param callback Resolves when websites' appcache data has been cleared.
2028
2021
  */
2029
2022
  export function removeAppcache(
2030
2023
 
@@ -2045,8 +2038,6 @@ declare namespace chrome {
2045
2038
 
2046
2039
  /**
2047
2040
  * Clears the browser's cache.
2048
- *
2049
- * @param callback Resolves when the browser's cache has been cleared.
2050
2041
  */
2051
2042
  export function removeCache(
2052
2043
 
@@ -2069,7 +2060,6 @@ declare namespace chrome {
2069
2060
  /**
2070
2061
  * Clears websites' cache storage data.
2071
2062
  *
2072
- * @param callback Resolves when websites' cache storage has been cleared.
2073
2063
  * @since Chrome 72
2074
2064
  */
2075
2065
  export function removeCacheStorage(
@@ -2091,8 +2081,6 @@ declare namespace chrome {
2091
2081
 
2092
2082
  /**
2093
2083
  * Clears the browser's cookies and server-bound certificates modified within a particular timeframe.
2094
- *
2095
- * @param callback Resolves when the browser's cookies and server-bound certificates have been cleared.
2096
2084
  */
2097
2085
  export function removeCookies(
2098
2086
 
@@ -2113,8 +2101,6 @@ declare namespace chrome {
2113
2101
 
2114
2102
  /**
2115
2103
  * Clears the browser's list of downloaded files (_not_ the downloaded files themselves).
2116
- *
2117
- * @param callback Resolves when the browser's list of downloaded files has been cleared.
2118
2104
  */
2119
2105
  export function removeDownloads(
2120
2106
 
@@ -2135,8 +2121,6 @@ declare namespace chrome {
2135
2121
 
2136
2122
  /**
2137
2123
  * Clears websites' file system data.
2138
- *
2139
- * @param callback Resolves when websites' file systems have been cleared.
2140
2124
  */
2141
2125
  export function removeFileSystems(
2142
2126
 
@@ -2157,8 +2141,6 @@ declare namespace chrome {
2157
2141
 
2158
2142
  /**
2159
2143
  * Clears the browser's stored form data (autofill).
2160
- *
2161
- * @param callback Resolves when the browser's form data has been cleared.
2162
2144
  */
2163
2145
  export function removeFormData(
2164
2146
 
@@ -2179,8 +2161,6 @@ declare namespace chrome {
2179
2161
 
2180
2162
  /**
2181
2163
  * Clears the browser's history.
2182
- *
2183
- * @param callback Resolves when the browser's history has cleared.
2184
2164
  */
2185
2165
  export function removeHistory(
2186
2166
 
@@ -2201,8 +2181,6 @@ declare namespace chrome {
2201
2181
 
2202
2182
  /**
2203
2183
  * Clears websites' IndexedDB data.
2204
- *
2205
- * @param callback Resolves when websites' IndexedDB data has been cleared.
2206
2184
  */
2207
2185
  export function removeIndexedDB(
2208
2186
 
@@ -2223,8 +2201,6 @@ declare namespace chrome {
2223
2201
 
2224
2202
  /**
2225
2203
  * Clears websites' local storage data.
2226
- *
2227
- * @param callback Resolves when websites' local storage has been cleared.
2228
2204
  */
2229
2205
  export function removeLocalStorage(
2230
2206
 
@@ -2248,7 +2224,6 @@ declare namespace chrome {
2248
2224
  /**
2249
2225
  * Clears plugins' data.
2250
2226
  *
2251
- * @param callback Resolves when plugins' data has been cleared.
2252
2227
  * @deprecated Support for Flash has been removed. This function has no effect.
2253
2228
  * @chrome-deprecated-since Chrome 88
2254
2229
  */
@@ -2273,7 +2248,6 @@ declare namespace chrome {
2273
2248
  /**
2274
2249
  * Clears the browser's stored passwords.
2275
2250
  *
2276
- * @param callback Resolves when the browser's passwords have been cleared.
2277
2251
  * @deprecated Support for password deletion through extensions has been removed. This function has no effect.
2278
2252
  */
2279
2253
  export function removePasswords(
@@ -2297,7 +2271,6 @@ declare namespace chrome {
2297
2271
  /**
2298
2272
  * Clears websites' service workers.
2299
2273
  *
2300
- * @param callback Resolves when websites' service workers have been cleared.
2301
2274
  * @since Chrome 72
2302
2275
  */
2303
2276
  export function removeServiceWorkers(
@@ -2319,8 +2292,6 @@ declare namespace chrome {
2319
2292
 
2320
2293
  /**
2321
2294
  * Clears websites' WebSQL data.
2322
- *
2323
- * @param callback Resolves when websites' WebSQL databases have been cleared.
2324
2295
  */
2325
2296
  export function removeWebSQL(
2326
2297
 
@@ -2617,7 +2588,6 @@ declare namespace chrome {
2617
2588
  * Requests the PIN from the user. Only one ongoing request at a time is allowed. The requests issued while another flow is ongoing are rejected. It's the extension's responsibility to try again later if another flow is in progress.
2618
2589
  *
2619
2590
  * @param details Contains the details about the requested dialog.
2620
- * @param callback Returns a Promise which resolves when the PIN is provided by the user. Rejects with an error if the dialog request finishes unsuccessfully (e.g. the dialog was canceled by the user or was not allowed to be shown).
2621
2591
  * @since Chrome 57
2622
2592
  */
2623
2593
  export function requestPin(
@@ -2645,7 +2615,6 @@ declare namespace chrome {
2645
2615
  * Stops the pin request started by the {@link requestPin} function.
2646
2616
  *
2647
2617
  * @param details Contains the details about the reason for stopping the request flow.
2648
- * @param callback Returns a Promise which resolves when the request to close the PIN dialog is complete.
2649
2618
  * @since Chrome 57
2650
2619
  */
2651
2620
  export function stopPinRequest(
@@ -2675,7 +2644,6 @@ declare namespace chrome {
2675
2644
  * The extension should call this function after initialization and on every change in the set of currently available certificates. The extension should also call this function in response to {@link onCertificatesUpdateRequested} every time this event is received.
2676
2645
  *
2677
2646
  * @param details The certificates to set. Invalid certificates will be ignored.
2678
- * @param callback Returns a Promise which resolves upon completion.
2679
2647
  * @since Chrome 86
2680
2648
  */
2681
2649
  export function setCertificates(
@@ -2784,8 +2752,6 @@ declare namespace chrome {
2784
2752
 
2785
2753
  /**
2786
2754
  * Returns all the registered extension commands for this extension and their shortcut (if active). Before Chrome 110, this command did not return `_execute_action`.
2787
- *
2788
- * @param callback Resolves with a list of the registered commands.
2789
2755
  */
2790
2756
  export function getAll(
2791
2757
 
@@ -3560,7 +3526,6 @@ declare namespace chrome {
3560
3526
  *
3561
3527
  * @param id The ID of the item to update.
3562
3528
  * @param updateProperties The properties to update. Accepts the same values as the {@link contextMenus.create} function.
3563
- * @param callback Resolves when the context menu has been updated.
3564
3529
  */
3565
3530
  export function update(
3566
3531
 
@@ -3627,7 +3592,6 @@ declare namespace chrome {
3627
3592
  * Removes a context menu item.
3628
3593
  *
3629
3594
  * @param menuItemId The ID of the context menu item to remove.
3630
- * @param callback Resolves when the context menu has been removed.
3631
3595
  */
3632
3596
  export function remove(
3633
3597
 
@@ -3645,8 +3609,6 @@ declare namespace chrome {
3645
3609
 
3646
3610
  /**
3647
3611
  * Removes all context menu items added by this extension.
3648
- *
3649
- * @param callback Resolves when removal is complete.
3650
3612
  */
3651
3613
  export function removeAll(
3652
3614
 
@@ -4440,7 +4402,6 @@ declare namespace chrome {
4440
4402
  *
4441
4403
  * @param target Debugging target to which you want to attach.
4442
4404
  * @param requiredVersion Required debugging protocol version ("0.1"). One can only attach to the debuggee with matching major version and greater or equal minor version. List of the protocol versions can be obtained [here](https://developer.chrome.com/devtools/docs/debugger-protocol).
4443
- * @param callback Resolves once the attach operation succeeds or fails. The promise resolves with no value. If the attach fails, the promise will be rejected.
4444
4405
  */
4445
4406
  export function attach(
4446
4407
 
@@ -4466,7 +4427,6 @@ declare namespace chrome {
4466
4427
  * Detaches debugger from the given target.
4467
4428
  *
4468
4429
  * @param target Debugging target from which you want to detach.
4469
- * @param callback Resolves once the detach operation succeeds or fails. The promise resolves with no value. If the detach fails, the promise will be rejected.
4470
4430
  */
4471
4431
  export function detach(
4472
4432
 
@@ -4498,7 +4458,6 @@ declare namespace chrome {
4498
4458
  * @param target Debugging target to which you want to send the command.
4499
4459
  * @param method Method name. Should be one of the methods defined by the [remote debugging protocol](https://developer.chrome.com/devtools/docs/debugger-protocol).
4500
4460
  * @param commandParams JSON object with request parameters. This object must conform to the remote debugging params scheme for given method.
4501
- * @param callback Response body. If an error occurs while posting the message, the promise will be rejected.
4502
4461
  */
4503
4462
  export function sendCommand(
4504
4463
 
@@ -5565,8 +5524,6 @@ declare namespace chrome {
5565
5524
  * * These rules are persisted across browser sessions and across extension updates.
5566
5525
  * * Static rules specified as part of the extension package can not be removed using this function.
5567
5526
  * * {@link MAX_NUMBER_OF_DYNAMIC_RULES} is the maximum number of dynamic rules an extension can add. The number of [unsafe rules](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#safe_rules) must not exceed {@link MAX_NUMBER_OF_UNSAFE_DYNAMIC_RULES}.
5568
- *
5569
- * @param callback Promise that resolves once the update is complete. In case of an error, the promise will be rejected and no change will be made to the rule set. This can happen for multiple reasons, such as invalid rule format, duplicate rule ID, rule count limit exceeded, internal errors, and others.
5570
5527
  */
5571
5528
  export function updateDynamicRules(
5572
5529
 
@@ -5596,7 +5553,6 @@ declare namespace chrome {
5596
5553
  * Returns the current set of dynamic rules for the extension. Callers can optionally filter the list of fetched rules by specifying a `filter`.
5597
5554
  *
5598
5555
  * @param filter An object to filter the list of fetched rules.
5599
- * @param callback Promise that resolves with the set of dynamic rules. The Promise may be rejected in case of transient internal errors.
5600
5556
  */
5601
5557
  export function getDynamicRules(
5602
5558
 
@@ -5632,7 +5588,6 @@ declare namespace chrome {
5632
5588
  * * These rules are not persisted across sessions and are backed in memory.
5633
5589
  * * {@link MAX_NUMBER_OF_SESSION_RULES} is the maximum number of session rules an extension can add.
5634
5590
  *
5635
- * @param callback Promise that resolves once the update is complete. In case of an error, the promise will be rejected and no change will be made to the rule set. This can happen for multiple reasons, such as invalid rule format, duplicate rule ID, rule count limit exceeded, and others.
5636
5591
  * @since Chrome 90
5637
5592
  */
5638
5593
  export function updateSessionRules(
@@ -5661,7 +5616,6 @@ declare namespace chrome {
5661
5616
  * Returns the current set of session scoped rules for the extension. Callers can optionally filter the list of fetched rules by specifying a `filter`.
5662
5617
  *
5663
5618
  * @param filter An object to filter the list of fetched rules.
5664
- * @param callback Promise that resolves with the set of session scoped rules.
5665
5619
  * @since Chrome 90
5666
5620
  */
5667
5621
  export function getSessionRules(
@@ -5693,8 +5647,6 @@ declare namespace chrome {
5693
5647
  /**
5694
5648
  * Updates the set of enabled static rulesets for the extension. The rulesets with IDs listed in `options.disableRulesetIds` are first removed, and then the rulesets listed in `options.enableRulesetIds` are added.
5695
5649
  * Note that the set of enabled static rulesets is persisted across sessions but not across extension updates, i.e. the `rule_resources` manifest key will determine the set of enabled static rulesets on each extension update.
5696
- *
5697
- * @param callback Promise that resolves once the update is complete. In case of an error, the promise will be rejected and no change will be made to the set of enabled rulesets. This can happen for multiple reasons, such as invalid ruleset IDs, rule count limit exceeded, or internal errors.
5698
5650
  */
5699
5651
  export function updateEnabledRulesets(
5700
5652
 
@@ -5715,8 +5667,6 @@ declare namespace chrome {
5715
5667
 
5716
5668
  /**
5717
5669
  * Returns the ids for the current set of enabled static rulesets.
5718
- *
5719
- * @param callback Promise that resolves with a list of ids, where each id corresponds to an enabled static {@link Ruleset}.
5720
5670
  */
5721
5671
  export function getEnabledRulesets(
5722
5672
 
@@ -5738,7 +5688,6 @@ declare namespace chrome {
5738
5688
  /**
5739
5689
  * Disables and enables individual static rules in a {@link Ruleset}. Changes to rules belonging to a disabled {@link Ruleset} will take effect the next time that it becomes enabled.
5740
5690
  *
5741
- * @param callback Promise that resolves when the update is complete. In case of an error, the promise will be rejected and no change will be made to the enabled static rules.
5742
5691
  * @since Chrome 111
5743
5692
  */
5744
5693
  export function updateStaticRules(
@@ -5763,7 +5712,6 @@ declare namespace chrome {
5763
5712
  * Returns the list of static rules in the given {@link Ruleset} that are currently disabled.
5764
5713
  *
5765
5714
  * @param options Specifies the ruleset to query.
5766
- * @param callback Promise that resolves with a list of ids that correspond to the disabled rules in that ruleset.
5767
5715
  * @since Chrome 111
5768
5716
  */
5769
5717
  export function getDisabledRuleIds(
@@ -5790,7 +5738,6 @@ declare namespace chrome {
5790
5738
  * Returns all rules matched for the extension. Callers can optionally filter the list of matched rules by specifying a `filter`. This method is only available to extensions with the `"declarativeNetRequestFeedback"` permission or having the `"activeTab"` permission granted for the `tabId` specified in `filter`. Note: Rules not associated with an active document that were matched more than five minutes ago will not be returned.
5791
5739
  *
5792
5740
  * @param filter An object to filter the list of matched rules.
5793
- * @param callback Promise that resolves once the list of matched rules has been fetched. In case of an error, the Promise will be rejected. This can happen for multiple reasons, such as insufficient permissions, or exceeding the quota.
5794
5741
  */
5795
5742
  export function getMatchedRules(
5796
5743
 
@@ -5843,7 +5790,6 @@ declare namespace chrome {
5843
5790
  * Checks if the given regular expression will be supported as a `regexFilter` rule condition.
5844
5791
  *
5845
5792
  * @param regexOptions The regular expression to check.
5846
- * @param callback Promise that resolves with details consisting of whether the regular expression is supported and the reason if not.
5847
5793
  * @since Chrome 87
5848
5794
  */
5849
5795
  export function isRegexSupported(
@@ -5888,7 +5834,6 @@ declare namespace chrome {
5888
5834
  /**
5889
5835
  * Checks if any of the extension's declarativeNetRequest rules would match a hypothetical request. Note: Only available for unpacked extensions as this is only intended to be used during extension development.
5890
5836
  *
5891
- * @param callback Promise that resolves with the details of matched rules.
5892
5837
  * @since Chrome 103
5893
5838
  */
5894
5839
  export function testMatchOutcome(
@@ -6725,7 +6670,6 @@ declare namespace chrome {
6725
6670
  * Resolves the given hostname or IP address literal.
6726
6671
  *
6727
6672
  * @param hostname The hostname to resolve.
6728
- * @param callback Promise that resolves when the resolution operation completes.
6729
6673
  */
6730
6674
  export function resolve(
6731
6675
 
@@ -7256,7 +7200,6 @@ declare namespace chrome {
7256
7200
  * Performs a document scan and returns a Promise that resolves with a {@link ScanResults} object. If a callback is passed to this function, the returned data is passed to it instead.
7257
7201
  *
7258
7202
  * @param options An object containing scan parameters.
7259
- * @param callback Returns a Promise which resolves with the scan results.
7260
7203
  */
7261
7204
  export function scan(
7262
7205
 
@@ -7282,7 +7225,6 @@ declare namespace chrome {
7282
7225
  * Gets the list of available scanners and returns a Promise that resolves with a {@link GetScannerListResponse} object. If a callback is passed to this function, returned data is passed to it instead.
7283
7226
  *
7284
7227
  * @param filter A {@link DeviceFilter} indicating which types of scanners should be returned.
7285
- * @param callback Returns a Promise which resolves with the result and list of scanners.
7286
7228
  * @since Chrome 125
7287
7229
  */
7288
7230
  export function getScannerList(
@@ -7309,7 +7251,6 @@ declare namespace chrome {
7309
7251
  * Opens a scanner for exclusive access and returns a Promise that resolves with an {@link OpenScannerResponse} object. If a callback is passed to this function, returned data is passed to it instead.
7310
7252
  *
7311
7253
  * @param scannerId The ID of a scanner to be opened. This value is one returned from a previous call to {@link getScannerList}.
7312
- * @param callback Returns a Promise which resolves with the result.
7313
7254
  * @since Chrome 125
7314
7255
  */
7315
7256
  export function openScanner(
@@ -7336,7 +7277,6 @@ declare namespace chrome {
7336
7277
  * Gets the group names and member options from a scanner previously opened by {@link openScanner}. This method returns a Promise that resolves with a {@link GetOptionGroupsResponse} object. If a callback is passed to this function, returned data is passed to it instead.
7337
7278
  *
7338
7279
  * @param scannerHandle The handle of an open scanner returned from a call to {@link openScanner}.
7339
- * @param callback Returns a Promise which resolves with the result.
7340
7280
  * @since Chrome 125
7341
7281
  */
7342
7282
  export function getOptionGroups(
@@ -7363,7 +7303,6 @@ declare namespace chrome {
7363
7303
  * Closes the scanner with the passed in handle and returns a Promise that resolves with a {@link CloseScannerResponse} object. If a callback is used, the object is passed to it instead. Even if the response is not a success, the supplied handle becomes invalid and should not be used for further operations.
7364
7304
  *
7365
7305
  * @param scannerHandle Specifies the handle of an open scanner that was previously returned from a call to {@link openScanner}.
7366
- * @param callback Returns a Promise which resolves with the result.
7367
7306
  * @since Chrome 125
7368
7307
  */
7369
7308
  export function closeScanner(
@@ -7394,7 +7333,6 @@ declare namespace chrome {
7394
7333
  *
7395
7334
  * @param scannerHandle The handle of the scanner to set options on. This should be a value previously returned from a call to {@link openScanner}.
7396
7335
  * @param options A list of `OptionSetting` objects to be applied to the scanner.
7397
- * @param callback Returns a Promise which resolves with the result.
7398
7336
  * @since Chrome 125
7399
7337
  */
7400
7338
  export function setOptions(
@@ -7427,7 +7365,6 @@ declare namespace chrome {
7427
7365
  *
7428
7366
  * @param scannerHandle The handle of an open scanner. This should be a value previously returned from a call to {@link openScanner}.
7429
7367
  * @param options A {@link StartScanOptions} object indicating the options to be used for the scan. The `StartScanOptions.format` property must match one of the entries returned in the scanner's `ScannerInfo`.
7430
- * @param callback Returns a Promise which resolves with the result.
7431
7368
  * @since Chrome 125
7432
7369
  */
7433
7370
  export function startScan(
@@ -7456,7 +7393,6 @@ declare namespace chrome {
7456
7393
  * Cancels a started scan and returns a Promise that resolves with a {@link CancelScanResponse} object. If a callback is used, the object is passed to it instead.
7457
7394
  *
7458
7395
  * @param job The handle of an active scan job previously returned from a call to {@link startScan}.
7459
- * @param callback Returns a Promise which resolves with the result.
7460
7396
  * @since Chrome 125
7461
7397
  */
7462
7398
  export function cancelScan(
@@ -7491,7 +7427,6 @@ declare namespace chrome {
7491
7427
  * When the scan job completes, the response will have the result value of `EOF`. This response may contain a final non-zero `data` member.
7492
7428
  *
7493
7429
  * @param job Active job handle previously returned from {@link startScan}.
7494
- * @param callback Returns a Promise which resolves with the result.
7495
7430
  * @since Chrome 125
7496
7431
  */
7497
7432
  export function readScanData(
@@ -8059,7 +7994,6 @@ declare namespace chrome {
8059
7994
  * Download a URL. If the URL uses the HTTP\[S\] protocol, then the request will include all cookies currently set for its hostname. If both `filename` and `saveAs` are specified, then the Save As dialog will be displayed, pre-populated with the specified `filename`. If the download started successfully, `callback` will be called with the new {@link DownloadItem}'s `downloadId`. If there was an error starting the download, then `callback` will be called with `downloadId=undefined` and {@link runtime.lastError} will contain a descriptive string. The error strings are not guaranteed to remain backwards compatible between releases. Extensions must not parse it.
8060
7995
  *
8061
7996
  * @param options What to download and how.
8062
- * @param callback Returns a Promise which resolves with the id of the new {@link DownloadItem}.
8063
7997
  */
8064
7998
  export function download(
8065
7999
 
@@ -8107,7 +8041,6 @@ declare namespace chrome {
8107
8041
  * Pause the download. If the request was successful the download is in a paused state. Otherwise {@link runtime.lastError} contains an error message. The request will fail if the download is not active.
8108
8042
  *
8109
8043
  * @param downloadId The id of the download to pause.
8110
- * @param callback Returns a Promise which resolves when the pause request is completed.
8111
8044
  */
8112
8045
  export function pause(
8113
8046
 
@@ -8131,7 +8064,6 @@ declare namespace chrome {
8131
8064
  * Resume a paused download. If the request was successful the download is in progress and unpaused. Otherwise {@link runtime.lastError} contains an error message. The request will fail if the download is not active.
8132
8065
  *
8133
8066
  * @param downloadId The id of the download to resume.
8134
- * @param callback Returns a Promise which resolves when the resume request is completed.
8135
8067
  */
8136
8068
  export function resume(
8137
8069
 
@@ -8155,7 +8087,6 @@ declare namespace chrome {
8155
8087
  * Cancel a download. When `callback` is run, the download is cancelled, completed, interrupted or doesn't exist anymore.
8156
8088
  *
8157
8089
  * @param downloadId The id of the download to cancel.
8158
- * @param callback Returns a Promise which resolves when the cancel request is completed.
8159
8090
  */
8160
8091
  export function cancel(
8161
8092
 
@@ -8181,7 +8112,6 @@ declare namespace chrome {
8181
8112
  * Retrieve an icon for the specified download. For new downloads, file icons are available after the {@link onCreated} event has been received. The image returned by this function while a download is in progress may be different from the image returned after the download is complete. Icon retrieval is done by querying the underlying operating system or toolkit depending on the platform. The icon that is returned will therefore depend on a number of factors including state of the download, platform, registered file types and visual theme. If a file icon cannot be determined, {@link runtime.lastError} will contain an error message.
8182
8113
  *
8183
8114
  * @param downloadId The identifier for the download.
8184
- * @param callback Returns a Promise which resolves with a URL to an image that represents the download.
8185
8115
  */
8186
8116
  export function getFileIcon(
8187
8117
 
@@ -8292,7 +8222,6 @@ declare namespace chrome {
8292
8222
  * Prompt the user to accept a dangerous download. Can only be called from a visible context (tab, window, or page/browser action popup). Does not automatically accept dangerous downloads. If the download is accepted, then an {@link onChanged} event will fire, otherwise nothing will happen. When all the data is fetched into a temporary file and either the download is not dangerous or the danger has been accepted, then the temporary file is renamed to the target filename, the `state` changes to 'complete', and {@link onChanged} fires.
8293
8223
  *
8294
8224
  * @param downloadId The identifier for the {@link DownloadItem}.
8295
- * @param callback Returns a Promise which resolves when the danger prompt dialog closes.
8296
8225
  */
8297
8226
  export function acceptDanger(
8298
8227
 
@@ -8327,7 +8256,6 @@ declare namespace chrome {
8327
8256
  * Change the download UI of every window associated with the current browser profile. As long as at least one extension has set {@link UiOptions.enabled} to false, the download UI will be hidden. Setting {@link UiOptions.enabled} to true while at least one other extension has disabled it will return an error through {@link runtime.lastError}. Requires the `"downloads.ui"` permission in addition to the `"downloads"` permission.
8328
8257
  *
8329
8258
  * @param options Encapsulate a change to the download UI.
8330
- * @param callback Returns a Promise which resolves when the UI update is completed.
8331
8259
  * @since Chrome 105
8332
8260
  */
8333
8261
  export function setUiOptions(
@@ -8357,8 +8285,6 @@ declare namespace chrome {
8357
8285
 
8358
8286
  /**
8359
8287
  * Fetches the value of [the device identifier of the directory API](https://developers.google.com/admin-sdk/directory/v1/guides/manage-chrome-devices), that is generated by the server and identifies the cloud record of the device for querying in the cloud directory API. If the current user is not affiliated, returns an empty string.
8360
- *
8361
- * @param callback Returns a Promise which resolves with the device identifier of the directory API.
8362
8288
  */
8363
8289
  export function getDirectoryDeviceId(
8364
8290
 
@@ -8378,7 +8304,6 @@ declare namespace chrome {
8378
8304
  /**
8379
8305
  * Fetches the device's serial number. Please note the purpose of this API is to administrate the device (e.g. generating Certificate Sign Requests for device-wide certificates). This API may not be used for tracking devices without the consent of the device's administrator. If the current user is not affiliated, returns an empty string.
8380
8306
  *
8381
- * @param callback Returns a Promise which resolves with the serial number of the device.
8382
8307
  * @since Chrome 66
8383
8308
  */
8384
8309
  export function getDeviceSerialNumber(
@@ -8399,7 +8324,6 @@ declare namespace chrome {
8399
8324
  /**
8400
8325
  * Fetches the administrator-annotated Asset Id. If the current user is not affiliated or no Asset Id has been set by the administrator, returns an empty string.
8401
8326
  *
8402
- * @param callback Returns a Promise which resolves with the Asset ID of the device.
8403
8327
  * @since Chrome 66
8404
8328
  */
8405
8329
  export function getDeviceAssetId(
@@ -8420,7 +8344,6 @@ declare namespace chrome {
8420
8344
  /**
8421
8345
  * Fetches the administrator-annotated Location. If the current user is not affiliated or no Annotated Location has been set by the administrator, returns an empty string.
8422
8346
  *
8423
- * @param callback Returns a Promise which resolves with the Annotated Location of the device.
8424
8347
  * @since Chrome 66
8425
8348
  */
8426
8349
  export function getDeviceAnnotatedLocation(
@@ -8441,7 +8364,6 @@ declare namespace chrome {
8441
8364
  /**
8442
8365
  * Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the enterprise policy, returns an empty string.
8443
8366
  *
8444
- * @param callback Returns a Promise which resolves with the hostname of the device.
8445
8367
  * @since Chrome 82
8446
8368
  */
8447
8369
  export function getDeviceHostname(
@@ -8477,8 +8399,6 @@ declare namespace chrome {
8477
8399
 
8478
8400
  /**
8479
8401
  * Obtains the manufacturer and model for the hardware platform and, if the extension is authorized, returns it via `callback`.
8480
- *
8481
- * @param callback Returns a Promise which resolves with the hardware platform info.
8482
8402
  */
8483
8403
  export function getHardwarePlatformInfo(
8484
8404
 
@@ -8520,7 +8440,6 @@ declare namespace chrome {
8520
8440
  * Sets the current input method. This function only changes the current input method to an enabled input method. Input methods can be enabled by enterprise polices. If the input method ID is invalid, or not enabled, {@link runtime.lastError} will be set with a failure reason.
8521
8441
  *
8522
8442
  * @param options Object containing the fields defined in {@link SetCurrentInputMethodOptions}.
8523
- * @param callback Returns a Promise which resolves when the input method is changed, or rejects if there is an error.
8524
8443
  */
8525
8444
  export function setCurrentInputMethod(
8526
8445
 
@@ -8591,8 +8510,6 @@ declare namespace chrome {
8591
8510
 
8592
8511
  /**
8593
8512
  * Retrieves the network details of the device's default network. If the user is not affiliated or the device is not connected to a network, {@link runtime.lastError} will be set with a failure reason.
8594
- *
8595
- * @param callback Returns a Promise which resolves with the device's default network's {@link NetworkDetails}.
8596
8513
  */
8597
8514
  export function getNetworkDetails(
8598
8515
 
@@ -8696,8 +8613,6 @@ declare namespace chrome {
8696
8613
 
8697
8614
  /**
8698
8615
  * Returns the available Tokens. In a regular user's session the list will always contain the user's token with `id` `"user"`. If a system-wide TPM token is available, the returned list will also contain the system-wide token with `id` `"system"`. The system-wide token will be the same for all sessions on this device (device in the sense of e.g. a Chromebook).
8699
- *
8700
- * @param callback Invoked by `getTokens` with the list of available Tokens.
8701
8616
  */
8702
8617
  export function getTokens(
8703
8618
 
@@ -8724,7 +8639,6 @@ declare namespace chrome {
8724
8639
  * Returns the list of all client certificates available from the given token. Can be used to check for the existence and expiration of client certificates that are usable for a certain authentication.
8725
8640
  *
8726
8641
  * @param tokenId The id of a Token returned by `getTokens`.
8727
- * @param callback Returns a Promise which resolves with the list of the available certificates.
8728
8642
  */
8729
8643
  export function getCertificates(
8730
8644
 
@@ -8757,7 +8671,6 @@ declare namespace chrome {
8757
8671
  *
8758
8672
  * @param tokenId The id of a Token returned by `getTokens`.
8759
8673
  * @param certificate The DER encoding of a X.509 certificate.
8760
- * @param callback Returns a Promise which resolves when this operation is finished.
8761
8674
  */
8762
8675
  export function importCertificate(
8763
8676
 
@@ -8787,7 +8700,6 @@ declare namespace chrome {
8787
8700
  *
8788
8701
  * @param tokenId The id of a Token returned by `getTokens`.
8789
8702
  * @param certificate The DER encoding of a X.509 certificate.
8790
- * @param callback Returns a Promise which resolves when this operation is finished.
8791
8703
  */
8792
8704
  export function removeCertificate(
8793
8705
 
@@ -8822,7 +8734,6 @@ declare namespace chrome {
8822
8734
  * This function is highly restricted and will fail if the current device is not managed, the current user is not managed, or if this operation has not explicitly been enabled for the caller by enterprise device policy. The challenged key does not reside in the `"system"` or `"user"` token and is not accessible by any other API.
8823
8735
  *
8824
8736
  * @param options Object containing the fields defined in {@link ChallengeKeyOptions}.
8825
- * @param callback Returns a Promise which resolves with the challenge response.
8826
8737
  * @since Chrome 110
8827
8738
  */
8828
8739
  export function challengeKey(
@@ -8862,7 +8773,6 @@ declare namespace chrome {
8862
8773
  *
8863
8774
  * @param challenge A challenge as emitted by the Verified Access Web API.
8864
8775
  * @param registerKey If set, the current Enterprise Machine Key is registered with the `"system"` token and relinquishes the Enterprise Machine Key role. The key can then be associated with a certificate and used like any other signing key. This key is 2048-bit RSA. Subsequent calls to this function will then generate a new Enterprise Machine Key.
8865
- * @param callback Returns a Promise which resolves with the challenge response.
8866
8776
  * @deprecated Use {@link challengeKey} instead.
8867
8777
  * @since Chrome 50
8868
8778
  * @chrome-deprecated-since Chrome 110
@@ -8906,7 +8816,6 @@ declare namespace chrome {
8906
8816
  *
8907
8817
  * @param challenge A challenge as emitted by the Verified Access Web API.
8908
8818
  * @param registerKey If set, the current Enterprise User Key is registered with the `"user"` token and relinquishes the Enterprise User Key role. The key can then be associated with a certificate and used like any other signing key. This key is 2048-bit RSA. Subsequent calls to this function will then generate a new Enterprise User Key.
8909
- * @param callback Returns a Promise which resolves with the challenge response.
8910
8819
  * @deprecated Use {@link challengeKey} instead.
8911
8820
  * @since Chrome 50
8912
8821
  * @chrome-deprecated-since Chrome 110
@@ -10826,8 +10735,6 @@ declare namespace chrome {
10826
10735
  * Depending on the type of the file system being mounted, the `source` option must be set appropriately.
10827
10736
  *
10828
10737
  * In case of an error, {@link runtime.lastError} will be set with a corresponding error code.
10829
- *
10830
- * @param callback A generic result callback to indicate success or failure.
10831
10738
  */
10832
10739
  export function mount(
10833
10740
 
@@ -10852,8 +10759,6 @@ declare namespace chrome {
10852
10759
  * Unmounts a file system with the given `fileSystemId`. It must be called after {@link onUnmountRequested} is invoked. Also, the providing extension can decide to perform unmounting if not requested (eg. in case of lost connection, or a file error).
10853
10760
  *
10854
10761
  * In case of an error, {@link runtime.lastError} will be set with a corresponding error code.
10855
- *
10856
- * @param callback A generic result callback to indicate success or failure.
10857
10762
  */
10858
10763
  export function unmount(
10859
10764
 
@@ -10871,8 +10776,6 @@ declare namespace chrome {
10871
10776
 
10872
10777
  /**
10873
10778
  * Returns all file systems mounted by the extension.
10874
- *
10875
- * @param callback Callback to receive the result of {@link getAll} function.
10876
10779
  */
10877
10780
  export function getAll(
10878
10781
 
@@ -10893,8 +10796,6 @@ declare namespace chrome {
10893
10796
 
10894
10797
  /**
10895
10798
  * Returns information about a file system with the passed `fileSystemId`.
10896
- *
10897
- * @param callback Callback to receive the result of {@link get} function.
10898
10799
  */
10899
10800
  export function get(
10900
10801
 
@@ -10939,7 +10840,6 @@ declare namespace chrome {
10939
10840
  *
10940
10841
  * In case of an error, {@link runtime.lastError} will be set will a corresponding error code.
10941
10842
  *
10942
- * @param callback A generic result callback to indicate success or failure.
10943
10843
  * @since Chrome 45
10944
10844
  */
10945
10845
  export function notify(
@@ -11636,7 +11536,6 @@ declare namespace chrome {
11636
11536
  * Registers the application with FCM. The registration ID will be returned by the `callback`. If `register` is called again with the same list of `senderIds`, the same registration ID will be returned.
11637
11537
  *
11638
11538
  * @param senderIds A list of server IDs that are allowed to send messages to the application. It should contain at least one and no more than 100 sender IDs.
11639
- * @param callback Resolves when registration completes.
11640
11539
  */
11641
11540
  export function register(
11642
11541
 
@@ -11659,8 +11558,6 @@ declare namespace chrome {
11659
11558
 
11660
11559
  /**
11661
11560
  * Unregisters the application from FCM.
11662
- *
11663
- * @param callback Resolves after the unregistration completes. Unregistration was successful if the promise does not reject.
11664
11561
  */
11665
11562
  export function unregister(
11666
11563
 
@@ -11703,7 +11600,6 @@ declare namespace chrome {
11703
11600
  * Sends a message according to its contents.
11704
11601
  *
11705
11602
  * @param message A message to send to the other party via FCM.
11706
- * @param callback Resolves after the message is successfully queued for sending. If an error occurs, the promise will be rejected.
11707
11603
  */
11708
11604
  export function send(
11709
11605
 
@@ -12380,7 +12276,6 @@ declare namespace chrome {
12380
12276
  * Note: When called with a callback, instead of returning an object this function will return the two properties as separate arguments passed to the callback.
12381
12277
  *
12382
12278
  * @param details Token options.
12383
- * @param callback Returns a Promise which resolves with an OAuth2 access token as specified by the manifest, or rejects if there was an error. The `grantedScopes` parameter is populated since Chrome 87. When available, this parameter contains the list of granted scopes corresponding with the returned token.
12384
12279
  */
12385
12280
  export function getAuthToken(
12386
12281
 
@@ -12420,7 +12315,6 @@ declare namespace chrome {
12420
12315
  * This API is different from identity.getAccounts in two ways. The information returned is available offline, and it only applies to the primary account for the profile.
12421
12316
  *
12422
12317
  * @param details Profile options.
12423
- * @param callback Returns a Promise which resolves with the `ProfileUserInfo` of the primary Chrome account, or an empty `ProfileUserInfo` if the account with given `details` doesn't exist.
12424
12318
  */
12425
12319
  export function getProfileUserInfo(
12426
12320
 
@@ -12453,7 +12347,6 @@ declare namespace chrome {
12453
12347
  * If an access token is discovered to be invalid, it should be passed to removeCachedAuthToken to remove it from the cache. The app may then retrieve a fresh token with `getAuthToken`.
12454
12348
  *
12455
12349
  * @param details Token information.
12456
- * @param callback Returns a Promise which resolves when the token has been removed from the cache.
12457
12350
  */
12458
12351
  export function removeCachedAuthToken(
12459
12352
 
@@ -12481,7 +12374,6 @@ declare namespace chrome {
12481
12374
  * * Removes user's account preferences
12482
12375
  * * De-authorizes the user from all auth flows
12483
12376
  *
12484
- * @param callback Returns a Promise which resolves when the state has been cleared.
12485
12377
  * @since Chrome 87
12486
12378
  */
12487
12379
  export function clearAllCachedAuthTokens(
@@ -12512,7 +12404,6 @@ declare namespace chrome {
12512
12404
  * For a good user experience it is important interactive auth flows are initiated by UI in your app explaining what the authorization is for. Failing to do this will cause your users to get authorization requests with no context. In particular, do not launch an interactive auth flow when your app is first launched.
12513
12405
  *
12514
12406
  * @param details WebAuth flow options.
12515
- * @param callback Returns a Promise which resolves with the URL redirected back to your application.
12516
12407
  */
12517
12408
  export function launchWebAuthFlow(
12518
12409
 
@@ -13070,8 +12961,6 @@ declare namespace chrome {
13070
12961
 
13071
12962
  /**
13072
12963
  * Set the current composition. If this extension does not own the active IME, this fails.
13073
- *
13074
- * @param callback Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
13075
12964
  */
13076
12965
  export function setComposition(
13077
12966
 
@@ -13147,8 +13036,6 @@ declare namespace chrome {
13147
13036
 
13148
13037
  /**
13149
13038
  * Clear the current composition. If this extension does not own the active IME, this fails.
13150
- *
13151
- * @param callback Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
13152
13039
  */
13153
13040
  export function clearComposition(
13154
13041
 
@@ -13188,8 +13075,6 @@ declare namespace chrome {
13188
13075
 
13189
13076
  /**
13190
13077
  * Commits the provided text to the current input.
13191
- *
13192
- * @param callback Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
13193
13078
  */
13194
13079
  export function commitText(
13195
13080
 
@@ -13234,8 +13119,6 @@ declare namespace chrome {
13234
13119
 
13235
13120
  /**
13236
13121
  * Sends the key events. This function is expected to be used by virtual keyboards. When key(s) on a virtual keyboard is pressed by a user, this function is used to propagate that event to the system.
13237
- *
13238
- * @param callback Resolves when the operation completes.
13239
13122
  */
13240
13123
  export function sendKeyEvents(
13241
13124
 
@@ -13330,8 +13213,6 @@ declare namespace chrome {
13330
13213
 
13331
13214
  /**
13332
13215
  * Sets the properties of the candidate window. This fails if the extension doesn't own the active IME
13333
- *
13334
- * @param callback Resolves when the operation completes.
13335
13216
  */
13336
13217
  export function setCandidateWindowProperties(
13337
13218
 
@@ -13465,8 +13346,6 @@ declare namespace chrome {
13465
13346
 
13466
13347
  /**
13467
13348
  * Sets the current candidate list. This fails if this extension doesn't own the active IME
13468
- *
13469
- * @param callback Resolves when the operation completes.
13470
13349
  */
13471
13350
  export function setCandidates(
13472
13351
 
@@ -13553,8 +13432,6 @@ declare namespace chrome {
13553
13432
 
13554
13433
  /**
13555
13434
  * Set the position of the cursor in the candidate window. This is a no-op if this extension does not own the active IME.
13556
- *
13557
- * @param callback Resolves when the operation completes
13558
13435
  */
13559
13436
  export function setCursorPosition(
13560
13437
 
@@ -13601,7 +13478,6 @@ declare namespace chrome {
13601
13478
  /**
13602
13479
  * Shows/Hides an assistive window with the given properties.
13603
13480
  *
13604
- * @param callback Resolves when the operation completes.
13605
13481
  * @since Chrome 85
13606
13482
  */
13607
13483
  export function setAssistiveWindowProperties(
@@ -13664,7 +13540,6 @@ declare namespace chrome {
13664
13540
  /**
13665
13541
  * Highlights/Unhighlights a button in an assistive window.
13666
13542
  *
13667
- * @param callback Resolves when the operation completes. On failure, the promise will be rejected.
13668
13543
  * @since Chrome 86
13669
13544
  */
13670
13545
  export function setAssistiveWindowButtonHighlighted(
@@ -13732,8 +13607,6 @@ declare namespace chrome {
13732
13607
 
13733
13608
  /**
13734
13609
  * Updates the state of the MenuItems specified
13735
- *
13736
- * @param callback Resolves when the operation completes
13737
13610
  */
13738
13611
  export function updateMenuItems(
13739
13612
 
@@ -13775,8 +13648,6 @@ declare namespace chrome {
13775
13648
 
13776
13649
  /**
13777
13650
  * Deletes the text around the caret.
13778
- *
13779
- * @param callback Resolves when the operation completes.
13780
13651
  */
13781
13652
  export function deleteSurroundingText(
13782
13653
 
@@ -13842,8 +13713,6 @@ declare namespace chrome {
13842
13713
 
13843
13714
  /**
13844
13715
  * Retrieves an identifier for the app instance. The instance ID will be returned by the `callback`. The same ID will be returned as long as the application identity has not been revoked or expired.
13845
- *
13846
- * @param callback Resolves when the retrieval completes.
13847
13716
  */
13848
13717
  export function getID(
13849
13718
 
@@ -13864,8 +13733,6 @@ declare namespace chrome {
13864
13733
 
13865
13734
  /**
13866
13735
  * Retrieves the time when the InstanceID has been generated. The creation time will be returned by the `callback`.
13867
- *
13868
- * @param callback Resolves when the retrieval completes.
13869
13736
  */
13870
13737
  export function getCreationTime(
13871
13738
 
@@ -13916,7 +13783,6 @@ declare namespace chrome {
13916
13783
  * Return a token that allows the authorized entity to access the service defined by scope.
13917
13784
  *
13918
13785
  * @param getTokenParams Parameters for getToken.
13919
- * @param callback Resolves when the retrieval completes.
13920
13786
  */
13921
13787
  export function getToken(
13922
13788
 
@@ -13984,7 +13850,6 @@ declare namespace chrome {
13984
13850
  * Revokes a granted token.
13985
13851
  *
13986
13852
  * @param deleteTokenParams Parameters for deleteToken.
13987
- * @param callback Resolves when the token deletion completes. The token was revoked successfully if the promise does not reject.
13988
13853
  */
13989
13854
  export function deleteToken(
13990
13855
 
@@ -14017,8 +13882,6 @@ declare namespace chrome {
14017
13882
 
14018
13883
  /**
14019
13884
  * Resets the app instance identifier and revokes all tokens associated with it.
14020
- *
14021
- * @param callback Resolves when the deletion completes. The instance identifier was revoked successfully if the promise does not reject.
14022
13885
  */
14023
13886
  export function deleteID(
14024
13887
 
@@ -14989,7 +14852,6 @@ declare namespace chrome {
14989
14852
 
14990
14853
  The `notificationId` parameter is required before Chrome 42.
14991
14854
  * @param options Contents of the notification.
14992
- * @param callback Returns a Promise which resolves with the notification id (either supplied or generated) that represents the created notification.
14993
14855
  */
14994
14856
  export function create(
14995
14857
 
@@ -15006,7 +14868,6 @@ declare namespace chrome {
15006
14868
  * Creates and displays a notification.
15007
14869
  *
15008
14870
  * @param options Contents of the notification.
15009
- * @param callback Returns a Promise which resolves with the notification id (either supplied or generated) that represents the created notification.
15010
14871
  */
15011
14872
  export function create(
15012
14873
 
@@ -15036,7 +14897,6 @@ declare namespace chrome {
15036
14897
  *
15037
14898
  * @param notificationId The id of the notification to be updated. This is returned by {@link notifications.create} method.
15038
14899
  * @param options Contents of the notification to update to.
15039
- * @param callback Returns a Promise which resolves to indicate whether a matching notification existed.
15040
14900
  */
15041
14901
  export function update(
15042
14902
 
@@ -15064,7 +14924,6 @@ declare namespace chrome {
15064
14924
  * Clears the specified notification.
15065
14925
  *
15066
14926
  * @param notificationId The id of the notification to be cleared. This is returned by {@link notifications.create} method.
15067
- * @param callback Returns a Promise which resolves to indicate whether a matching notification existed.
15068
14927
  */
15069
14928
  export function clear(
15070
14929
 
@@ -15084,8 +14943,6 @@ declare namespace chrome {
15084
14943
 
15085
14944
  /**
15086
14945
  * Retrieves all the notifications of this app or extension.
15087
- *
15088
- * @param callback Returns a Promise which resolves with the set of notification\_ids currently in the system.
15089
14946
  */
15090
14947
  export function getAll(
15091
14948
 
@@ -15103,8 +14960,6 @@ declare namespace chrome {
15103
14960
 
15104
14961
  /**
15105
14962
  * Retrieves whether the user has enabled notifications from this app or extension.
15106
- *
15107
- * @param callback Returns a Promise which resolves with the current permission level.
15108
14963
  */
15109
14964
  export function getPermissionLevel(
15110
14965
 
@@ -15195,7 +15050,6 @@ declare namespace chrome {
15195
15050
  * Creates a new offscreen document for the extension.
15196
15051
  *
15197
15052
  * @param parameters The parameters describing the offscreen document to create.
15198
- * @param callback Promise that resolves when the offscreen document is created and has completed its initial page load.
15199
15053
  */
15200
15054
  export function createDocument(
15201
15055
 
@@ -15211,8 +15065,6 @@ declare namespace chrome {
15211
15065
 
15212
15066
  /**
15213
15067
  * Closes the currently-open offscreen document for the extension.
15214
- *
15215
- * @param callback Promise that resolves when the offscreen document has been closed.
15216
15068
  */
15217
15069
  export function closeDocument(
15218
15070
 
@@ -15367,8 +15219,6 @@ declare namespace chrome {
15367
15219
 
15368
15220
  /**
15369
15221
  * Saves the content of the tab with given id as MHTML.
15370
- *
15371
- * @param callback Resolves when the MHTML has been generated.
15372
15222
  */
15373
15223
  export function saveAsMHTML(
15374
15224
 
@@ -16756,7 +16606,6 @@ declare namespace chrome {
16756
16606
  * Returns the ID of the renderer process for the specified tab.
16757
16607
  *
16758
16608
  * @param tabId The ID of the tab for which the renderer process ID is to be returned.
16759
- * @param callback A callback to return the ID of the renderer process of a tab.
16760
16609
  */
16761
16610
  export function getProcessIdForTab(
16762
16611
 
@@ -16784,7 +16633,6 @@ declare namespace chrome {
16784
16633
  * Terminates the specified renderer process. Equivalent to visiting about:crash, but without changing the tab's URL.
16785
16634
  *
16786
16635
  * @param processId The ID of the process to be terminated.
16787
- * @param callback A callback to report the status of the termination.
16788
16636
  */
16789
16637
  export function terminate(
16790
16638
 
@@ -16816,7 +16664,6 @@ declare namespace chrome {
16816
16664
  *
16817
16665
  * @param processIds The list of process IDs or single process ID for which to return the process information. An empty list indicates all processes are requested.
16818
16666
  * @param includeMemory True if detailed memory usage is required. Note, collecting memory usage information incurs extra CPU usage and should only be queried for when needed.
16819
- * @param callback A callback called when the processes information is collected.
16820
16667
  */
16821
16668
  export function getProcessInfo(
16822
16669
 
@@ -17142,7 +16989,6 @@ declare namespace chrome {
17142
16989
  * Adds an entry to the reading list if it does not exist.
17143
16990
  *
17144
16991
  * @param entry The entry to add to the reading list.
17145
- * @param callback Resolves once the entry has been added.
17146
16992
  */
17147
16993
  export function addEntry(
17148
16994
 
@@ -17165,7 +17011,6 @@ declare namespace chrome {
17165
17011
  * Removes an entry from the reading list if it exists.
17166
17012
  *
17167
17013
  * @param info The entry to remove from the reading list.
17168
- * @param callback Resolves once the entry has been removed.
17169
17014
  */
17170
17015
  export function removeEntry(
17171
17016
 
@@ -17188,7 +17033,6 @@ declare namespace chrome {
17188
17033
  * Updates a reading list entry if it exists.
17189
17034
  *
17190
17035
  * @param info The entry to update.
17191
- * @param callback Resolves once the matched entries have been updated.
17192
17036
  */
17193
17037
  export function updateEntry(
17194
17038
 
@@ -17211,7 +17055,6 @@ declare namespace chrome {
17211
17055
  * Retrieves all entries that match the `QueryInfo` properties. Properties that are not provided will not be matched.
17212
17056
  *
17213
17057
  * @param info The properties to search for.
17214
- * @param callback Resolves once the entries have been matched.
17215
17058
  */
17216
17059
  export function query(
17217
17060
 
@@ -17754,6 +17597,7 @@ declare namespace chrome {
17754
17597
  *
17755
17598
  * @chrome-returns-extra since Chrome 99
17756
17599
  * @param url URL to be opened after the extension is uninstalled. This URL must have an http: or https: scheme. Set an empty string to not open a new tab upon uninstallation.
17600
+ * @returns Promise that resolves when the uninstall URL is set. If the given URL is invalid, the promise will be rejected.
17757
17601
  */
17758
17602
  export function setUninstallURL(
17759
17603
 
@@ -17764,7 +17608,6 @@ declare namespace chrome {
17764
17608
  * Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum 1023 characters.
17765
17609
  *
17766
17610
  * @param url URL to be opened after the extension is uninstalled. This URL must have an http: or https: scheme. Set an empty string to not open a new tab upon uninstallation.
17767
- * @param callback Called when the uninstall URL is set. If the given URL is invalid, {@link runtime.lastError} will be set.
17768
17611
  */
17769
17612
  export function setUninstallURL(
17770
17613
 
@@ -17848,6 +17691,7 @@ declare namespace chrome {
17848
17691
  *
17849
17692
  * @chrome-returns-extra since Chrome 99
17850
17693
  * @param seconds Time to wait in seconds before rebooting the device, or -1 to cancel a scheduled reboot.
17694
+ * @returns Promise that resolves when a restart request was successfully rescheduled.
17851
17695
  * @since Chrome 53
17852
17696
  */
17853
17697
  export function restartAfterDelay(
@@ -17859,7 +17703,6 @@ declare namespace chrome {
17859
17703
  * Restart the ChromeOS device when the app runs in kiosk mode after the given seconds. If called again before the time ends, the reboot will be delayed. If called with a value of -1, the reboot will be cancelled. It's a no-op in non-kiosk mode. It's only allowed to be called repeatedly by the first extension to invoke this API.
17860
17704
  *
17861
17705
  * @param seconds Time to wait in seconds before rebooting the device, or -1 to cancel a scheduled reboot.
17862
- * @param callback A callback to be invoked when a restart request was successfully rescheduled.
17863
17706
  * @since Chrome 53
17864
17707
  */
17865
17708
  export function restartAfterDelay(
@@ -17911,6 +17754,7 @@ declare namespace chrome {
17911
17754
  * @chrome-returns-extra since Chrome 99
17912
17755
  * @param extensionId The ID of the extension to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable).
17913
17756
  * @param message The message to send. This message should be a JSON-ifiable object.
17757
+ * @returns Promise support was added for extension contexts in Chrome 99. When communicating from a web page to an extension, promises are available from Chrome 118.
17914
17758
  */
17915
17759
  export function sendMessage(
17916
17760
 
@@ -17932,6 +17776,7 @@ declare namespace chrome {
17932
17776
  *
17933
17777
  * @chrome-returns-extra since Chrome 99
17934
17778
  * @param message The message to send. This message should be a JSON-ifiable object.
17779
+ * @returns Promise support was added for extension contexts in Chrome 99. When communicating from a web page to an extension, promises are available from Chrome 118.
17935
17780
  */
17936
17781
  export function sendMessage(
17937
17782
 
@@ -17951,7 +17796,6 @@ declare namespace chrome {
17951
17796
  *
17952
17797
  * @param extensionId The ID of the extension to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable).
17953
17798
  * @param message The message to send. This message should be a JSON-ifiable object.
17954
- * @param callback Promise support was added for extension contexts in Chrome 99. When communicating from a web page to an extension, promises are available from Chrome 118.
17955
17799
  */
17956
17800
  export function sendMessage(
17957
17801
 
@@ -17980,7 +17824,6 @@ declare namespace chrome {
17980
17824
  * Sends a single message to event listeners within your extension or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
17981
17825
  *
17982
17826
  * @param message The message to send. This message should be a JSON-ifiable object.
17983
- * @param callback Promise support was added for extension contexts in Chrome 99. When communicating from a web page to an extension, promises are available from Chrome 118.
17984
17827
  */
17985
17828
  export function sendMessage(
17986
17829
 
@@ -18044,13 +17887,12 @@ declare namespace chrome {
18044
17887
  * Returns information about the current platform.
18045
17888
  *
18046
17889
  * @chrome-returns-extra since Chrome 99
17890
+ * @returns Promise that resolves with information about the current platform.
18047
17891
  */
18048
17892
  export function getPlatformInfo(): Promise<PlatformInfo>;
18049
17893
 
18050
17894
  /**
18051
17895
  * Returns information about the current platform.
18052
- *
18053
- * @param callback Called with results
18054
17896
  */
18055
17897
  export function getPlatformInfo(
18056
17898
 
@@ -18083,6 +17925,7 @@ declare namespace chrome {
18083
17925
  * Fetches information about active contexts associated with this extension
18084
17926
  *
18085
17927
  * @param filter A filter to find matching contexts. A context matches if it matches all specified fields in the filter. Any unspecified field in the filter matches all contexts.
17928
+ * @returns Promise that resolves with the matching contexts, if any.
18086
17929
  * @since Chrome 116
18087
17930
  * @chrome-min-manifest MV3
18088
17931
  */
@@ -18095,7 +17938,6 @@ declare namespace chrome {
18095
17938
  * Fetches information about active contexts associated with this extension
18096
17939
  *
18097
17940
  * @param filter A filter to find matching contexts. A context matches if it matches all specified fields in the filter. Any unspecified field in the filter matches all contexts.
18098
- * @param callback Invoked with the matching contexts, if any.
18099
17941
  * @since Chrome 116
18100
17942
  * @chrome-min-manifest MV3
18101
17943
  */
@@ -18332,7 +18174,6 @@ declare namespace chrome {
18332
18174
  * Injects a script into a target context. By default, the script will be run at `document_idle`, or immediately if the page has already loaded. If the `injectImmediately` property is set, the script will inject without waiting, even if the page has not finished loading. If the script evaluates to a promise, the browser will wait for the promise to settle and return the resulting value.
18333
18175
  *
18334
18176
  * @param injection The details of the script which to inject.
18335
- * @param callback Returns a Promise which resolves upon completion of the injection. The resulting array contains the result of execution for each frame where the injection succeeded.
18336
18177
  */
18337
18178
  export function executeScript(
18338
18179
 
@@ -18358,7 +18199,6 @@ declare namespace chrome {
18358
18199
  * Inserts a CSS stylesheet into a target context. If multiple frames are specified, unsuccessful injections are ignored.
18359
18200
  *
18360
18201
  * @param injection The details of the styles to insert.
18361
- * @param callback Returns a Promise which resolves upon completion of the insertion.
18362
18202
  */
18363
18203
  export function insertCSS(
18364
18204
 
@@ -18382,7 +18222,6 @@ declare namespace chrome {
18382
18222
  * Removes a CSS stylesheet that was previously inserted by this extension from a target context.
18383
18223
  *
18384
18224
  * @param injection The details of the styles to remove. Note that the `css`, `files`, and `origin` properties must exactly match the stylesheet inserted through {@link insertCSS}. Attempting to remove a non-existent stylesheet is a no-op.
18385
- * @param callback Returns a Promise which resolves upon the completion of the removal.
18386
18225
  * @since Chrome 90
18387
18226
  */
18388
18227
  export function removeCSS(
@@ -18407,7 +18246,6 @@ declare namespace chrome {
18407
18246
  * Registers one or more content scripts for this extension.
18408
18247
  *
18409
18248
  * @param scripts Contains a list of scripts to be registered. If there are errors during script parsing/file validation, or if the IDs specified already exist, then no scripts are registered.
18410
- * @param callback Returns a Promise which resolves once scripts have been fully registered or rejects if an error has occurred.
18411
18249
  * @since Chrome 96
18412
18250
  */
18413
18251
  export function registerContentScripts(
@@ -18458,7 +18296,6 @@ declare namespace chrome {
18458
18296
  * Unregisters content scripts for this extension.
18459
18297
  *
18460
18298
  * @param filter If specified, only unregisters dynamic content scripts which match the filter. Otherwise, all of the extension's dynamic content scripts are unregistered.
18461
- * @param callback Returns a Promise which resolves once scripts have been unregistered or rejects if an error has occurred.
18462
18299
  * @since Chrome 96
18463
18300
  */
18464
18301
  export function unregisterContentScripts(
@@ -18483,7 +18320,6 @@ declare namespace chrome {
18483
18320
  * Updates one or more content scripts for this extension.
18484
18321
  *
18485
18322
  * @param scripts Contains a list of scripts to be updated. A property is only updated for the existing script if it is specified in this object. If there are errors during script parsing/file validation, or if the IDs specified do not correspond to a fully registered script, then no scripts are updated.
18486
- * @param callback Returns a Promise which resolves once scripts have been updated or rejects if an error has occurred.
18487
18323
  * @since Chrome 96
18488
18324
  */
18489
18325
  export function updateContentScripts(
@@ -18888,7 +18724,6 @@ declare namespace chrome {
18888
18724
  * Configures the side panel.
18889
18725
  *
18890
18726
  * @param options The configuration options to apply to the panel.
18891
- * @param callback Returns a Promise which resolves when the options have been set.
18892
18727
  */
18893
18728
  export function setOptions(
18894
18729
 
@@ -18911,7 +18746,6 @@ declare namespace chrome {
18911
18746
  * Returns the active panel configuration.
18912
18747
  *
18913
18748
  * @param options Specifies the context to return the configuration for.
18914
- * @param callback Returns a Promise which resolves with the active panel configuration.
18915
18749
  */
18916
18750
  export function getOptions(
18917
18751
 
@@ -18936,7 +18770,6 @@ declare namespace chrome {
18936
18770
  * Configures the extension's side panel behavior. This is an upsert operation.
18937
18771
  *
18938
18772
  * @param behavior The new behavior to be set.
18939
- * @param callback Returns a Promise which resolves when the new behavior has been set.
18940
18773
  */
18941
18774
  export function setPanelBehavior(
18942
18775
 
@@ -18952,8 +18785,6 @@ declare namespace chrome {
18952
18785
 
18953
18786
  /**
18954
18787
  * Returns the extension's current side panel behavior.
18955
- *
18956
- * @param callback Returns a Promise which resolves with the extension's side panel behavior.
18957
18788
  */
18958
18789
  export function getPanelBehavior(
18959
18790
 
@@ -18977,7 +18808,6 @@ declare namespace chrome {
18977
18808
  * Opens the side panel for the extension. This may only be called in response to a user action.
18978
18809
  *
18979
18810
  * @param options Specifies the context in which to open the side panel.
18980
- * @param callback Returns a Promise which resolves when the side panel has been opened.
18981
18811
  * @since Chrome 116
18982
18812
  */
18983
18813
  export function open(
@@ -18997,7 +18827,6 @@ declare namespace chrome {
18997
18827
  /**
18998
18828
  * Returns the side panel's current layout.
18999
18829
  *
19000
- * @param callback Returns a Promise which resolves with a {@link PanelLayout}.
19001
18830
  * @since Chrome 140
19002
18831
  */
19003
18832
  export function getLayout(
@@ -19189,7 +19018,6 @@ declare namespace chrome {
19189
19018
  * Creates a TCP socket.
19190
19019
  *
19191
19020
  * @param properties The socket properties (optional).
19192
- * @param callback Called when the socket has been created.
19193
19021
  */
19194
19022
  export function create(
19195
19023
 
@@ -19221,7 +19049,6 @@ declare namespace chrome {
19221
19049
  *
19222
19050
  * @param socketId The socket identifier.
19223
19051
  * @param properties The properties to update.
19224
- * @param callback Called when the properties are updated.
19225
19052
  */
19226
19053
  export function update(
19227
19054
 
@@ -19244,8 +19071,6 @@ declare namespace chrome {
19244
19071
 
19245
19072
  /**
19246
19073
  * Enables or disables the application from receiving messages from its peer. The default value is "false". Pausing a socket is typically used by an application to throttle data sent by its peer. When a socket is paused, no `onReceive` event is raised. When a socket is connected and un-paused, `onReceive` events are raised again when messages are received.
19247
- *
19248
- * @param callback Callback from the `setPaused` method.
19249
19074
  */
19250
19075
  export function setPaused(
19251
19076
 
@@ -19387,7 +19212,6 @@ declare namespace chrome {
19387
19212
  * Disconnects the socket.
19388
19213
  *
19389
19214
  * @param socketId The socket identifier.
19390
- * @param callback Called when the disconnect attempt is complete.
19391
19215
  */
19392
19216
  export function disconnect(
19393
19217
 
@@ -19464,7 +19288,6 @@ declare namespace chrome {
19464
19288
  * Closes the socket and releases the address/port the socket is bound to. Each socket created should be closed after use. The socket id is no no longer valid as soon at the function is called. However, the socket is guaranteed to be closed only when the callback is invoked.
19465
19289
  *
19466
19290
  * @param socketId The socket identifier.
19467
- * @param callback Called when the `close` operation completes.
19468
19291
  */
19469
19292
  export function close(
19470
19293
 
@@ -19487,7 +19310,6 @@ declare namespace chrome {
19487
19310
  * Retrieves the state of the given socket.
19488
19311
  *
19489
19312
  * @param socketId The socket identifier.
19490
- * @param callback Called when the socket state is available.
19491
19313
  */
19492
19314
  export function getInfo(
19493
19315
 
@@ -19508,8 +19330,6 @@ declare namespace chrome {
19508
19330
 
19509
19331
  /**
19510
19332
  * Retrieves the list of currently opened sockets owned by the application.
19511
- *
19512
- * @param callback Called when the list of sockets is available.
19513
19333
  */
19514
19334
  export function getSockets(
19515
19335
 
@@ -19643,7 +19463,6 @@ declare namespace chrome {
19643
19463
  * Creates a TCP server socket.
19644
19464
  *
19645
19465
  * @param properties The socket properties (optional).
19646
- * @param callback Called when the socket has been created.
19647
19466
  */
19648
19467
  export function create(
19649
19468
 
@@ -19675,7 +19494,6 @@ declare namespace chrome {
19675
19494
  *
19676
19495
  * @param socketId The socket identifier.
19677
19496
  * @param properties The properties to update.
19678
- * @param callback Called when the properties are updated.
19679
19497
  */
19680
19498
  export function update(
19681
19499
 
@@ -19698,8 +19516,6 @@ declare namespace chrome {
19698
19516
 
19699
19517
  /**
19700
19518
  * Enables or disables a listening socket from accepting new connections. When paused, a listening socket accepts new connections until its backlog (see `listen` function) is full then refuses additional connection requests. `onAccept` events are raised only when the socket is un-paused.
19701
- *
19702
- * @param callback Callback from the `setPaused` method.
19703
19519
  */
19704
19520
  export function setPaused(
19705
19521
 
@@ -19775,7 +19591,6 @@ declare namespace chrome {
19775
19591
  * Disconnects the listening socket, i.e. stops accepting new connections and releases the address/port the socket is bound to. The socket identifier remains valid, e.g. it can be used with `listen` to accept connections on a new port and address.
19776
19592
  *
19777
19593
  * @param socketId The socket identifier.
19778
- * @param callback Called when the disconnect attempt is complete.
19779
19594
  */
19780
19595
  export function disconnect(
19781
19596
 
@@ -19798,7 +19613,6 @@ declare namespace chrome {
19798
19613
  * Disconnects and destroys the socket. Each socket created should be closed after use. The socket id is no longer valid as soon at the function is called. However, the socket is guaranteed to be closed only when the callback is invoked.
19799
19614
  *
19800
19615
  * @param socketId The socket identifier.
19801
- * @param callback Called when the `close` operation completes.
19802
19616
  */
19803
19617
  export function close(
19804
19618
 
@@ -19821,7 +19635,6 @@ declare namespace chrome {
19821
19635
  * Retrieves the state of the given socket.
19822
19636
  *
19823
19637
  * @param socketId The socket identifier.
19824
- * @param callback Called when the socket state is available.
19825
19638
  */
19826
19639
  export function getInfo(
19827
19640
 
@@ -19842,8 +19655,6 @@ declare namespace chrome {
19842
19655
 
19843
19656
  /**
19844
19657
  * Retrieves the list of currently opened sockets owned by the application.
19845
- *
19846
- * @param callback Called when the list of sockets is available.
19847
19658
  */
19848
19659
  export function getSockets(
19849
19660
 
@@ -20015,7 +19826,6 @@ declare namespace chrome {
20015
19826
  * Creates a UDP socket with the given properties.
20016
19827
  *
20017
19828
  * @param properties The socket properties (optional).
20018
- * @param callback Called when the socket has been created.
20019
19829
  */
20020
19830
  export function create(
20021
19831
 
@@ -20047,7 +19857,6 @@ declare namespace chrome {
20047
19857
  *
20048
19858
  * @param socketId The socket ID.
20049
19859
  * @param properties The properties to update.
20050
- * @param callback Called when the properties are updated.
20051
19860
  */
20052
19861
  export function update(
20053
19862
 
@@ -20074,7 +19883,6 @@ declare namespace chrome {
20074
19883
  * Pauses or unpauses a socket. A paused socket is blocked from firing `onReceive` events.
20075
19884
  *
20076
19885
  * @param paused Flag to indicate whether to pause or unpause.
20077
- * @param callback Called when the socket has been successfully paused or unpaused.
20078
19886
  */
20079
19887
  export function setPaused(
20080
19888
 
@@ -20182,7 +19990,6 @@ declare namespace chrome {
20182
19990
  * Closes the socket and releases the address/port the socket is bound to. Each socket created should be closed after use. The socket id is no longer valid as soon at the function is called. However, the socket is guaranteed to be closed only when the callback is invoked.
20183
19991
  *
20184
19992
  * @param socketId The socket ID.
20185
- * @param callback Called when the `close` operation completes.
20186
19993
  */
20187
19994
  export function close(
20188
19995
 
@@ -20205,7 +20012,6 @@ declare namespace chrome {
20205
20012
  * Retrieves the state of the given socket.
20206
20013
  *
20207
20014
  * @param socketId The socket ID.
20208
- * @param callback Called when the socket state is available.
20209
20015
  */
20210
20016
  export function getInfo(
20211
20017
 
@@ -20226,8 +20032,6 @@ declare namespace chrome {
20226
20032
 
20227
20033
  /**
20228
20034
  * Retrieves the list of currently opened sockets owned by the application.
20229
- *
20230
- * @param callback Called when the list of sockets is available.
20231
20035
  */
20232
20036
  export function getSockets(
20233
20037
 
@@ -20345,7 +20149,6 @@ declare namespace chrome {
20345
20149
  * Gets the multicast group addresses the socket is currently joined to.
20346
20150
  *
20347
20151
  * @param socketId The socket ID.
20348
- * @param callback Called with an array of strings of the result.
20349
20152
  */
20350
20153
  export function getJoinedGroups(
20351
20154
 
@@ -20436,7 +20239,6 @@ declare namespace chrome {
20436
20239
  * Gets one or more items from storage.
20437
20240
  *
20438
20241
  * @param keys A single key to get, list of keys to get, or a dictionary specifying default values (see description of the object). An empty list or object will return an empty result object. Pass in `null` to get the entire contents of storage.
20439
- * @param callback Callback with storage items, or on failure (in which case {@link runtime.lastError} will be set).
20440
20242
  */
20441
20243
  get(
20442
20244
 
@@ -20460,7 +20262,6 @@ declare namespace chrome {
20460
20262
  /**
20461
20263
  * Gets all keys from storage.
20462
20264
  *
20463
- * @param callback Callback with storage keys, or on failure (in which case {@link runtime.lastError} will be set).
20464
20265
  * @since Chrome 130
20465
20266
  */
20466
20267
  getKeys(
@@ -20488,7 +20289,6 @@ declare namespace chrome {
20488
20289
  * Gets the amount of space (in bytes) being used by one or more items.
20489
20290
  *
20490
20291
  * @param keys A single key or list of keys to get the total usage for. An empty list will return 0. Pass in `null` to get the total usage of all of storage.
20491
- * @param callback Callback with the amount of space being used by storage, or on failure (in which case {@link runtime.lastError} will be set).
20492
20292
  */
20493
20293
  getBytesInUse(
20494
20294
 
@@ -20525,7 +20325,6 @@ declare namespace chrome {
20525
20325
  An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.
20526
20326
 
20527
20327
  Primitive values such as numbers will serialize as expected. Values with a `typeof` `"object"` and `"function"` will typically serialize to `{}`, with the exception of `Array` (serializes as expected), `Date`, and `Regex` (serialize using their `String` representation).
20528
- * @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
20529
20328
  */
20530
20329
  set(
20531
20330
 
@@ -20549,7 +20348,6 @@ declare namespace chrome {
20549
20348
  * Removes one or more items from storage.
20550
20349
  *
20551
20350
  * @param keys A single key or a list of keys for items to remove.
20552
- * @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
20553
20351
  */
20554
20352
  remove(
20555
20353
 
@@ -20567,8 +20365,6 @@ declare namespace chrome {
20567
20365
 
20568
20366
  /**
20569
20367
  * Removes all items from storage.
20570
- *
20571
- * @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
20572
20368
  */
20573
20369
  clear(
20574
20370
 
@@ -20594,7 +20390,6 @@ declare namespace chrome {
20594
20390
  /**
20595
20391
  * Sets the desired access level for the storage area. By default, `session` storage is restricted to trusted contexts (extension pages and service workers), while `managed`, `local`, and `sync` storage allow access from both trusted and untrusted contexts.
20596
20392
  *
20597
- * @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
20598
20393
  * @since Chrome 102
20599
20394
  */
20600
20395
  setAccessLevel(
@@ -21258,7 +21053,6 @@ declare namespace chrome {
21258
21053
  * Requests the information for all attached display devices.
21259
21054
  *
21260
21055
  * @param flags Options affecting how the information is returned.
21261
- * @param callback Promise that resolves with the results.
21262
21056
  */
21263
21057
  export function getInfo(
21264
21058
 
@@ -21283,7 +21077,6 @@ declare namespace chrome {
21283
21077
  /**
21284
21078
  * Requests the layout info for all displays. NOTE: This is only available to ChromeOS Kiosk apps and Web UI.
21285
21079
  *
21286
- * @param callback Promise that resolves with the results.
21287
21080
  * @since Chrome 53
21288
21081
  */
21289
21082
  export function getDisplayLayout(
@@ -21312,7 +21105,6 @@ declare namespace chrome {
21312
21105
  *
21313
21106
  * @param id The display's unique identifier.
21314
21107
  * @param info The information about display properties that should be changed. A property will be changed only if a new value for it is specified in `info`.
21315
- * @param callback Promise that resolves when the function finishes.
21316
21108
  */
21317
21109
  export function setDisplayProperties(
21318
21110
 
@@ -21339,7 +21131,6 @@ declare namespace chrome {
21339
21131
  * Set the layout for all displays. Any display not included will use the default layout. If a layout would overlap or be otherwise invalid it will be adjusted to a valid layout. After layout is resolved, an onDisplayChanged event will be triggered. NOTE: This is only available to ChromeOS Kiosk apps and Web UI.
21340
21132
  *
21341
21133
  * @param layouts The layout information, required for all displays except the primary display.
21342
- * @param callback Promise that resolves when the function finishes.
21343
21134
  * @since Chrome 53
21344
21135
  */
21345
21136
  export function setDisplayLayout(
@@ -21423,7 +21214,6 @@ declare namespace chrome {
21423
21214
  * Displays the native touch calibration UX for the display with `id` as display id. This will show an overlay on the screen with required instructions on how to proceed. The callback will be invoked in case of successful calibration only. If the calibration fails, this will throw an error.
21424
21215
  *
21425
21216
  * @param id The display's unique identifier.
21426
- * @param callback Promise that resolves to inform the caller that the touch calibration has ended. The boolean value informs if the calibration was a success or not.
21427
21217
  * @since Chrome 57
21428
21218
  */
21429
21219
  export function showNativeTouchCalibration(
@@ -21487,7 +21277,6 @@ declare namespace chrome {
21487
21277
  * Sets the display mode to the specified mirror mode. Each call resets the state from previous calls. Calling setDisplayProperties() will fail for the mirroring destination displays. NOTE: This is only available to ChromeOS Kiosk apps and Web UI.
21488
21278
  *
21489
21279
  * @param info The information of the mirror mode that should be applied to the display mode.
21490
- * @param callback Promise that resolves when the function finishes.
21491
21280
  * @since Chrome 65
21492
21281
  */
21493
21282
  export function setMirrorMode(
@@ -21570,8 +21359,6 @@ declare namespace chrome {
21570
21359
 
21571
21360
  /**
21572
21361
  * Retrieves information about local adapters on this system.
21573
- *
21574
- * @param callback Called when local adapter information is available.
21575
21362
  */
21576
21363
  export function getNetworkInterfaces(
21577
21364
 
@@ -21755,7 +21542,6 @@ declare namespace chrome {
21755
21542
  * Adds a new log record.
21756
21543
  *
21757
21544
  * @param options The logging options.
21758
- * @param callback Returns a Promise which resolves once the log has been added.
21759
21545
  */
21760
21546
  export function add(
21761
21547
 
@@ -21858,8 +21644,6 @@ declare namespace chrome {
21858
21644
 
21859
21645
  /**
21860
21646
  * Returns a list of tabs that have requested capture or are being captured, i.e. status != stopped and status != error. This allows extensions to inform the user that there is an existing tab capture that would prevent a new tab capture from succeeding (or to prevent redundant requests for the same tab).
21861
- *
21862
- * @param callback Returns a Promise which resolves with CaptureInfo\[\] for captured tabs.
21863
21647
  */
21864
21648
  export function getCapturedTabs(
21865
21649
 
@@ -21882,7 +21666,6 @@ declare namespace chrome {
21882
21666
  /**
21883
21667
  * Creates a stream ID to capture the target tab. Similar to chrome.tabCapture.capture() method, but returns a media stream ID, instead of a media stream, to the consumer tab.
21884
21668
  *
21885
- * @param callback Returns a Promise which resolves with the result. If successful, the result is an opaque string that can be passed to the `getUserMedia()` API to generate a media stream that corresponds to the target tab. The created `streamId` can only be used once and expires after a few seconds if it is not used.
21886
21669
  * @since Chrome 71
21887
21670
  */
21888
21671
  export function getMediaStreamId(
@@ -23741,6 +23524,7 @@ declare namespace chrome {
23741
23524
  * @chrome-returns-extra since Chrome 88
23742
23525
  * @param tabId The ID of the tab to zoom; defaults to the active tab of the current window.
23743
23526
  * @param zoomFactor The new zoom factor. A value of `0` sets the tab to its current default zoom factor. Values greater than `0` specify a (possibly non-default) zoom factor for the tab.
23527
+ * @returns Resolves after the zoom factor has been changed.
23744
23528
  */
23745
23529
  export function setZoom(
23746
23530
 
@@ -23754,6 +23538,7 @@ declare namespace chrome {
23754
23538
  *
23755
23539
  * @chrome-returns-extra since Chrome 88
23756
23540
  * @param zoomFactor The new zoom factor. A value of `0` sets the tab to its current default zoom factor. Values greater than `0` specify a (possibly non-default) zoom factor for the tab.
23541
+ * @returns Resolves after the zoom factor has been changed.
23757
23542
  */
23758
23543
  export function setZoom(
23759
23544
 
@@ -23765,7 +23550,6 @@ declare namespace chrome {
23765
23550
  *
23766
23551
  * @param tabId The ID of the tab to zoom; defaults to the active tab of the current window.
23767
23552
  * @param zoomFactor The new zoom factor. A value of `0` sets the tab to its current default zoom factor. Values greater than `0` specify a (possibly non-default) zoom factor for the tab.
23768
- * @param callback Resolves after the zoom factor has been changed.
23769
23553
  */
23770
23554
  export function setZoom(
23771
23555
 
@@ -23780,7 +23564,6 @@ declare namespace chrome {
23780
23564
  * Zooms a specified tab.
23781
23565
  *
23782
23566
  * @param zoomFactor The new zoom factor. A value of `0` sets the tab to its current default zoom factor. Values greater than `0` specify a (possibly non-default) zoom factor for the tab.
23783
- * @param callback Resolves after the zoom factor has been changed.
23784
23567
  */
23785
23568
  export function setZoom(
23786
23569
 
@@ -23794,6 +23577,7 @@ declare namespace chrome {
23794
23577
  *
23795
23578
  * @chrome-returns-extra since Chrome 88
23796
23579
  * @param tabId The ID of the tab to get the current zoom factor from; defaults to the active tab of the current window.
23580
+ * @returns Resolves with the tab's current zoom factor after it has been fetched.
23797
23581
  */
23798
23582
  export function getZoom(
23799
23583
 
@@ -23804,7 +23588,6 @@ declare namespace chrome {
23804
23588
  * Gets the current zoom factor of a specified tab.
23805
23589
  *
23806
23590
  * @param tabId The ID of the tab to get the current zoom factor from; defaults to the active tab of the current window.
23807
- * @param callback Resolves with the tab's current zoom factor after it has been fetched.
23808
23591
  */
23809
23592
  export function getZoom(
23810
23593
 
@@ -23824,6 +23607,7 @@ declare namespace chrome {
23824
23607
  * @chrome-returns-extra since Chrome 88
23825
23608
  * @param tabId The ID of the tab to change the zoom settings for; defaults to the active tab of the current window.
23826
23609
  * @param zoomSettings Defines how zoom changes are handled and at what scope.
23610
+ * @returns Resolves after the zoom settings are changed.
23827
23611
  */
23828
23612
  export function setZoomSettings(
23829
23613
 
@@ -23837,6 +23621,7 @@ declare namespace chrome {
23837
23621
  *
23838
23622
  * @chrome-returns-extra since Chrome 88
23839
23623
  * @param zoomSettings Defines how zoom changes are handled and at what scope.
23624
+ * @returns Resolves after the zoom settings are changed.
23840
23625
  */
23841
23626
  export function setZoomSettings(
23842
23627
 
@@ -23848,7 +23633,6 @@ declare namespace chrome {
23848
23633
  *
23849
23634
  * @param tabId The ID of the tab to change the zoom settings for; defaults to the active tab of the current window.
23850
23635
  * @param zoomSettings Defines how zoom changes are handled and at what scope.
23851
- * @param callback Resolves after the zoom settings are changed.
23852
23636
  */
23853
23637
  export function setZoomSettings(
23854
23638
 
@@ -23863,7 +23647,6 @@ declare namespace chrome {
23863
23647
  * Sets the zoom settings for a specified tab, which define how zoom changes are handled. These settings are reset to defaults upon navigating the tab.
23864
23648
  *
23865
23649
  * @param zoomSettings Defines how zoom changes are handled and at what scope.
23866
- * @param callback Resolves after the zoom settings are changed.
23867
23650
  */
23868
23651
  export function setZoomSettings(
23869
23652
 
@@ -23877,6 +23660,7 @@ declare namespace chrome {
23877
23660
  *
23878
23661
  * @chrome-returns-extra since Chrome 88
23879
23662
  * @param tabId The ID of the tab to get the current zoom settings from; defaults to the active tab of the current window.
23663
+ * @returns Resolves with the tab's current zoom settings.
23880
23664
  */
23881
23665
  export function getZoomSettings(
23882
23666
 
@@ -23887,7 +23671,6 @@ declare namespace chrome {
23887
23671
  * Gets the current zoom settings of a specified tab.
23888
23672
  *
23889
23673
  * @param tabId The ID of the tab to get the current zoom settings from; defaults to the active tab of the current window.
23890
- * @param callback Resolves with the tab's current zoom settings.
23891
23674
  */
23892
23675
  export function getZoomSettings(
23893
23676
 
@@ -23906,6 +23689,7 @@ declare namespace chrome {
23906
23689
  *
23907
23690
  * @chrome-returns-extra since Chrome 88
23908
23691
  * @param tabId The ID of the tab to be discarded. If specified, the tab is discarded unless it is active or already discarded. If omitted, the browser discards the least important tab. This can fail if no discardable tabs exist.
23692
+ * @returns Resolves after the operation is completed.
23909
23693
  * @since Chrome 54
23910
23694
  */
23911
23695
  export function discard(
@@ -23917,7 +23701,6 @@ declare namespace chrome {
23917
23701
  * Discards a tab from memory. Discarded tabs are still visible on the tab strip and are reloaded when activated.
23918
23702
  *
23919
23703
  * @param tabId The ID of the tab to be discarded. If specified, the tab is discarded unless it is active or already discarded. If omitted, the browser discards the least important tab. This can fail if no discardable tabs exist.
23920
- * @param callback Resolves after the operation is completed.
23921
23704
  * @since Chrome 54
23922
23705
  */
23923
23706
  export function discard(
@@ -24206,7 +23989,6 @@ declare namespace chrome {
24206
23989
  *
24207
23990
  * @param utterance The text to speak, either plain text or a complete, well-formed SSML document. Speech engines that do not support SSML will strip away the tags and speak the text. The maximum length of the text is 32,768 characters.
24208
23991
  * @param options The speech options.
24209
- * @param callback Resolves right away, before speech finishes. If an error occurs, the promise will be rejected. Use options.onEvent to get more detailed feedback.
24210
23992
  */
24211
23993
  export function speak(
24212
23994
 
@@ -24681,6 +24463,7 @@ declare namespace chrome {
24681
24463
  *
24682
24464
  * @chrome-returns-extra since Chrome 96
24683
24465
  * @param details Which setting to change.
24466
+ * @returns Called at the completion of the set operation.
24684
24467
  */
24685
24468
  set(
24686
24469
 
@@ -24703,7 +24486,6 @@ declare namespace chrome {
24703
24486
  * Sets the value of a setting.
24704
24487
  *
24705
24488
  * @param details Which setting to change.
24706
- * @param callback Called at the completion of the set operation.
24707
24489
  */
24708
24490
  set(
24709
24491
 
@@ -24729,6 +24511,7 @@ declare namespace chrome {
24729
24511
  *
24730
24512
  * @chrome-returns-extra since Chrome 96
24731
24513
  * @param details Which setting to clear.
24514
+ * @returns Called at the completion of the clear operation.
24732
24515
  */
24733
24516
  clear(
24734
24517
 
@@ -24745,7 +24528,6 @@ declare namespace chrome {
24745
24528
  * Clears the setting, restoring any default value.
24746
24529
  *
24747
24530
  * @param details Which setting to clear.
24748
- * @param callback Called at the completion of the clear operation.
24749
24531
  */
24750
24532
  clear(
24751
24533
 
@@ -24972,7 +24754,6 @@ declare namespace chrome {
24972
24754
  * Registers one or more user scripts for this extension.
24973
24755
  *
24974
24756
  * @param scripts Contains a list of user scripts to be registered.
24975
- * @param callback Promise that resolves once scripts have been fully registered. The promise will be rejected if an error occurs.
24976
24757
  */
24977
24758
  export function register(
24978
24759
 
@@ -24995,7 +24776,6 @@ declare namespace chrome {
24995
24776
  * Returns all dynamically-registered user scripts for this extension.
24996
24777
  *
24997
24778
  * @param filter If specified, this method returns only the user scripts that match it.
24998
- * @param callback Promise that resolves with the registered scripts. The promise will be rejected if an error occurs.
24999
24779
  */
25000
24780
  export function getScripts(
25001
24781
 
@@ -25020,7 +24800,6 @@ declare namespace chrome {
25020
24800
  * Unregisters all dynamically-registered user scripts for this extension.
25021
24801
  *
25022
24802
  * @param filter If specified, this method unregisters only the user scripts that match it.
25023
- * @param callback Promise that resolves once scripts have been fully unregistered. The promise will be rejected if an error occurs.
25024
24803
  */
25025
24804
  export function unregister(
25026
24805
 
@@ -25043,7 +24822,6 @@ declare namespace chrome {
25043
24822
  * Updates one or more user scripts for this extension.
25044
24823
  *
25045
24824
  * @param scripts Contains a list of user scripts to be updated. A property is only updated for the existing script if it is specified in this object. If there are errors during script parsing/file validation, or if the IDs specified do not correspond to a fully registered script, then no scripts are updated.
25046
- * @param callback Promise that resolves once scripts have been fully updated. The promise will be rejected if an error occurs.
25047
24825
  */
25048
24826
  export function update(
25049
24827
 
@@ -25090,7 +24868,6 @@ declare namespace chrome {
25090
24868
  * Configures the `` `USER_SCRIPT` `` execution environment.
25091
24869
  *
25092
24870
  * @param properties Contains the user script world configuration.
25093
- * @param callback Promise that resolves once the world has been configured.
25094
24871
  */
25095
24872
  export function configureWorld(
25096
24873
 
@@ -25109,7 +24886,6 @@ declare namespace chrome {
25109
24886
  /**
25110
24887
  * Retrieves all registered world configurations.
25111
24888
  *
25112
- * @param callback Promise that resolves with the registered world configurations.
25113
24889
  * @since Chrome 133
25114
24890
  */
25115
24891
  export function getWorldConfigurations(
@@ -25134,7 +24910,6 @@ declare namespace chrome {
25134
24910
  * Resets the configuration for a user script world. Any scripts that inject into the world with the specified ID will use the default world configuration.
25135
24911
  *
25136
24912
  * @param worldId The ID of the user script world to reset. If omitted, resets the default world's configuration.
25137
- * @param callback Promise that resolves when the configuration is reset.
25138
24913
  * @since Chrome 133
25139
24914
  */
25140
24915
  export function resetWorldConfiguration(
@@ -25288,7 +25063,6 @@ declare namespace chrome {
25288
25063
  * Creates a new VPN configuration that persists across multiple login sessions of the user.
25289
25064
  *
25290
25065
  * @param name The name of the VPN configuration.
25291
- * @param callback Returns a Promise which resolves when the configuration is created or rejects if there is an error.
25292
25066
  */
25293
25067
  export function createConfig(
25294
25068
 
@@ -25317,7 +25091,6 @@ declare namespace chrome {
25317
25091
  * Destroys a VPN configuration created by the extension.
25318
25092
  *
25319
25093
  * @param id ID of the VPN configuration to destroy.
25320
- * @param callback Returns a Promise which resolves when the configuration is destroyed or rejects if there is an error.
25321
25094
  */
25322
25095
  export function destroyConfig(
25323
25096
 
@@ -25341,7 +25114,6 @@ declare namespace chrome {
25341
25114
  * Sets the parameters for the VPN session. This should be called immediately after `"connected"` is received from the platform. This will succeed only when the VPN session is owned by the extension.
25342
25115
  *
25343
25116
  * @param parameters The parameters for the VPN session.
25344
- * @param callback Returns a Promise which resolves when the parameters are set or rejects if there is an error.
25345
25117
  */
25346
25118
  export function setParameters(
25347
25119
 
@@ -25365,7 +25137,6 @@ declare namespace chrome {
25365
25137
  * Sends an IP packet through the tunnel created for the VPN session. This will succeed only when the VPN session is owned by the extension.
25366
25138
  *
25367
25139
  * @param data The IP packet to be sent to the platform.
25368
- * @param callback Returns a Promise which resolves when the packet is sent or rejects if there is an error.
25369
25140
  */
25370
25141
  export function sendPacket(
25371
25142
 
@@ -25389,7 +25160,6 @@ declare namespace chrome {
25389
25160
  * Notifies the VPN session state to the platform. This will succeed only when the VPN session is owned by the extension.
25390
25161
  *
25391
25162
  * @param state The VPN session state of the VPN client.
25392
- * @param callback Returns a Promise which resolves when the notification is complete or rejects if there is an error.
25393
25163
  */
25394
25164
  export function notifyConnectionStateChanged(
25395
25165