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/_all.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:29 GMT+0000 (Coordinated Universal Time)
18
- // Built at 6e48d4846be29f4a9aaed3eb462a776dde83c792
17
+ // Generated on Wed Jan 07 2026 15:45:22 GMT+0000 (Coordinated Universal Time)
18
+ // Built at b53c887388cda795521d8f71e46844d3fc36967a
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -818,7 +818,6 @@ declare namespace chrome {
818
818
  *
819
819
  * @param name Optional name to identify this alarm. Defaults to the empty string.
820
820
  * @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`.
821
- * @param callback Promise that resolves when the alarm has been created.
822
821
  */
823
822
  export function create(
824
823
 
@@ -840,7 +839,6 @@ declare namespace chrome {
840
839
  * 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.
841
840
  *
842
841
  * @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`.
843
- * @param callback Promise that resolves when the alarm has been created.
844
842
  */
845
843
  export function create(
846
844
 
@@ -1641,16 +1639,6 @@ declare namespace chrome {
1641
1639
  * To set the position, size and constraints of the window, use the `innerBounds` or `outerBounds` properties. Inner bounds do not include window decorations. Outer bounds include the window's title bar and frame. Note that the padding between the inner and outer bounds is determined by the OS. Therefore setting the same property for both inner and outer bounds is considered an error (for example, setting both `innerBounds.left` and `outerBounds.left`).
1642
1640
  *
1643
1641
  * To automatically remember the positions of windows you can give them ids. If a window has an id, This id is used to remember the size and position of the window whenever it is moved or resized. This size and position is then used instead of the specified bounds on subsequent opening of a window with the same id. If you need to open a window with an id at a location other than the remembered default, you can create it hidden, move it to the desired location, then show it.
1644
- *
1645
- * @param callback
1646
-
1647
- Called in the creating window (parent) before the load event is called in the created window (child). The parent can set fields or functions on the child usable from onload. E.g. background.js:
1648
-
1649
- `function(createdWindow) { createdWindow.contentWindow.foo = function () { }; };`
1650
-
1651
- window.js:
1652
-
1653
- `window.onload = function () { foo(); }`
1654
1642
  */
1655
1643
  export function create(
1656
1644
 
@@ -1747,7 +1735,6 @@ declare namespace chrome {
1747
1735
  *
1748
1736
  * @param app The extension id of the app to be embedded.
1749
1737
  * @param data Optional developer specified data that the app to be embedded can use when making an embedding decision.
1750
- * @param callback An optional function that's called after the embedding request is completed.
1751
1738
  */
1752
1739
  export function connect(
1753
1740
 
@@ -1930,7 +1917,6 @@ declare namespace chrome {
1930
1917
  * Gets a list of audio devices filtered based on `filter`.
1931
1918
  *
1932
1919
  * @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.
1933
- * @param callback Reports the requested list of audio devices.
1934
1920
  */
1935
1921
  export function getDevices(
1936
1922
 
@@ -2011,7 +1997,6 @@ declare namespace chrome {
2011
1997
  * Gets the system-wide mute state for the specified stream type.
2012
1998
  *
2013
1999
  * @param streamType Stream type for which mute state should be fetched.
2014
- * @param callback Promise that resolves with a boolean indicating whether mute is set or not for specified stream type.
2015
2000
  */
2016
2001
  export function getMute(
2017
2002
 
@@ -2260,8 +2245,6 @@ declare namespace chrome {
2260
2245
 
2261
2246
  /**
2262
2247
  * Get information about the Bluetooth adapter.
2263
- *
2264
- * @param callback Called with an AdapterState object describing the adapter state.
2265
2248
  */
2266
2249
  export function getAdapterState(
2267
2250
 
@@ -2288,7 +2271,6 @@ declare namespace chrome {
2288
2271
  * Get information about a Bluetooth device known to the system.
2289
2272
  *
2290
2273
  * @param deviceAddress Address of device to get.
2291
- * @param callback Called with the Device object describing the device.
2292
2274
  */
2293
2275
  export function getDevice(
2294
2276
 
@@ -2320,7 +2302,6 @@ declare namespace chrome {
2320
2302
  * Get a list of Bluetooth devices known to the system, including paired and recently discovered devices.
2321
2303
  *
2322
2304
  * @param filter Some criteria to filter the list of returned bluetooth devices. If the filter is not set or set to `{}`, returned device list will contain all bluetooth devices. Right now this is only supported in ChromeOS, for other platforms, a full list is returned.
2323
- * @param callback Called when the search is completed.
2324
2305
  */
2325
2306
  export function getDevices(
2326
2307
 
@@ -2350,8 +2331,6 @@ declare namespace chrome {
2350
2331
  * Start discovery. Newly discovered devices will be returned via the onDeviceAdded event. Previously discovered devices already known to the adapter must be obtained using getDevices and will only be updated using the `onDeviceChanged` event if information about them changes.
2351
2332
  *
2352
2333
  * Discovery will fail to start if this application has already called startDiscovery. Discovery can be resource intensive: stopDiscovery should be called as soon as possible.
2353
- *
2354
- * @param callback Called to indicate success or failure.
2355
2334
  */
2356
2335
  export function startDiscovery(
2357
2336
 
@@ -2367,8 +2346,6 @@ declare namespace chrome {
2367
2346
 
2368
2347
  /**
2369
2348
  * Stop discovery.
2370
- *
2371
- * @param callback Called to indicate success or failure.
2372
2349
  */
2373
2350
  export function stopDiscovery(
2374
2351
 
@@ -2728,7 +2705,6 @@ declare namespace chrome {
2728
2705
  *
2729
2706
  * @param deviceAddress The Bluetooth address of the remote device to which a GATT connection should be opened.
2730
2707
  * @param properties Connection properties (optional).
2731
- * @param callback Called when the connect request has completed.
2732
2708
  */
2733
2709
  export function connect(
2734
2710
 
@@ -2754,7 +2730,6 @@ declare namespace chrome {
2754
2730
  * Closes the app's connection to the device with the given address. Note that this will not always destroy the physical link itself, since there may be other apps with open connections.
2755
2731
  *
2756
2732
  * @param deviceAddress The Bluetooth address of the remote device.
2757
- * @param callback Called when the disconnect request has completed.
2758
2733
  */
2759
2734
  export function disconnect(
2760
2735
 
@@ -2778,7 +2753,6 @@ declare namespace chrome {
2778
2753
  * Get the GATT service with the given instance ID.
2779
2754
  *
2780
2755
  * @param serviceId The instance ID of the requested GATT service.
2781
- * @param callback Called with the requested Service object.
2782
2756
  */
2783
2757
  export function getService(
2784
2758
 
@@ -2805,7 +2779,6 @@ declare namespace chrome {
2805
2779
  * Create a locally hosted GATT service. This service can be registered to be available on a local GATT server. This function is only available if the app has both the bluetooth:low\_energy and the bluetooth:peripheral permissions set to true. The peripheral permission may not be available to all apps.
2806
2780
  *
2807
2781
  * @param service The service to create.
2808
- * @param callback Called with the created services's unique ID.
2809
2782
  * @since Chrome 52
2810
2783
  */
2811
2784
  export function createService(
@@ -2836,7 +2809,6 @@ declare namespace chrome {
2836
2809
  * _Note:_ If service discovery is not yet complete on the device, this API will return a subset (possibly empty) of services. A work around is to add a time based delay and/or call repeatedly until the expected number of services is returned.
2837
2810
  *
2838
2811
  * @param deviceAddress The Bluetooth address of the remote device whose GATT services should be returned.
2839
- * @param callback Called with the list of requested Service objects.
2840
2812
  */
2841
2813
  export function getServices(
2842
2814
 
@@ -2862,7 +2834,6 @@ declare namespace chrome {
2862
2834
  * Get the GATT characteristic with the given instance ID that belongs to the given GATT service, if the characteristic exists.
2863
2835
  *
2864
2836
  * @param characteristicId The instance ID of the requested GATT characteristic.
2865
- * @param callback Called with the requested Characteristic object.
2866
2837
  */
2867
2838
  export function getCharacteristic(
2868
2839
 
@@ -2893,7 +2864,6 @@ declare namespace chrome {
2893
2864
  *
2894
2865
  * @param characteristic The characteristic to create.
2895
2866
  * @param serviceId ID of the service to create this characteristic for.
2896
- * @param callback Called with the created characteristic's unique ID.
2897
2867
  * @since Chrome 52
2898
2868
  */
2899
2869
  export function createCharacteristic(
@@ -2922,7 +2892,6 @@ declare namespace chrome {
2922
2892
  * Get a list of all discovered GATT characteristics that belong to the given service.
2923
2893
  *
2924
2894
  * @param serviceId The instance ID of the GATT service whose characteristics should be returned.
2925
- * @param callback Called with the list of characteristics that belong to the given service.
2926
2895
  */
2927
2896
  export function getCharacteristics(
2928
2897
 
@@ -2948,7 +2917,6 @@ declare namespace chrome {
2948
2917
  * Get a list of GATT services that are included by the given service.
2949
2918
  *
2950
2919
  * @param serviceId The instance ID of the GATT service whose included services should be returned.
2951
- * @param callback Called with the list of GATT services included from the given service.
2952
2920
  */
2953
2921
  export function getIncludedServices(
2954
2922
 
@@ -2974,7 +2942,6 @@ declare namespace chrome {
2974
2942
  * Get the GATT characteristic descriptor with the given instance ID.
2975
2943
  *
2976
2944
  * @param descriptorId The instance ID of the requested GATT characteristic descriptor.
2977
- * @param callback Called with the requested Descriptor object.
2978
2945
  */
2979
2946
  export function getDescriptor(
2980
2947
 
@@ -3005,7 +2972,6 @@ declare namespace chrome {
3005
2972
  *
3006
2973
  * @param descriptor The descriptor to create.
3007
2974
  * @param characteristicId ID of the characteristic to create this descriptor for.
3008
- * @param callback Called with the created descriptor's unique ID.
3009
2975
  * @since Chrome 52
3010
2976
  */
3011
2977
  export function createDescriptor(
@@ -3034,7 +3000,6 @@ declare namespace chrome {
3034
3000
  * Get a list of GATT characteristic descriptors that belong to the given characteristic.
3035
3001
  *
3036
3002
  * @param characteristicId The instance ID of the GATT characteristic whose descriptors should be returned.
3037
- * @param callback Called with the list of descriptors that belong to the given characteristic.
3038
3003
  */
3039
3004
  export function getDescriptors(
3040
3005
 
@@ -3060,7 +3025,6 @@ declare namespace chrome {
3060
3025
  * Retrieve the value of a specified characteristic from a remote peripheral.
3061
3026
  *
3062
3027
  * @param characteristicId The instance ID of the GATT characteristic whose value should be read from the remote device.
3063
- * @param callback Called with the Characteristic object whose value was requested. The `value` field of the returned Characteristic object contains the result of the read request.
3064
3028
  */
3065
3029
  export function readCharacteristicValue(
3066
3030
 
@@ -3090,7 +3054,6 @@ declare namespace chrome {
3090
3054
  *
3091
3055
  * @param characteristicId The instance ID of the GATT characteristic whose value should be written to.
3092
3056
  * @param value The value that should be sent to the remote characteristic as part of the write request.
3093
- * @param callback Called when the write request has completed.
3094
3057
  */
3095
3058
  export function writeCharacteristicValue(
3096
3059
 
@@ -3120,7 +3083,6 @@ declare namespace chrome {
3120
3083
  *
3121
3084
  * @param characteristicId The instance ID of the GATT characteristic that notifications should be enabled on.
3122
3085
  * @param properties Notification session properties (optional).
3123
- * @param callback Called when the request has completed.
3124
3086
  */
3125
3087
  export function startCharacteristicNotifications(
3126
3088
 
@@ -3146,7 +3108,6 @@ declare namespace chrome {
3146
3108
  * Disable value notifications/indications from the specified characteristic. After a successful call, the application will stop receiving notifications/indications from this characteristic.
3147
3109
  *
3148
3110
  * @param characteristicId The instance ID of the GATT characteristic on which this app's notification session should be stopped.
3149
- * @param callback Called when the request has completed (optional).
3150
3111
  */
3151
3112
  export function stopCharacteristicNotifications(
3152
3113
 
@@ -3173,7 +3134,6 @@ declare namespace chrome {
3173
3134
  * Notify a remote device of a new value for a characteristic. If the shouldIndicate flag in the notification object is true, an indication will be sent instead of a notification. Note, the characteristic needs to correctly set the 'notify' or 'indicate' property during creation for this call to succeed. This function is only available if the app has both the bluetooth:low\_energy and the bluetooth:peripheral permissions set to true. The peripheral permission may not be available to all apps.
3174
3135
  *
3175
3136
  * @param characteristicId The characteristic to send the notication for.
3176
- * @param callback Callback called once the notification or indication has been sent successfully.
3177
3137
  * @since Chrome 52
3178
3138
  */
3179
3139
  export function notifyCharacteristicValueChanged(
@@ -3200,7 +3160,6 @@ declare namespace chrome {
3200
3160
  * Retrieve the value of a specified characteristic descriptor from a remote peripheral.
3201
3161
  *
3202
3162
  * @param descriptorId The instance ID of the GATT characteristic descriptor whose value should be read from the remote device.
3203
- * @param callback Called with the Descriptor object whose value was requested. The `value` field of the returned Descriptor object contains the result of the read request.
3204
3163
  */
3205
3164
  export function readDescriptorValue(
3206
3165
 
@@ -3230,7 +3189,6 @@ declare namespace chrome {
3230
3189
  *
3231
3190
  * @param descriptorId The instance ID of the GATT characteristic descriptor whose value should be written to.
3232
3191
  * @param value The value that should be sent to the remote descriptor as part of the write request.
3233
- * @param callback Called when the write request has completed.
3234
3192
  */
3235
3193
  export function writeDescriptorValue(
3236
3194
 
@@ -3257,7 +3215,6 @@ declare namespace chrome {
3257
3215
  * Register the given service with the local GATT server. If the service ID is invalid, the lastError will be set. This function is only available if the app has both the bluetooth:low\_energy and the bluetooth:peripheral permissions set to true. The peripheral permission may not be available to all apps.
3258
3216
  *
3259
3217
  * @param serviceId Unique ID of a created service.
3260
- * @param callback Callback with the result of the register operation.
3261
3218
  * @since Chrome 52
3262
3219
  */
3263
3220
  export function registerService(
@@ -3283,7 +3240,6 @@ declare namespace chrome {
3283
3240
  * Unregister the given service with the local GATT server. If the service ID is invalid, the lastError will be set. This function is only available if the app has both the bluetooth:low\_energy and the bluetooth:peripheral permissions set to true. The peripheral permission may not be available to all apps.
3284
3241
  *
3285
3242
  * @param serviceId Unique ID of a current registered service.
3286
- * @param callback Callback with the result of the register operation.
3287
3243
  * @since Chrome 52
3288
3244
  */
3289
3245
  export function unregisterService(
@@ -3309,7 +3265,6 @@ declare namespace chrome {
3309
3265
  * Remove the specified service, unregistering it if it was registered. If the service ID is invalid, the lastError will be set. This function is only available if the app has both the bluetooth:low\_energy and the bluetooth:peripheral permissions set to true. The peripheral permission may not be available to all apps.
3310
3266
  *
3311
3267
  * @param serviceId Unique ID of a current registered service.
3312
- * @param callback Callback called once the service is removed.
3313
3268
  * @since Chrome 52
3314
3269
  */
3315
3270
  export function removeService(
@@ -3335,7 +3290,6 @@ declare namespace chrome {
3335
3290
  * Create an advertisement and register it for advertising. To call this function, the app must have the bluetooth:low\_energy and bluetooth:peripheral permissions set to true. Additionally this API is only available to auto launched apps in Kiosk Mode or by setting the '--enable-ble-advertising-in-apps' command-line switch. See https://developer.chrome.com/apps/manifest/bluetooth Note: On some hardware, central and peripheral modes at the same time is supported but on hardware that doesn't support this, making this call will switch the device to peripheral mode. In the case of hardware which does not support both central and peripheral mode, attempting to use the device in both modes will lead to undefined behavior or prevent other central-role applications from behaving correctly (including the discovery of Bluetooth Low Energy devices).
3336
3291
  *
3337
3292
  * @param advertisement The advertisement to advertise.
3338
- * @param callback Called once the registeration is done and we've started advertising. Returns the id of the created advertisement.
3339
3293
  * @since Chrome 47
3340
3294
  */
3341
3295
  export function registerAdvertisement(
@@ -3363,7 +3317,6 @@ declare namespace chrome {
3363
3317
  * Unregisters an advertisement and stops its advertising. If the advertisement fails to unregister the only way to stop advertising might be to restart the device.
3364
3318
  *
3365
3319
  * @param advertisementId Id of the advertisement to unregister.
3366
- * @param callback Called once the advertisement is unregistered and is no longer being advertised.
3367
3320
  * @since Chrome 47
3368
3321
  */
3369
3322
  export function unregisterAdvertisement(
@@ -3384,7 +3337,6 @@ declare namespace chrome {
3384
3337
  /**
3385
3338
  * Resets advertising on the current device. It will unregister and stop all existing advertisements.
3386
3339
  *
3387
- * @param callback Called once the advertisements are reset.
3388
3340
  * @since Chrome 61
3389
3341
  */
3390
3342
  export function resetAdvertising(
@@ -3412,7 +3364,6 @@ declare namespace chrome {
3412
3364
  *
3413
3365
  * @param minInterval Minimum interval between advertisments (in milliseconds). This cannot be lower than 20ms (as per the spec).
3414
3366
  * @param maxInterval Maximum interval between advertisments (in milliseconds). This cannot be more than 10240ms (as per the spec).
3415
- * @param callback Called once the interval has been set.
3416
3367
  * @since Chrome 55
3417
3368
  */
3418
3369
  export function setAdvertisingInterval(
@@ -3653,7 +3604,6 @@ declare namespace chrome {
3653
3604
  * Creates a Bluetooth socket.
3654
3605
  *
3655
3606
  * @param properties The socket properties (optional).
3656
- * @param callback Called when the socket has been created.
3657
3607
  */
3658
3608
  export function create(
3659
3609
 
@@ -3686,7 +3636,6 @@ declare namespace chrome {
3686
3636
  *
3687
3637
  * @param socketId The socket identifier.
3688
3638
  * @param properties The properties to update.
3689
- * @param callback Called when the properties are updated.
3690
3639
  */
3691
3640
  export function update(
3692
3641
 
@@ -3711,8 +3660,6 @@ declare namespace chrome {
3711
3660
 
3712
3661
  /**
3713
3662
  * Enables or disables a connected socket from receiving messages from its peer, or a listening socket from accepting new connections. The default value is "false". Pausing a connected socket is typically used by an application to throttle data sent by its peer. When a connected 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. When a listening socket is paused, new connections are accepted until its backlog is full then additional connection requests are refused. `onAccept` events are raised only when the socket is un-paused.
3714
- *
3715
- * @param callback Callback from the `setPaused` method.
3716
3663
  */
3717
3664
  export function setPaused(
3718
3665
 
@@ -3746,7 +3693,6 @@ declare namespace chrome {
3746
3693
  * @param socketId The socket identifier.
3747
3694
  * @param uuid Service UUID to listen on.
3748
3695
  * @param options Optional additional options for the service.
3749
- * @param callback Called when listen operation completes.
3750
3696
  */
3751
3697
  export function listenUsingRfcomm(
3752
3698
 
@@ -3782,7 +3728,6 @@ declare namespace chrome {
3782
3728
  * @param socketId The socket identifier.
3783
3729
  * @param uuid Service UUID to listen on.
3784
3730
  * @param options Optional additional options for the service.
3785
- * @param callback Called when listen operation completes.
3786
3731
  */
3787
3732
  export function listenUsingL2cap(
3788
3733
 
@@ -3818,7 +3763,6 @@ declare namespace chrome {
3818
3763
  * @param socketId The socket identifier.
3819
3764
  * @param address The address of the Bluetooth device.
3820
3765
  * @param uuid The UUID of the service to connect to.
3821
- * @param callback Called when the connect attempt is complete.
3822
3766
  */
3823
3767
  export function connect(
3824
3768
 
@@ -3846,7 +3790,6 @@ declare namespace chrome {
3846
3790
  * Disconnects the socket. The socket identifier remains valid.
3847
3791
  *
3848
3792
  * @param socketId The socket identifier.
3849
- * @param callback Called when the disconnect attempt is complete.
3850
3793
  */
3851
3794
  export function disconnect(
3852
3795
 
@@ -3870,7 +3813,6 @@ declare namespace chrome {
3870
3813
  * 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.
3871
3814
  *
3872
3815
  * @param socketId The socket identifier.
3873
- * @param callback Called when the `close` operation completes.
3874
3816
  */
3875
3817
  export function close(
3876
3818
 
@@ -3898,7 +3840,6 @@ declare namespace chrome {
3898
3840
  *
3899
3841
  * @param socketId The socket identifier.
3900
3842
  * @param data The data to send.
3901
- * @param callback Called with the number of bytes sent.
3902
3843
  */
3903
3844
  export function send(
3904
3845
 
@@ -3929,7 +3870,6 @@ declare namespace chrome {
3929
3870
  * Retrieves the state of the given socket.
3930
3871
  *
3931
3872
  * @param socketId The socket identifier.
3932
- * @param callback Called when the socket state is available.
3933
3873
  */
3934
3874
  export function getInfo(
3935
3875
 
@@ -3952,8 +3892,6 @@ declare namespace chrome {
3952
3892
 
3953
3893
  /**
3954
3894
  * Retrieves the list of currently opened sockets owned by the application.
3955
- *
3956
- * @param callback Called when the list of sockets is available.
3957
3895
  */
3958
3896
  export function getSockets(
3959
3897
 
@@ -4510,7 +4448,6 @@ declare namespace chrome {
4510
4448
  * Opens a new tab in a browser window associated with the current application and Chrome profile. If no browser window for the Chrome profile is opened, a new one is opened prior to creating the new tab.
4511
4449
  *
4512
4450
  * @param options Configures how the tab should be opened.
4513
- * @param callback Called when the tab was successfully created, or failed to be created. If failed, {@link runtime.lastError} will be set.
4514
4451
  */
4515
4452
  export function openTab(
4516
4453
 
@@ -5123,7 +5060,6 @@ declare namespace chrome {
5123
5060
  * Clears various types of browsing data stored in a user's profile.
5124
5061
  *
5125
5062
  * @param dataToRemove The set of data types to remove.
5126
- * @param callback Resolves when deletion has completed.
5127
5063
  */
5128
5064
  export function remove(
5129
5065
 
@@ -5146,8 +5082,6 @@ declare namespace chrome {
5146
5082
 
5147
5083
  /**
5148
5084
  * Clears websites' appcache data.
5149
- *
5150
- * @param callback Resolves when websites' appcache data has been cleared.
5151
5085
  */
5152
5086
  export function removeAppcache(
5153
5087
 
@@ -5168,8 +5102,6 @@ declare namespace chrome {
5168
5102
 
5169
5103
  /**
5170
5104
  * Clears the browser's cache.
5171
- *
5172
- * @param callback Resolves when the browser's cache has been cleared.
5173
5105
  */
5174
5106
  export function removeCache(
5175
5107
 
@@ -5192,7 +5124,6 @@ declare namespace chrome {
5192
5124
  /**
5193
5125
  * Clears websites' cache storage data.
5194
5126
  *
5195
- * @param callback Resolves when websites' cache storage has been cleared.
5196
5127
  * @since Chrome 72
5197
5128
  */
5198
5129
  export function removeCacheStorage(
@@ -5214,8 +5145,6 @@ declare namespace chrome {
5214
5145
 
5215
5146
  /**
5216
5147
  * Clears the browser's cookies and server-bound certificates modified within a particular timeframe.
5217
- *
5218
- * @param callback Resolves when the browser's cookies and server-bound certificates have been cleared.
5219
5148
  */
5220
5149
  export function removeCookies(
5221
5150
 
@@ -5236,8 +5165,6 @@ declare namespace chrome {
5236
5165
 
5237
5166
  /**
5238
5167
  * Clears the browser's list of downloaded files (_not_ the downloaded files themselves).
5239
- *
5240
- * @param callback Resolves when the browser's list of downloaded files has been cleared.
5241
5168
  */
5242
5169
  export function removeDownloads(
5243
5170
 
@@ -5258,8 +5185,6 @@ declare namespace chrome {
5258
5185
 
5259
5186
  /**
5260
5187
  * Clears websites' file system data.
5261
- *
5262
- * @param callback Resolves when websites' file systems have been cleared.
5263
5188
  */
5264
5189
  export function removeFileSystems(
5265
5190
 
@@ -5280,8 +5205,6 @@ declare namespace chrome {
5280
5205
 
5281
5206
  /**
5282
5207
  * Clears the browser's stored form data (autofill).
5283
- *
5284
- * @param callback Resolves when the browser's form data has been cleared.
5285
5208
  */
5286
5209
  export function removeFormData(
5287
5210
 
@@ -5302,8 +5225,6 @@ declare namespace chrome {
5302
5225
 
5303
5226
  /**
5304
5227
  * Clears the browser's history.
5305
- *
5306
- * @param callback Resolves when the browser's history has cleared.
5307
5228
  */
5308
5229
  export function removeHistory(
5309
5230
 
@@ -5324,8 +5245,6 @@ declare namespace chrome {
5324
5245
 
5325
5246
  /**
5326
5247
  * Clears websites' IndexedDB data.
5327
- *
5328
- * @param callback Resolves when websites' IndexedDB data has been cleared.
5329
5248
  */
5330
5249
  export function removeIndexedDB(
5331
5250
 
@@ -5346,8 +5265,6 @@ declare namespace chrome {
5346
5265
 
5347
5266
  /**
5348
5267
  * Clears websites' local storage data.
5349
- *
5350
- * @param callback Resolves when websites' local storage has been cleared.
5351
5268
  */
5352
5269
  export function removeLocalStorage(
5353
5270
 
@@ -5371,7 +5288,6 @@ declare namespace chrome {
5371
5288
  /**
5372
5289
  * Clears plugins' data.
5373
5290
  *
5374
- * @param callback Resolves when plugins' data has been cleared.
5375
5291
  * @deprecated Support for Flash has been removed. This function has no effect.
5376
5292
  * @chrome-deprecated-since Chrome 88
5377
5293
  */
@@ -5396,7 +5312,6 @@ declare namespace chrome {
5396
5312
  /**
5397
5313
  * Clears the browser's stored passwords.
5398
5314
  *
5399
- * @param callback Resolves when the browser's passwords have been cleared.
5400
5315
  * @deprecated Support for password deletion through extensions has been removed. This function has no effect.
5401
5316
  */
5402
5317
  export function removePasswords(
@@ -5420,7 +5335,6 @@ declare namespace chrome {
5420
5335
  /**
5421
5336
  * Clears websites' service workers.
5422
5337
  *
5423
- * @param callback Resolves when websites' service workers have been cleared.
5424
5338
  * @since Chrome 72
5425
5339
  */
5426
5340
  export function removeServiceWorkers(
@@ -5442,8 +5356,6 @@ declare namespace chrome {
5442
5356
 
5443
5357
  /**
5444
5358
  * Clears websites' WebSQL data.
5445
- *
5446
- * @param callback Resolves when websites' WebSQL databases have been cleared.
5447
5359
  */
5448
5360
  export function removeWebSQL(
5449
5361
 
@@ -5777,7 +5689,6 @@ declare namespace chrome {
5777
5689
  * 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.
5778
5690
  *
5779
5691
  * @param details Contains the details about the requested dialog.
5780
- * @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).
5781
5692
  * @since Chrome 57
5782
5693
  */
5783
5694
  export function requestPin(
@@ -5805,7 +5716,6 @@ declare namespace chrome {
5805
5716
  * Stops the pin request started by the {@link requestPin} function.
5806
5717
  *
5807
5718
  * @param details Contains the details about the reason for stopping the request flow.
5808
- * @param callback Returns a Promise which resolves when the request to close the PIN dialog is complete.
5809
5719
  * @since Chrome 57
5810
5720
  */
5811
5721
  export function stopPinRequest(
@@ -5835,7 +5745,6 @@ declare namespace chrome {
5835
5745
  * 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.
5836
5746
  *
5837
5747
  * @param details The certificates to set. Invalid certificates will be ignored.
5838
- * @param callback Returns a Promise which resolves upon completion.
5839
5748
  * @since Chrome 86
5840
5749
  */
5841
5750
  export function setCertificates(
@@ -6035,8 +5944,6 @@ declare namespace chrome {
6035
5944
 
6036
5945
  /**
6037
5946
  * Returns all the registered extension commands for this extension and their shortcut (if active). Before Chrome 110, this command did not return `_execute_action`.
6038
- *
6039
- * @param callback Resolves with a list of the registered commands.
6040
5947
  */
6041
5948
  export function getAll(
6042
5949
 
@@ -6811,7 +6718,6 @@ declare namespace chrome {
6811
6718
  *
6812
6719
  * @param id The ID of the item to update.
6813
6720
  * @param updateProperties The properties to update. Accepts the same values as the {@link contextMenus.create} function.
6814
- * @param callback Resolves when the context menu has been updated.
6815
6721
  */
6816
6722
  export function update(
6817
6723
 
@@ -6878,7 +6784,6 @@ declare namespace chrome {
6878
6784
  * Removes a context menu item.
6879
6785
  *
6880
6786
  * @param menuItemId The ID of the context menu item to remove.
6881
- * @param callback Resolves when the context menu has been removed.
6882
6787
  */
6883
6788
  export function remove(
6884
6789
 
@@ -6896,8 +6801,6 @@ declare namespace chrome {
6896
6801
 
6897
6802
  /**
6898
6803
  * Removes all context menu items added by this extension.
6899
- *
6900
- * @param callback Resolves when removal is complete.
6901
6804
  */
6902
6805
  export function removeAll(
6903
6806
 
@@ -7691,7 +7594,6 @@ declare namespace chrome {
7691
7594
  *
7692
7595
  * @param target Debugging target to which you want to attach.
7693
7596
  * @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).
7694
- * @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.
7695
7597
  */
7696
7598
  export function attach(
7697
7599
 
@@ -7717,7 +7619,6 @@ declare namespace chrome {
7717
7619
  * Detaches debugger from the given target.
7718
7620
  *
7719
7621
  * @param target Debugging target from which you want to detach.
7720
- * @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.
7721
7622
  */
7722
7623
  export function detach(
7723
7624
 
@@ -7749,7 +7650,6 @@ declare namespace chrome {
7749
7650
  * @param target Debugging target to which you want to send the command.
7750
7651
  * @param method Method name. Should be one of the methods defined by the [remote debugging protocol](https://developer.chrome.com/devtools/docs/debugger-protocol).
7751
7652
  * @param commandParams JSON object with request parameters. This object must conform to the remote debugging params scheme for given method.
7752
- * @param callback Response body. If an error occurs while posting the message, the promise will be rejected.
7753
7653
  */
7754
7654
  export function sendCommand(
7755
7655
 
@@ -8816,8 +8716,6 @@ declare namespace chrome {
8816
8716
  * * These rules are persisted across browser sessions and across extension updates.
8817
8717
  * * Static rules specified as part of the extension package can not be removed using this function.
8818
8718
  * * {@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}.
8819
- *
8820
- * @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.
8821
8719
  */
8822
8720
  export function updateDynamicRules(
8823
8721
 
@@ -8847,7 +8745,6 @@ declare namespace chrome {
8847
8745
  * Returns the current set of dynamic rules for the extension. Callers can optionally filter the list of fetched rules by specifying a `filter`.
8848
8746
  *
8849
8747
  * @param filter An object to filter the list of fetched rules.
8850
- * @param callback Promise that resolves with the set of dynamic rules. The Promise may be rejected in case of transient internal errors.
8851
8748
  */
8852
8749
  export function getDynamicRules(
8853
8750
 
@@ -8883,7 +8780,6 @@ declare namespace chrome {
8883
8780
  * * These rules are not persisted across sessions and are backed in memory.
8884
8781
  * * {@link MAX_NUMBER_OF_SESSION_RULES} is the maximum number of session rules an extension can add.
8885
8782
  *
8886
- * @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.
8887
8783
  * @since Chrome 90
8888
8784
  */
8889
8785
  export function updateSessionRules(
@@ -8912,7 +8808,6 @@ declare namespace chrome {
8912
8808
  * Returns the current set of session scoped rules for the extension. Callers can optionally filter the list of fetched rules by specifying a `filter`.
8913
8809
  *
8914
8810
  * @param filter An object to filter the list of fetched rules.
8915
- * @param callback Promise that resolves with the set of session scoped rules.
8916
8811
  * @since Chrome 90
8917
8812
  */
8918
8813
  export function getSessionRules(
@@ -8944,8 +8839,6 @@ declare namespace chrome {
8944
8839
  /**
8945
8840
  * 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.
8946
8841
  * 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.
8947
- *
8948
- * @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.
8949
8842
  */
8950
8843
  export function updateEnabledRulesets(
8951
8844
 
@@ -8966,8 +8859,6 @@ declare namespace chrome {
8966
8859
 
8967
8860
  /**
8968
8861
  * Returns the ids for the current set of enabled static rulesets.
8969
- *
8970
- * @param callback Promise that resolves with a list of ids, where each id corresponds to an enabled static {@link Ruleset}.
8971
8862
  */
8972
8863
  export function getEnabledRulesets(
8973
8864
 
@@ -8989,7 +8880,6 @@ declare namespace chrome {
8989
8880
  /**
8990
8881
  * 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.
8991
8882
  *
8992
- * @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.
8993
8883
  * @since Chrome 111
8994
8884
  */
8995
8885
  export function updateStaticRules(
@@ -9014,7 +8904,6 @@ declare namespace chrome {
9014
8904
  * Returns the list of static rules in the given {@link Ruleset} that are currently disabled.
9015
8905
  *
9016
8906
  * @param options Specifies the ruleset to query.
9017
- * @param callback Promise that resolves with a list of ids that correspond to the disabled rules in that ruleset.
9018
8907
  * @since Chrome 111
9019
8908
  */
9020
8909
  export function getDisabledRuleIds(
@@ -9041,7 +8930,6 @@ declare namespace chrome {
9041
8930
  * 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.
9042
8931
  *
9043
8932
  * @param filter An object to filter the list of matched rules.
9044
- * @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.
9045
8933
  */
9046
8934
  export function getMatchedRules(
9047
8935
 
@@ -9094,7 +8982,6 @@ declare namespace chrome {
9094
8982
  * Checks if the given regular expression will be supported as a `regexFilter` rule condition.
9095
8983
  *
9096
8984
  * @param regexOptions The regular expression to check.
9097
- * @param callback Promise that resolves with details consisting of whether the regular expression is supported and the reason if not.
9098
8985
  * @since Chrome 87
9099
8986
  */
9100
8987
  export function isRegexSupported(
@@ -9139,7 +9026,6 @@ declare namespace chrome {
9139
9026
  /**
9140
9027
  * 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.
9141
9028
  *
9142
- * @param callback Promise that resolves with the details of matched rules.
9143
9029
  * @since Chrome 103
9144
9030
  */
9145
9031
  export function testMatchOutcome(
@@ -10596,7 +10482,6 @@ declare namespace chrome {
10596
10482
  * Resolves the given hostname or IP address literal.
10597
10483
  *
10598
10484
  * @param hostname The hostname to resolve.
10599
- * @param callback Promise that resolves when the resolution operation completes.
10600
10485
  */
10601
10486
  export function resolve(
10602
10487
 
@@ -11127,7 +11012,6 @@ declare namespace chrome {
11127
11012
  * 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.
11128
11013
  *
11129
11014
  * @param options An object containing scan parameters.
11130
- * @param callback Returns a Promise which resolves with the scan results.
11131
11015
  */
11132
11016
  export function scan(
11133
11017
 
@@ -11153,7 +11037,6 @@ declare namespace chrome {
11153
11037
  * 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.
11154
11038
  *
11155
11039
  * @param filter A {@link DeviceFilter} indicating which types of scanners should be returned.
11156
- * @param callback Returns a Promise which resolves with the result and list of scanners.
11157
11040
  * @since Chrome 125
11158
11041
  */
11159
11042
  export function getScannerList(
@@ -11180,7 +11063,6 @@ declare namespace chrome {
11180
11063
  * 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.
11181
11064
  *
11182
11065
  * @param scannerId The ID of a scanner to be opened. This value is one returned from a previous call to {@link getScannerList}.
11183
- * @param callback Returns a Promise which resolves with the result.
11184
11066
  * @since Chrome 125
11185
11067
  */
11186
11068
  export function openScanner(
@@ -11207,7 +11089,6 @@ declare namespace chrome {
11207
11089
  * 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.
11208
11090
  *
11209
11091
  * @param scannerHandle The handle of an open scanner returned from a call to {@link openScanner}.
11210
- * @param callback Returns a Promise which resolves with the result.
11211
11092
  * @since Chrome 125
11212
11093
  */
11213
11094
  export function getOptionGroups(
@@ -11234,7 +11115,6 @@ declare namespace chrome {
11234
11115
  * 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.
11235
11116
  *
11236
11117
  * @param scannerHandle Specifies the handle of an open scanner that was previously returned from a call to {@link openScanner}.
11237
- * @param callback Returns a Promise which resolves with the result.
11238
11118
  * @since Chrome 125
11239
11119
  */
11240
11120
  export function closeScanner(
@@ -11265,7 +11145,6 @@ declare namespace chrome {
11265
11145
  *
11266
11146
  * @param scannerHandle The handle of the scanner to set options on. This should be a value previously returned from a call to {@link openScanner}.
11267
11147
  * @param options A list of `OptionSetting` objects to be applied to the scanner.
11268
- * @param callback Returns a Promise which resolves with the result.
11269
11148
  * @since Chrome 125
11270
11149
  */
11271
11150
  export function setOptions(
@@ -11298,7 +11177,6 @@ declare namespace chrome {
11298
11177
  *
11299
11178
  * @param scannerHandle The handle of an open scanner. This should be a value previously returned from a call to {@link openScanner}.
11300
11179
  * @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`.
11301
- * @param callback Returns a Promise which resolves with the result.
11302
11180
  * @since Chrome 125
11303
11181
  */
11304
11182
  export function startScan(
@@ -11327,7 +11205,6 @@ declare namespace chrome {
11327
11205
  * 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.
11328
11206
  *
11329
11207
  * @param job The handle of an active scan job previously returned from a call to {@link startScan}.
11330
- * @param callback Returns a Promise which resolves with the result.
11331
11208
  * @since Chrome 125
11332
11209
  */
11333
11210
  export function cancelScan(
@@ -11362,7 +11239,6 @@ declare namespace chrome {
11362
11239
  * When the scan job completes, the response will have the result value of `EOF`. This response may contain a final non-zero `data` member.
11363
11240
  *
11364
11241
  * @param job Active job handle previously returned from {@link startScan}.
11365
- * @param callback Returns a Promise which resolves with the result.
11366
11242
  * @since Chrome 125
11367
11243
  */
11368
11244
  export function readScanData(
@@ -11930,7 +11806,6 @@ declare namespace chrome {
11930
11806
  * 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.
11931
11807
  *
11932
11808
  * @param options What to download and how.
11933
- * @param callback Returns a Promise which resolves with the id of the new {@link DownloadItem}.
11934
11809
  */
11935
11810
  export function download(
11936
11811
 
@@ -11978,7 +11853,6 @@ declare namespace chrome {
11978
11853
  * 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.
11979
11854
  *
11980
11855
  * @param downloadId The id of the download to pause.
11981
- * @param callback Returns a Promise which resolves when the pause request is completed.
11982
11856
  */
11983
11857
  export function pause(
11984
11858
 
@@ -12002,7 +11876,6 @@ declare namespace chrome {
12002
11876
  * 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.
12003
11877
  *
12004
11878
  * @param downloadId The id of the download to resume.
12005
- * @param callback Returns a Promise which resolves when the resume request is completed.
12006
11879
  */
12007
11880
  export function resume(
12008
11881
 
@@ -12026,7 +11899,6 @@ declare namespace chrome {
12026
11899
  * Cancel a download. When `callback` is run, the download is cancelled, completed, interrupted or doesn't exist anymore.
12027
11900
  *
12028
11901
  * @param downloadId The id of the download to cancel.
12029
- * @param callback Returns a Promise which resolves when the cancel request is completed.
12030
11902
  */
12031
11903
  export function cancel(
12032
11904
 
@@ -12052,7 +11924,6 @@ declare namespace chrome {
12052
11924
  * 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.
12053
11925
  *
12054
11926
  * @param downloadId The identifier for the download.
12055
- * @param callback Returns a Promise which resolves with a URL to an image that represents the download.
12056
11927
  */
12057
11928
  export function getFileIcon(
12058
11929
 
@@ -12163,7 +12034,6 @@ declare namespace chrome {
12163
12034
  * 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.
12164
12035
  *
12165
12036
  * @param downloadId The identifier for the {@link DownloadItem}.
12166
- * @param callback Returns a Promise which resolves when the danger prompt dialog closes.
12167
12037
  */
12168
12038
  export function acceptDanger(
12169
12039
 
@@ -12198,7 +12068,6 @@ declare namespace chrome {
12198
12068
  * 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.
12199
12069
  *
12200
12070
  * @param options Encapsulate a change to the download UI.
12201
- * @param callback Returns a Promise which resolves when the UI update is completed.
12202
12071
  * @since Chrome 105
12203
12072
  */
12204
12073
  export function setUiOptions(
@@ -12228,8 +12097,6 @@ declare namespace chrome {
12228
12097
 
12229
12098
  /**
12230
12099
  * 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.
12231
- *
12232
- * @param callback Returns a Promise which resolves with the device identifier of the directory API.
12233
12100
  */
12234
12101
  export function getDirectoryDeviceId(
12235
12102
 
@@ -12249,7 +12116,6 @@ declare namespace chrome {
12249
12116
  /**
12250
12117
  * 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.
12251
12118
  *
12252
- * @param callback Returns a Promise which resolves with the serial number of the device.
12253
12119
  * @since Chrome 66
12254
12120
  */
12255
12121
  export function getDeviceSerialNumber(
@@ -12270,7 +12136,6 @@ declare namespace chrome {
12270
12136
  /**
12271
12137
  * 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.
12272
12138
  *
12273
- * @param callback Returns a Promise which resolves with the Asset ID of the device.
12274
12139
  * @since Chrome 66
12275
12140
  */
12276
12141
  export function getDeviceAssetId(
@@ -12291,7 +12156,6 @@ declare namespace chrome {
12291
12156
  /**
12292
12157
  * 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.
12293
12158
  *
12294
- * @param callback Returns a Promise which resolves with the Annotated Location of the device.
12295
12159
  * @since Chrome 66
12296
12160
  */
12297
12161
  export function getDeviceAnnotatedLocation(
@@ -12312,7 +12176,6 @@ declare namespace chrome {
12312
12176
  /**
12313
12177
  * 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.
12314
12178
  *
12315
- * @param callback Returns a Promise which resolves with the hostname of the device.
12316
12179
  * @since Chrome 82
12317
12180
  */
12318
12181
  export function getDeviceHostname(
@@ -12348,8 +12211,6 @@ declare namespace chrome {
12348
12211
 
12349
12212
  /**
12350
12213
  * Obtains the manufacturer and model for the hardware platform and, if the extension is authorized, returns it via `callback`.
12351
- *
12352
- * @param callback Returns a Promise which resolves with the hardware platform info.
12353
12214
  */
12354
12215
  export function getHardwarePlatformInfo(
12355
12216
 
@@ -12391,7 +12252,6 @@ declare namespace chrome {
12391
12252
  * 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.
12392
12253
  *
12393
12254
  * @param options Object containing the fields defined in {@link SetCurrentInputMethodOptions}.
12394
- * @param callback Returns a Promise which resolves when the input method is changed, or rejects if there is an error.
12395
12255
  */
12396
12256
  export function setCurrentInputMethod(
12397
12257
 
@@ -12462,8 +12322,6 @@ declare namespace chrome {
12462
12322
 
12463
12323
  /**
12464
12324
  * 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.
12465
- *
12466
- * @param callback Returns a Promise which resolves with the device's default network's {@link NetworkDetails}.
12467
12325
  */
12468
12326
  export function getNetworkDetails(
12469
12327
 
@@ -12567,8 +12425,6 @@ declare namespace chrome {
12567
12425
 
12568
12426
  /**
12569
12427
  * 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).
12570
- *
12571
- * @param callback Invoked by `getTokens` with the list of available Tokens.
12572
12428
  */
12573
12429
  export function getTokens(
12574
12430
 
@@ -12595,7 +12451,6 @@ declare namespace chrome {
12595
12451
  * 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.
12596
12452
  *
12597
12453
  * @param tokenId The id of a Token returned by `getTokens`.
12598
- * @param callback Returns a Promise which resolves with the list of the available certificates.
12599
12454
  */
12600
12455
  export function getCertificates(
12601
12456
 
@@ -12628,7 +12483,6 @@ declare namespace chrome {
12628
12483
  *
12629
12484
  * @param tokenId The id of a Token returned by `getTokens`.
12630
12485
  * @param certificate The DER encoding of a X.509 certificate.
12631
- * @param callback Returns a Promise which resolves when this operation is finished.
12632
12486
  */
12633
12487
  export function importCertificate(
12634
12488
 
@@ -12658,7 +12512,6 @@ declare namespace chrome {
12658
12512
  *
12659
12513
  * @param tokenId The id of a Token returned by `getTokens`.
12660
12514
  * @param certificate The DER encoding of a X.509 certificate.
12661
- * @param callback Returns a Promise which resolves when this operation is finished.
12662
12515
  */
12663
12516
  export function removeCertificate(
12664
12517
 
@@ -12693,7 +12546,6 @@ declare namespace chrome {
12693
12546
  * 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.
12694
12547
  *
12695
12548
  * @param options Object containing the fields defined in {@link ChallengeKeyOptions}.
12696
- * @param callback Returns a Promise which resolves with the challenge response.
12697
12549
  * @since Chrome 110
12698
12550
  */
12699
12551
  export function challengeKey(
@@ -12733,7 +12585,6 @@ declare namespace chrome {
12733
12585
  *
12734
12586
  * @param challenge A challenge as emitted by the Verified Access Web API.
12735
12587
  * @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.
12736
- * @param callback Returns a Promise which resolves with the challenge response.
12737
12588
  * @deprecated Use {@link challengeKey} instead.
12738
12589
  * @since Chrome 50
12739
12590
  * @chrome-deprecated-since Chrome 110
@@ -12777,7 +12628,6 @@ declare namespace chrome {
12777
12628
  *
12778
12629
  * @param challenge A challenge as emitted by the Verified Access Web API.
12779
12630
  * @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.
12780
- * @param callback Returns a Promise which resolves with the challenge response.
12781
12631
  * @deprecated Use {@link challengeKey} instead.
12782
12632
  * @since Chrome 50
12783
12633
  * @chrome-deprecated-since Chrome 110
@@ -15109,8 +14959,6 @@ declare namespace chrome {
15109
14959
  * Depending on the type of the file system being mounted, the `source` option must be set appropriately.
15110
14960
  *
15111
14961
  * In case of an error, {@link runtime.lastError} will be set with a corresponding error code.
15112
- *
15113
- * @param callback A generic result callback to indicate success or failure.
15114
14962
  */
15115
14963
  export function mount(
15116
14964
 
@@ -15135,8 +14983,6 @@ declare namespace chrome {
15135
14983
  * 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).
15136
14984
  *
15137
14985
  * In case of an error, {@link runtime.lastError} will be set with a corresponding error code.
15138
- *
15139
- * @param callback A generic result callback to indicate success or failure.
15140
14986
  */
15141
14987
  export function unmount(
15142
14988
 
@@ -15154,8 +15000,6 @@ declare namespace chrome {
15154
15000
 
15155
15001
  /**
15156
15002
  * Returns all file systems mounted by the extension.
15157
- *
15158
- * @param callback Callback to receive the result of {@link getAll} function.
15159
15003
  */
15160
15004
  export function getAll(
15161
15005
 
@@ -15176,8 +15020,6 @@ declare namespace chrome {
15176
15020
 
15177
15021
  /**
15178
15022
  * Returns information about a file system with the passed `fileSystemId`.
15179
- *
15180
- * @param callback Callback to receive the result of {@link get} function.
15181
15023
  */
15182
15024
  export function get(
15183
15025
 
@@ -15222,7 +15064,6 @@ declare namespace chrome {
15222
15064
  *
15223
15065
  * In case of an error, {@link runtime.lastError} will be set will a corresponding error code.
15224
15066
  *
15225
- * @param callback A generic result callback to indicate success or failure.
15226
15067
  * @since Chrome 45
15227
15068
  */
15228
15069
  export function notify(
@@ -15919,7 +15760,6 @@ declare namespace chrome {
15919
15760
  * 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.
15920
15761
  *
15921
15762
  * @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.
15922
- * @param callback Resolves when registration completes.
15923
15763
  */
15924
15764
  export function register(
15925
15765
 
@@ -15942,8 +15782,6 @@ declare namespace chrome {
15942
15782
 
15943
15783
  /**
15944
15784
  * Unregisters the application from FCM.
15945
- *
15946
- * @param callback Resolves after the unregistration completes. Unregistration was successful if the promise does not reject.
15947
15785
  */
15948
15786
  export function unregister(
15949
15787
 
@@ -15986,7 +15824,6 @@ declare namespace chrome {
15986
15824
  * Sends a message according to its contents.
15987
15825
  *
15988
15826
  * @param message A message to send to the other party via FCM.
15989
- * @param callback Resolves after the message is successfully queued for sending. If an error occurs, the promise will be rejected.
15990
15827
  */
15991
15828
  export function send(
15992
15829
 
@@ -17018,7 +16855,6 @@ declare namespace chrome {
17018
16855
  * 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.
17019
16856
  *
17020
16857
  * @param details Token options.
17021
- * @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.
17022
16858
  */
17023
16859
  export function getAuthToken(
17024
16860
 
@@ -17058,7 +16894,6 @@ declare namespace chrome {
17058
16894
  * 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.
17059
16895
  *
17060
16896
  * @param details Profile options.
17061
- * @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.
17062
16897
  */
17063
16898
  export function getProfileUserInfo(
17064
16899
 
@@ -17091,7 +16926,6 @@ declare namespace chrome {
17091
16926
  * 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`.
17092
16927
  *
17093
16928
  * @param details Token information.
17094
- * @param callback Returns a Promise which resolves when the token has been removed from the cache.
17095
16929
  */
17096
16930
  export function removeCachedAuthToken(
17097
16931
 
@@ -17119,7 +16953,6 @@ declare namespace chrome {
17119
16953
  * * Removes user's account preferences
17120
16954
  * * De-authorizes the user from all auth flows
17121
16955
  *
17122
- * @param callback Returns a Promise which resolves when the state has been cleared.
17123
16956
  * @since Chrome 87
17124
16957
  */
17125
16958
  export function clearAllCachedAuthTokens(
@@ -17150,7 +16983,6 @@ declare namespace chrome {
17150
16983
  * 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.
17151
16984
  *
17152
16985
  * @param details WebAuth flow options.
17153
- * @param callback Returns a Promise which resolves with the URL redirected back to your application.
17154
16986
  */
17155
16987
  export function launchWebAuthFlow(
17156
16988
 
@@ -17708,8 +17540,6 @@ declare namespace chrome {
17708
17540
 
17709
17541
  /**
17710
17542
  * Set the current composition. If this extension does not own the active IME, this fails.
17711
- *
17712
- * @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.
17713
17543
  */
17714
17544
  export function setComposition(
17715
17545
 
@@ -17785,8 +17615,6 @@ declare namespace chrome {
17785
17615
 
17786
17616
  /**
17787
17617
  * Clear the current composition. If this extension does not own the active IME, this fails.
17788
- *
17789
- * @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.
17790
17618
  */
17791
17619
  export function clearComposition(
17792
17620
 
@@ -17826,8 +17654,6 @@ declare namespace chrome {
17826
17654
 
17827
17655
  /**
17828
17656
  * Commits the provided text to the current input.
17829
- *
17830
- * @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.
17831
17657
  */
17832
17658
  export function commitText(
17833
17659
 
@@ -17872,8 +17698,6 @@ declare namespace chrome {
17872
17698
 
17873
17699
  /**
17874
17700
  * 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.
17875
- *
17876
- * @param callback Resolves when the operation completes.
17877
17701
  */
17878
17702
  export function sendKeyEvents(
17879
17703
 
@@ -17968,8 +17792,6 @@ declare namespace chrome {
17968
17792
 
17969
17793
  /**
17970
17794
  * Sets the properties of the candidate window. This fails if the extension doesn't own the active IME
17971
- *
17972
- * @param callback Resolves when the operation completes.
17973
17795
  */
17974
17796
  export function setCandidateWindowProperties(
17975
17797
 
@@ -18103,8 +17925,6 @@ declare namespace chrome {
18103
17925
 
18104
17926
  /**
18105
17927
  * Sets the current candidate list. This fails if this extension doesn't own the active IME
18106
- *
18107
- * @param callback Resolves when the operation completes.
18108
17928
  */
18109
17929
  export function setCandidates(
18110
17930
 
@@ -18191,8 +18011,6 @@ declare namespace chrome {
18191
18011
 
18192
18012
  /**
18193
18013
  * Set the position of the cursor in the candidate window. This is a no-op if this extension does not own the active IME.
18194
- *
18195
- * @param callback Resolves when the operation completes
18196
18014
  */
18197
18015
  export function setCursorPosition(
18198
18016
 
@@ -18239,7 +18057,6 @@ declare namespace chrome {
18239
18057
  /**
18240
18058
  * Shows/Hides an assistive window with the given properties.
18241
18059
  *
18242
- * @param callback Resolves when the operation completes.
18243
18060
  * @since Chrome 85
18244
18061
  */
18245
18062
  export function setAssistiveWindowProperties(
@@ -18302,7 +18119,6 @@ declare namespace chrome {
18302
18119
  /**
18303
18120
  * Highlights/Unhighlights a button in an assistive window.
18304
18121
  *
18305
- * @param callback Resolves when the operation completes. On failure, the promise will be rejected.
18306
18122
  * @since Chrome 86
18307
18123
  */
18308
18124
  export function setAssistiveWindowButtonHighlighted(
@@ -18370,8 +18186,6 @@ declare namespace chrome {
18370
18186
 
18371
18187
  /**
18372
18188
  * Updates the state of the MenuItems specified
18373
- *
18374
- * @param callback Resolves when the operation completes
18375
18189
  */
18376
18190
  export function updateMenuItems(
18377
18191
 
@@ -18413,8 +18227,6 @@ declare namespace chrome {
18413
18227
 
18414
18228
  /**
18415
18229
  * Deletes the text around the caret.
18416
- *
18417
- * @param callback Resolves when the operation completes.
18418
18230
  */
18419
18231
  export function deleteSurroundingText(
18420
18232
 
@@ -18480,8 +18292,6 @@ declare namespace chrome {
18480
18292
 
18481
18293
  /**
18482
18294
  * 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.
18483
- *
18484
- * @param callback Resolves when the retrieval completes.
18485
18295
  */
18486
18296
  export function getID(
18487
18297
 
@@ -18502,8 +18312,6 @@ declare namespace chrome {
18502
18312
 
18503
18313
  /**
18504
18314
  * Retrieves the time when the InstanceID has been generated. The creation time will be returned by the `callback`.
18505
- *
18506
- * @param callback Resolves when the retrieval completes.
18507
18315
  */
18508
18316
  export function getCreationTime(
18509
18317
 
@@ -18554,7 +18362,6 @@ declare namespace chrome {
18554
18362
  * Return a token that allows the authorized entity to access the service defined by scope.
18555
18363
  *
18556
18364
  * @param getTokenParams Parameters for getToken.
18557
- * @param callback Resolves when the retrieval completes.
18558
18365
  */
18559
18366
  export function getToken(
18560
18367
 
@@ -18622,7 +18429,6 @@ declare namespace chrome {
18622
18429
  * Revokes a granted token.
18623
18430
  *
18624
18431
  * @param deleteTokenParams Parameters for deleteToken.
18625
- * @param callback Resolves when the token deletion completes. The token was revoked successfully if the promise does not reject.
18626
18432
  */
18627
18433
  export function deleteToken(
18628
18434
 
@@ -18655,8 +18461,6 @@ declare namespace chrome {
18655
18461
 
18656
18462
  /**
18657
18463
  * Resets the app instance identifier and revokes all tokens associated with it.
18658
- *
18659
- * @param callback Resolves when the deletion completes. The instance identifier was revoked successfully if the promise does not reject.
18660
18464
  */
18661
18465
  export function deleteID(
18662
18466
 
@@ -19465,7 +19269,6 @@ declare namespace chrome {
19465
19269
  /**
19466
19270
  * Immediately issues a multicast DNS query for all service types. `callback` is invoked immediately. At a later time, queries will be sent, and any service events will be fired.
19467
19271
  *
19468
- * @param callback Callback invoked after ForceDiscovery() has started.
19469
19272
  * @since Chrome 45
19470
19273
  */
19471
19274
  export function forceDiscovery(
@@ -21434,7 +21237,6 @@ declare namespace chrome {
21434
21237
  * Gets all the properties of the network with id networkGuid. Includes all properties of the network (read-only and read/write values).
21435
21238
  *
21436
21239
  * @param networkGuid The GUID of the network to get properties for.
21437
- * @param callback Called with the network properties when received.
21438
21240
  */
21439
21241
  export function getProperties(
21440
21242
 
@@ -21460,7 +21262,6 @@ declare namespace chrome {
21460
21262
  * Gets the merged properties of the network with id networkGuid from the sources: User settings, shared settings, user policy, device policy and the currently active settings.
21461
21263
  *
21462
21264
  * @param networkGuid The GUID of the network to get properties for.
21463
- * @param callback Called with the managed network properties when received.
21464
21265
  */
21465
21266
  export function getManagedProperties(
21466
21267
 
@@ -21486,7 +21287,6 @@ declare namespace chrome {
21486
21287
  * Gets the cached read-only properties of the network with id networkGuid. This is meant to be a higher performance function than {@link getProperties}, which requires a round trip to query the networking subsystem. The following properties are returned for all networks: GUID, Type, Name, WiFi.Security. Additional properties are provided for visible networks: ConnectionState, ErrorState, WiFi.SignalStrength, Cellular.NetworkTechnology, Cellular.ActivationState, Cellular.RoamingState.
21487
21288
  *
21488
21289
  * @param networkGuid The GUID of the network to get properties for.
21489
- * @param callback Called immediately with the network state properties.
21490
21290
  */
21491
21291
  export function getState(
21492
21292
 
@@ -21516,7 +21316,6 @@ declare namespace chrome {
21516
21316
  *
21517
21317
  * @param networkGuid The GUID of the network to set properties for.
21518
21318
  * @param properties The properties to set.
21519
- * @param callback Called when the operation has completed.
21520
21319
  */
21521
21320
  export function setProperties(
21522
21321
 
@@ -21554,7 +21353,6 @@ declare namespace chrome {
21554
21353
 
21555
21354
  **This option is exposed only to Chrome's Web UI.** When called by apps, `false` is the only allowed value.
21556
21355
  * @param properties The properties to configure the new network with.
21557
- * @param callback Called with the GUID for the new network configuration once the network has been created.
21558
21356
  */
21559
21357
  export function createNetwork(
21560
21358
 
@@ -21586,7 +21384,6 @@ declare namespace chrome {
21586
21384
  * **In kiosk sessions, this method will not be able to forget shared network configurations.**
21587
21385
  *
21588
21386
  * @param networkGuid The GUID of the network to forget.
21589
- * @param callback Called when the operation has completed.
21590
21387
  */
21591
21388
  export function forgetNetwork(
21592
21389
 
@@ -21610,7 +21407,6 @@ declare namespace chrome {
21610
21407
  * Returns a list of network objects with the same properties provided by {@link getState}. A filter is provided to specify the type of networks returned and to limit the number of networks. Networks are ordered by the system based on their priority, with connected or connecting networks listed first.
21611
21408
  *
21612
21409
  * @param filter Describes which networks to return.
21613
- * @param callback Called with a dictionary of networks and their state properties when received.
21614
21410
  */
21615
21411
  export function getNetworks(
21616
21412
 
@@ -21630,8 +21426,6 @@ declare namespace chrome {
21630
21426
 
21631
21427
  /**
21632
21428
  * Returns states of available networking devices.
21633
- *
21634
- * @param callback Called with a list of devices and their state.
21635
21429
  */
21636
21430
  export function getDeviceStates(
21637
21431
 
@@ -21688,7 +21482,6 @@ declare namespace chrome {
21688
21482
  * Starts a connection to the network with networkGuid.
21689
21483
  *
21690
21484
  * @param networkGuid The GUID of the network to connect to.
21691
- * @param callback Called when the connect request has been sent. Note: the connection may not have completed. Observe {@link onNetworksChanged} to be notified when a network state changes. If the connect request immediately failed (e.g. the network is unconfigured), {@link runtime.lastError} will be set with a failure reason.
21692
21485
  */
21693
21486
  export function startConnect(
21694
21487
 
@@ -21712,7 +21505,6 @@ declare namespace chrome {
21712
21505
  * Starts a disconnect from the network with networkGuid.
21713
21506
  *
21714
21507
  * @param networkGuid The GUID of the network to disconnect from.
21715
- * @param callback Called when the disconnect request has been sent. See note for {@link startConnect}.
21716
21508
  */
21717
21509
  export function startDisconnect(
21718
21510
 
@@ -21736,7 +21528,6 @@ declare namespace chrome {
21736
21528
  * Returns captive portal status for the network matching 'networkGuid'.
21737
21529
  *
21738
21530
  * @param networkGuid The GUID of the network to get captive portal status for.
21739
- * @param callback A callback function that returns the results of the query for network captive portal status.
21740
21531
  */
21741
21532
  export function getCaptivePortalStatus(
21742
21533
 
@@ -21988,7 +21779,6 @@ declare namespace chrome {
21988
21779
 
21989
21780
  The `notificationId` parameter is required before Chrome 42.
21990
21781
  * @param options Contents of the notification.
21991
- * @param callback Returns a Promise which resolves with the notification id (either supplied or generated) that represents the created notification.
21992
21782
  */
21993
21783
  export function create(
21994
21784
 
@@ -22005,7 +21795,6 @@ declare namespace chrome {
22005
21795
  * Creates and displays a notification.
22006
21796
  *
22007
21797
  * @param options Contents of the notification.
22008
- * @param callback Returns a Promise which resolves with the notification id (either supplied or generated) that represents the created notification.
22009
21798
  */
22010
21799
  export function create(
22011
21800
 
@@ -22035,7 +21824,6 @@ declare namespace chrome {
22035
21824
  *
22036
21825
  * @param notificationId The id of the notification to be updated. This is returned by {@link notifications.create} method.
22037
21826
  * @param options Contents of the notification to update to.
22038
- * @param callback Returns a Promise which resolves to indicate whether a matching notification existed.
22039
21827
  */
22040
21828
  export function update(
22041
21829
 
@@ -22063,7 +21851,6 @@ declare namespace chrome {
22063
21851
  * Clears the specified notification.
22064
21852
  *
22065
21853
  * @param notificationId The id of the notification to be cleared. This is returned by {@link notifications.create} method.
22066
- * @param callback Returns a Promise which resolves to indicate whether a matching notification existed.
22067
21854
  */
22068
21855
  export function clear(
22069
21856
 
@@ -22083,8 +21870,6 @@ declare namespace chrome {
22083
21870
 
22084
21871
  /**
22085
21872
  * Retrieves all the notifications of this app or extension.
22086
- *
22087
- * @param callback Returns a Promise which resolves with the set of notification\_ids currently in the system.
22088
21873
  */
22089
21874
  export function getAll(
22090
21875
 
@@ -22102,8 +21887,6 @@ declare namespace chrome {
22102
21887
 
22103
21888
  /**
22104
21889
  * Retrieves whether the user has enabled notifications from this app or extension.
22105
- *
22106
- * @param callback Returns a Promise which resolves with the current permission level.
22107
21890
  */
22108
21891
  export function getPermissionLevel(
22109
21892
 
@@ -22194,7 +21977,6 @@ declare namespace chrome {
22194
21977
  * Creates a new offscreen document for the extension.
22195
21978
  *
22196
21979
  * @param parameters The parameters describing the offscreen document to create.
22197
- * @param callback Promise that resolves when the offscreen document is created and has completed its initial page load.
22198
21980
  */
22199
21981
  export function createDocument(
22200
21982
 
@@ -22210,8 +21992,6 @@ declare namespace chrome {
22210
21992
 
22211
21993
  /**
22212
21994
  * Closes the currently-open offscreen document for the extension.
22213
- *
22214
- * @param callback Promise that resolves when the offscreen document has been closed.
22215
21995
  */
22216
21996
  export function closeDocument(
22217
21997
 
@@ -22646,8 +22426,6 @@ declare namespace chrome {
22646
22426
 
22647
22427
  /**
22648
22428
  * Saves the content of the tab with given id as MHTML.
22649
- *
22650
- * @param callback Resolves when the MHTML has been generated.
22651
22429
  */
22652
22430
  export function saveAsMHTML(
22653
22431
 
@@ -24035,7 +23813,6 @@ declare namespace chrome {
24035
23813
  * Returns the ID of the renderer process for the specified tab.
24036
23814
  *
24037
23815
  * @param tabId The ID of the tab for which the renderer process ID is to be returned.
24038
- * @param callback A callback to return the ID of the renderer process of a tab.
24039
23816
  */
24040
23817
  export function getProcessIdForTab(
24041
23818
 
@@ -24063,7 +23840,6 @@ declare namespace chrome {
24063
23840
  * Terminates the specified renderer process. Equivalent to visiting about:crash, but without changing the tab's URL.
24064
23841
  *
24065
23842
  * @param processId The ID of the process to be terminated.
24066
- * @param callback A callback to report the status of the termination.
24067
23843
  */
24068
23844
  export function terminate(
24069
23845
 
@@ -24095,7 +23871,6 @@ declare namespace chrome {
24095
23871
  *
24096
23872
  * @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.
24097
23873
  * @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.
24098
- * @param callback A callback called when the processes information is collected.
24099
23874
  */
24100
23875
  export function getProcessInfo(
24101
23876
 
@@ -24421,7 +24196,6 @@ declare namespace chrome {
24421
24196
  * Adds an entry to the reading list if it does not exist.
24422
24197
  *
24423
24198
  * @param entry The entry to add to the reading list.
24424
- * @param callback Resolves once the entry has been added.
24425
24199
  */
24426
24200
  export function addEntry(
24427
24201
 
@@ -24444,7 +24218,6 @@ declare namespace chrome {
24444
24218
  * Removes an entry from the reading list if it exists.
24445
24219
  *
24446
24220
  * @param info The entry to remove from the reading list.
24447
- * @param callback Resolves once the entry has been removed.
24448
24221
  */
24449
24222
  export function removeEntry(
24450
24223
 
@@ -24467,7 +24240,6 @@ declare namespace chrome {
24467
24240
  * Updates a reading list entry if it exists.
24468
24241
  *
24469
24242
  * @param info The entry to update.
24470
- * @param callback Resolves once the matched entries have been updated.
24471
24243
  */
24472
24244
  export function updateEntry(
24473
24245
 
@@ -24490,7 +24262,6 @@ declare namespace chrome {
24490
24262
  * Retrieves all entries that match the `QueryInfo` properties. Properties that are not provided will not be matched.
24491
24263
  *
24492
24264
  * @param info The properties to search for.
24493
- * @param callback Resolves once the entries have been matched.
24494
24265
  */
24495
24266
  export function query(
24496
24267
 
@@ -25044,6 +24815,7 @@ declare namespace chrome {
25044
24815
  *
25045
24816
  * @chrome-returns-extra since Chrome 99
25046
24817
  * @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.
24818
+ * @returns Promise that resolves when the uninstall URL is set. If the given URL is invalid, the promise will be rejected.
25047
24819
  */
25048
24820
  export function setUninstallURL(
25049
24821
 
@@ -25054,7 +24826,6 @@ declare namespace chrome {
25054
24826
  * 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.
25055
24827
  *
25056
24828
  * @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.
25057
- * @param callback Called when the uninstall URL is set. If the given URL is invalid, {@link runtime.lastError} will be set.
25058
24829
  */
25059
24830
  export function setUninstallURL(
25060
24831
 
@@ -25138,6 +24909,7 @@ declare namespace chrome {
25138
24909
  *
25139
24910
  * @chrome-returns-extra since Chrome 99
25140
24911
  * @param seconds Time to wait in seconds before rebooting the device, or -1 to cancel a scheduled reboot.
24912
+ * @returns Promise that resolves when a restart request was successfully rescheduled.
25141
24913
  * @since Chrome 53
25142
24914
  */
25143
24915
  export function restartAfterDelay(
@@ -25149,7 +24921,6 @@ declare namespace chrome {
25149
24921
  * 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.
25150
24922
  *
25151
24923
  * @param seconds Time to wait in seconds before rebooting the device, or -1 to cancel a scheduled reboot.
25152
- * @param callback A callback to be invoked when a restart request was successfully rescheduled.
25153
24924
  * @since Chrome 53
25154
24925
  */
25155
24926
  export function restartAfterDelay(
@@ -25201,6 +24972,7 @@ declare namespace chrome {
25201
24972
  * @chrome-returns-extra since Chrome 99
25202
24973
  * @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).
25203
24974
  * @param message The message to send. This message should be a JSON-ifiable object.
24975
+ * @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.
25204
24976
  */
25205
24977
  export function sendMessage(
25206
24978
 
@@ -25222,6 +24994,7 @@ declare namespace chrome {
25222
24994
  *
25223
24995
  * @chrome-returns-extra since Chrome 99
25224
24996
  * @param message The message to send. This message should be a JSON-ifiable object.
24997
+ * @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.
25225
24998
  */
25226
24999
  export function sendMessage(
25227
25000
 
@@ -25241,7 +25014,6 @@ declare namespace chrome {
25241
25014
  *
25242
25015
  * @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).
25243
25016
  * @param message The message to send. This message should be a JSON-ifiable object.
25244
- * @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.
25245
25017
  */
25246
25018
  export function sendMessage(
25247
25019
 
@@ -25270,7 +25042,6 @@ declare namespace chrome {
25270
25042
  * 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}.
25271
25043
  *
25272
25044
  * @param message The message to send. This message should be a JSON-ifiable object.
25273
- * @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.
25274
25045
  */
25275
25046
  export function sendMessage(
25276
25047
 
@@ -25334,13 +25105,12 @@ declare namespace chrome {
25334
25105
  * Returns information about the current platform.
25335
25106
  *
25336
25107
  * @chrome-returns-extra since Chrome 99
25108
+ * @returns Promise that resolves with information about the current platform.
25337
25109
  */
25338
25110
  export function getPlatformInfo(): Promise<PlatformInfo>;
25339
25111
 
25340
25112
  /**
25341
25113
  * Returns information about the current platform.
25342
- *
25343
- * @param callback Called with results
25344
25114
  */
25345
25115
  export function getPlatformInfo(
25346
25116
 
@@ -25373,6 +25143,7 @@ declare namespace chrome {
25373
25143
  * Fetches information about active contexts associated with this extension
25374
25144
  *
25375
25145
  * @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.
25146
+ * @returns Promise that resolves with the matching contexts, if any.
25376
25147
  * @since Chrome 116
25377
25148
  * @chrome-min-manifest MV3
25378
25149
  */
@@ -25385,7 +25156,6 @@ declare namespace chrome {
25385
25156
  * Fetches information about active contexts associated with this extension
25386
25157
  *
25387
25158
  * @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.
25388
- * @param callback Invoked with the matching contexts, if any.
25389
25159
  * @since Chrome 116
25390
25160
  * @chrome-min-manifest MV3
25391
25161
  */
@@ -25622,7 +25392,6 @@ declare namespace chrome {
25622
25392
  * 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.
25623
25393
  *
25624
25394
  * @param injection The details of the script which to inject.
25625
- * @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.
25626
25395
  */
25627
25396
  export function executeScript(
25628
25397
 
@@ -25648,7 +25417,6 @@ declare namespace chrome {
25648
25417
  * Inserts a CSS stylesheet into a target context. If multiple frames are specified, unsuccessful injections are ignored.
25649
25418
  *
25650
25419
  * @param injection The details of the styles to insert.
25651
- * @param callback Returns a Promise which resolves upon completion of the insertion.
25652
25420
  */
25653
25421
  export function insertCSS(
25654
25422
 
@@ -25672,7 +25440,6 @@ declare namespace chrome {
25672
25440
  * Removes a CSS stylesheet that was previously inserted by this extension from a target context.
25673
25441
  *
25674
25442
  * @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.
25675
- * @param callback Returns a Promise which resolves upon the completion of the removal.
25676
25443
  * @since Chrome 90
25677
25444
  */
25678
25445
  export function removeCSS(
@@ -25697,7 +25464,6 @@ declare namespace chrome {
25697
25464
  * Registers one or more content scripts for this extension.
25698
25465
  *
25699
25466
  * @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.
25700
- * @param callback Returns a Promise which resolves once scripts have been fully registered or rejects if an error has occurred.
25701
25467
  * @since Chrome 96
25702
25468
  */
25703
25469
  export function registerContentScripts(
@@ -25748,7 +25514,6 @@ declare namespace chrome {
25748
25514
  * Unregisters content scripts for this extension.
25749
25515
  *
25750
25516
  * @param filter If specified, only unregisters dynamic content scripts which match the filter. Otherwise, all of the extension's dynamic content scripts are unregistered.
25751
- * @param callback Returns a Promise which resolves once scripts have been unregistered or rejects if an error has occurred.
25752
25517
  * @since Chrome 96
25753
25518
  */
25754
25519
  export function unregisterContentScripts(
@@ -25773,7 +25538,6 @@ declare namespace chrome {
25773
25538
  * Updates one or more content scripts for this extension.
25774
25539
  *
25775
25540
  * @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.
25776
- * @param callback Returns a Promise which resolves once scripts have been updated or rejects if an error has occurred.
25777
25541
  * @since Chrome 96
25778
25542
  */
25779
25543
  export function updateContentScripts(
@@ -26114,8 +25878,6 @@ declare namespace chrome {
26114
25878
 
26115
25879
  /**
26116
25880
  * Returns information about available serial devices on the system. The list is regenerated each time this method is called.
26117
- *
26118
- * @param callback Called with the list of `DeviceInfo` objects.
26119
25881
  */
26120
25882
  export function getDevices(
26121
25883
 
@@ -26143,7 +25905,6 @@ declare namespace chrome {
26143
25905
  *
26144
25906
  * @param path The system path of the serial port to open.
26145
25907
  * @param options Port configuration options.
26146
- * @param callback Called when the connection has been opened.
26147
25908
  */
26148
25909
  export function connect(
26149
25910
 
@@ -26175,7 +25936,6 @@ declare namespace chrome {
26175
25936
  *
26176
25937
  * @param connectionId The id of the opened connection.
26177
25938
  * @param options Port configuration options.
26178
- * @param callback Called when the configuation has completed.
26179
25939
  */
26180
25940
  export function update(
26181
25941
 
@@ -26203,7 +25963,6 @@ declare namespace chrome {
26203
25963
  * Disconnects from a serial port.
26204
25964
  *
26205
25965
  * @param connectionId The id of the opened connection.
26206
- * @param callback Called when the connection has been closed.
26207
25966
  */
26208
25967
  export function disconnect(
26209
25968
 
@@ -26233,7 +25992,6 @@ declare namespace chrome {
26233
25992
  *
26234
25993
  * @param connectionId The id of the opened connection.
26235
25994
  * @param paused Flag to indicate whether to pause or unpause.
26236
- * @param callback Called when the connection has been successfully paused or unpaused.
26237
25995
  */
26238
25996
  export function setPaused(
26239
25997
 
@@ -26259,7 +26017,6 @@ declare namespace chrome {
26259
26017
  * Retrieves the state of a given connection.
26260
26018
  *
26261
26019
  * @param connectionId The id of the opened connection.
26262
- * @param callback Called with connection state information when available.
26263
26020
  */
26264
26021
  export function getInfo(
26265
26022
 
@@ -26279,8 +26036,6 @@ declare namespace chrome {
26279
26036
 
26280
26037
  /**
26281
26038
  * Retrieves the list of currently opened serial port connections owned by the application.
26282
- *
26283
- * @param callback Called with the list of connections when available.
26284
26039
  */
26285
26040
  export function getConnections(
26286
26041
 
@@ -26308,7 +26063,6 @@ declare namespace chrome {
26308
26063
  *
26309
26064
  * @param connectionId The id of the connection.
26310
26065
  * @param data The data to send.
26311
- * @param callback Called when the operation has completed.
26312
26066
  */
26313
26067
  export function send(
26314
26068
 
@@ -26358,7 +26112,6 @@ declare namespace chrome {
26358
26112
  * Retrieves the state of control signals on a given connection.
26359
26113
  *
26360
26114
  * @param connectionId The id of the connection.
26361
- * @param callback Called when the control signals are available.
26362
26115
  */
26363
26116
  export function getControlSignals(
26364
26117
 
@@ -26388,7 +26141,6 @@ declare namespace chrome {
26388
26141
  *
26389
26142
  * @param connectionId The id of the connection.
26390
26143
  * @param signals The set of signal changes to send to the device.
26391
- * @param callback Called once the control signals have been set.
26392
26144
  */
26393
26145
  export function setControlSignals(
26394
26146
 
@@ -26796,7 +26548,6 @@ declare namespace chrome {
26796
26548
  * Configures the side panel.
26797
26549
  *
26798
26550
  * @param options The configuration options to apply to the panel.
26799
- * @param callback Returns a Promise which resolves when the options have been set.
26800
26551
  */
26801
26552
  export function setOptions(
26802
26553
 
@@ -26819,7 +26570,6 @@ declare namespace chrome {
26819
26570
  * Returns the active panel configuration.
26820
26571
  *
26821
26572
  * @param options Specifies the context to return the configuration for.
26822
- * @param callback Returns a Promise which resolves with the active panel configuration.
26823
26573
  */
26824
26574
  export function getOptions(
26825
26575
 
@@ -26844,7 +26594,6 @@ declare namespace chrome {
26844
26594
  * Configures the extension's side panel behavior. This is an upsert operation.
26845
26595
  *
26846
26596
  * @param behavior The new behavior to be set.
26847
- * @param callback Returns a Promise which resolves when the new behavior has been set.
26848
26597
  */
26849
26598
  export function setPanelBehavior(
26850
26599
 
@@ -26860,8 +26609,6 @@ declare namespace chrome {
26860
26609
 
26861
26610
  /**
26862
26611
  * Returns the extension's current side panel behavior.
26863
- *
26864
- * @param callback Returns a Promise which resolves with the extension's side panel behavior.
26865
26612
  */
26866
26613
  export function getPanelBehavior(
26867
26614
 
@@ -26885,7 +26632,6 @@ declare namespace chrome {
26885
26632
  * Opens the side panel for the extension. This may only be called in response to a user action.
26886
26633
  *
26887
26634
  * @param options Specifies the context in which to open the side panel.
26888
- * @param callback Returns a Promise which resolves when the side panel has been opened.
26889
26635
  * @since Chrome 116
26890
26636
  */
26891
26637
  export function open(
@@ -26905,7 +26651,6 @@ declare namespace chrome {
26905
26651
  /**
26906
26652
  * Returns the side panel's current layout.
26907
26653
  *
26908
- * @param callback Returns a Promise which resolves with a {@link PanelLayout}.
26909
26654
  * @since Chrome 140
26910
26655
  */
26911
26656
  export function getLayout(
@@ -27077,7 +26822,6 @@ declare namespace chrome {
27077
26822
  *
27078
26823
  * @param type The type of socket to create. Must be `tcp` or `udp`.
27079
26824
  * @param options The socket options.
27080
- * @param callback Called when the socket has been created.
27081
26825
  */
27082
26826
  export function create(
27083
26827
 
@@ -27392,7 +27136,6 @@ declare namespace chrome {
27392
27136
  * Retrieves the state of the given socket.
27393
27137
  *
27394
27138
  * @param socketId The socketId.
27395
- * @param callback Called when the state is available.
27396
27139
  */
27397
27140
  export function getInfo(
27398
27141
 
@@ -27412,8 +27155,6 @@ declare namespace chrome {
27412
27155
 
27413
27156
  /**
27414
27157
  * Retrieves information about local adapters on this system.
27415
- *
27416
- * @param callback Called when local adapter information is available.
27417
27158
  */
27418
27159
  export function getNetworkList(
27419
27160
 
@@ -27734,7 +27475,6 @@ declare namespace chrome {
27734
27475
  * Creates a TCP socket.
27735
27476
  *
27736
27477
  * @param properties The socket properties (optional).
27737
- * @param callback Called when the socket has been created.
27738
27478
  */
27739
27479
  export function create(
27740
27480
 
@@ -27767,7 +27507,6 @@ declare namespace chrome {
27767
27507
  *
27768
27508
  * @param socketId The socket identifier.
27769
27509
  * @param properties The properties to update.
27770
- * @param callback Called when the properties are updated.
27771
27510
  */
27772
27511
  export function update(
27773
27512
 
@@ -27792,8 +27531,6 @@ declare namespace chrome {
27792
27531
 
27793
27532
  /**
27794
27533
  * 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.
27795
- *
27796
- * @param callback Callback from the `setPaused` method.
27797
27534
  */
27798
27535
  export function setPaused(
27799
27536
 
@@ -27939,7 +27676,6 @@ declare namespace chrome {
27939
27676
  * Disconnects the socket.
27940
27677
  *
27941
27678
  * @param socketId The socket identifier.
27942
- * @param callback Called when the disconnect attempt is complete.
27943
27679
  */
27944
27680
  export function disconnect(
27945
27681
 
@@ -28017,7 +27753,6 @@ declare namespace chrome {
28017
27753
  * 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.
28018
27754
  *
28019
27755
  * @param socketId The socket identifier.
28020
- * @param callback Called when the `close` operation completes.
28021
27756
  */
28022
27757
  export function close(
28023
27758
 
@@ -28041,7 +27776,6 @@ declare namespace chrome {
28041
27776
  * Retrieves the state of the given socket.
28042
27777
  *
28043
27778
  * @param socketId The socket identifier.
28044
- * @param callback Called when the socket state is available.
28045
27779
  */
28046
27780
  export function getInfo(
28047
27781
 
@@ -28064,8 +27798,6 @@ declare namespace chrome {
28064
27798
 
28065
27799
  /**
28066
27800
  * Retrieves the list of currently opened sockets owned by the application.
28067
- *
28068
- * @param callback Called when the list of sockets is available.
28069
27801
  */
28070
27802
  export function getSockets(
28071
27803
 
@@ -28199,7 +27931,6 @@ declare namespace chrome {
28199
27931
  * Creates a TCP server socket.
28200
27932
  *
28201
27933
  * @param properties The socket properties (optional).
28202
- * @param callback Called when the socket has been created.
28203
27934
  */
28204
27935
  export function create(
28205
27936
 
@@ -28232,7 +27963,6 @@ declare namespace chrome {
28232
27963
  *
28233
27964
  * @param socketId The socket identifier.
28234
27965
  * @param properties The properties to update.
28235
- * @param callback Called when the properties are updated.
28236
27966
  */
28237
27967
  export function update(
28238
27968
 
@@ -28257,8 +27987,6 @@ declare namespace chrome {
28257
27987
 
28258
27988
  /**
28259
27989
  * 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.
28260
- *
28261
- * @param callback Callback from the `setPaused` method.
28262
27990
  */
28263
27991
  export function setPaused(
28264
27992
 
@@ -28335,7 +28063,6 @@ declare namespace chrome {
28335
28063
  * 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.
28336
28064
  *
28337
28065
  * @param socketId The socket identifier.
28338
- * @param callback Called when the disconnect attempt is complete.
28339
28066
  */
28340
28067
  export function disconnect(
28341
28068
 
@@ -28359,7 +28086,6 @@ declare namespace chrome {
28359
28086
  * 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.
28360
28087
  *
28361
28088
  * @param socketId The socket identifier.
28362
- * @param callback Called when the `close` operation completes.
28363
28089
  */
28364
28090
  export function close(
28365
28091
 
@@ -28383,7 +28109,6 @@ declare namespace chrome {
28383
28109
  * Retrieves the state of the given socket.
28384
28110
  *
28385
28111
  * @param socketId The socket identifier.
28386
- * @param callback Called when the socket state is available.
28387
28112
  */
28388
28113
  export function getInfo(
28389
28114
 
@@ -28406,8 +28131,6 @@ declare namespace chrome {
28406
28131
 
28407
28132
  /**
28408
28133
  * Retrieves the list of currently opened sockets owned by the application.
28409
- *
28410
- * @param callback Called when the list of sockets is available.
28411
28134
  */
28412
28135
  export function getSockets(
28413
28136
 
@@ -28581,7 +28304,6 @@ declare namespace chrome {
28581
28304
  * Creates a UDP socket with the given properties.
28582
28305
  *
28583
28306
  * @param properties The socket properties (optional).
28584
- * @param callback Called when the socket has been created.
28585
28307
  */
28586
28308
  export function create(
28587
28309
 
@@ -28614,7 +28336,6 @@ declare namespace chrome {
28614
28336
  *
28615
28337
  * @param socketId The socket ID.
28616
28338
  * @param properties The properties to update.
28617
- * @param callback Called when the properties are updated.
28618
28339
  */
28619
28340
  export function update(
28620
28341
 
@@ -28642,7 +28363,6 @@ declare namespace chrome {
28642
28363
  * Pauses or unpauses a socket. A paused socket is blocked from firing `onReceive` events.
28643
28364
  *
28644
28365
  * @param paused Flag to indicate whether to pause or unpause.
28645
- * @param callback Called when the socket has been successfully paused or unpaused.
28646
28366
  */
28647
28367
  export function setPaused(
28648
28368
 
@@ -28754,7 +28474,6 @@ declare namespace chrome {
28754
28474
  * 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.
28755
28475
  *
28756
28476
  * @param socketId The socket ID.
28757
- * @param callback Called when the `close` operation completes.
28758
28477
  */
28759
28478
  export function close(
28760
28479
 
@@ -28778,7 +28497,6 @@ declare namespace chrome {
28778
28497
  * Retrieves the state of the given socket.
28779
28498
  *
28780
28499
  * @param socketId The socket ID.
28781
- * @param callback Called when the socket state is available.
28782
28500
  */
28783
28501
  export function getInfo(
28784
28502
 
@@ -28801,8 +28519,6 @@ declare namespace chrome {
28801
28519
 
28802
28520
  /**
28803
28521
  * Retrieves the list of currently opened sockets owned by the application.
28804
- *
28805
- * @param callback Called when the list of sockets is available.
28806
28522
  */
28807
28523
  export function getSockets(
28808
28524
 
@@ -28921,7 +28637,6 @@ declare namespace chrome {
28921
28637
  * Gets the multicast group addresses the socket is currently joined to.
28922
28638
  *
28923
28639
  * @param socketId The socket ID.
28924
- * @param callback Called with an array of strings of the result.
28925
28640
  */
28926
28641
  export function getJoinedGroups(
28927
28642
 
@@ -29013,7 +28728,6 @@ declare namespace chrome {
29013
28728
  * Gets one or more items from storage.
29014
28729
  *
29015
28730
  * @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.
29016
- * @param callback Callback with storage items, or on failure (in which case {@link runtime.lastError} will be set).
29017
28731
  */
29018
28732
  get(
29019
28733
 
@@ -29037,7 +28751,6 @@ declare namespace chrome {
29037
28751
  /**
29038
28752
  * Gets all keys from storage.
29039
28753
  *
29040
- * @param callback Callback with storage keys, or on failure (in which case {@link runtime.lastError} will be set).
29041
28754
  * @since Chrome 130
29042
28755
  */
29043
28756
  getKeys(
@@ -29065,7 +28778,6 @@ declare namespace chrome {
29065
28778
  * Gets the amount of space (in bytes) being used by one or more items.
29066
28779
  *
29067
28780
  * @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.
29068
- * @param callback Callback with the amount of space being used by storage, or on failure (in which case {@link runtime.lastError} will be set).
29069
28781
  */
29070
28782
  getBytesInUse(
29071
28783
 
@@ -29102,7 +28814,6 @@ declare namespace chrome {
29102
28814
  An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.
29103
28815
 
29104
28816
  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).
29105
- * @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
29106
28817
  */
29107
28818
  set(
29108
28819
 
@@ -29126,7 +28837,6 @@ declare namespace chrome {
29126
28837
  * Removes one or more items from storage.
29127
28838
  *
29128
28839
  * @param keys A single key or a list of keys for items to remove.
29129
- * @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
29130
28840
  */
29131
28841
  remove(
29132
28842
 
@@ -29144,8 +28854,6 @@ declare namespace chrome {
29144
28854
 
29145
28855
  /**
29146
28856
  * Removes all items from storage.
29147
- *
29148
- * @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
29149
28857
  */
29150
28858
  clear(
29151
28859
 
@@ -29171,7 +28879,6 @@ declare namespace chrome {
29171
28879
  /**
29172
28880
  * 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.
29173
28881
  *
29174
- * @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
29175
28882
  * @since Chrome 102
29176
28883
  */
29177
28884
  setAccessLevel(
@@ -29383,8 +29090,6 @@ declare namespace chrome {
29383
29090
  * Calling this multiple times from the same app will return the same handle to the same file system.
29384
29091
  *
29385
29092
  * Note this call can fail. For example, if the user is not signed in to Chrome or if there is no network operation. To handle these errors it is important chrome.runtime.lastError is checked in the callback.
29386
- *
29387
- * @param callback A callback type for requestFileSystem.
29388
29093
  */
29389
29094
  export function requestFileSystem(
29390
29095
 
@@ -29405,8 +29110,6 @@ declare namespace chrome {
29405
29110
 
29406
29111
  /**
29407
29112
  * Sets the default conflict resolution policy for the `'syncable'` file storage for the app. By default it is set to `'last_write_win'`. When conflict resolution policy is set to `'last_write_win'` conflicts for existing files are automatically resolved next time the file is updated. `callback` can be optionally given to know if the request has succeeded or not.
29408
- *
29409
- * @param callback A generic result callback to indicate success or failure.
29410
29113
  */
29411
29114
  export function setConflictResolutionPolicy(
29412
29115
 
@@ -29424,8 +29127,6 @@ declare namespace chrome {
29424
29127
 
29425
29128
  /**
29426
29129
  * Gets the current conflict resolution policy.
29427
- *
29428
- * @param callback A callback type for getConflictResolutionPolicy.
29429
29130
  */
29430
29131
  export function getConflictResolutionPolicy(
29431
29132
 
@@ -29446,8 +29147,6 @@ declare namespace chrome {
29446
29147
 
29447
29148
  /**
29448
29149
  * Returns the current usage and quota in bytes for the `'syncable'` file storage for the app.
29449
- *
29450
- * @param callback A callback type for getUsageAndQuota.
29451
29150
  */
29452
29151
  export function getUsageAndQuota(
29453
29152
 
@@ -29470,8 +29169,6 @@ declare namespace chrome {
29470
29169
 
29471
29170
  /**
29472
29171
  * Returns the {@link FileStatus} for the given `fileEntry`. The status value can be `'synced'`, `'pending'` or `'conflicting'`. Note that `'conflicting'` state only happens when the service's conflict resolution policy is set to `'manual'`.
29473
- *
29474
- * @param callback A callback type for getFileStatus.
29475
29172
  */
29476
29173
  export function getFileStatus(
29477
29174
 
@@ -29494,8 +29191,6 @@ declare namespace chrome {
29494
29191
 
29495
29192
  /**
29496
29193
  * Returns each {@link FileStatus} for the given `fileEntry` array. Typically called with the result from dirReader.readEntries().
29497
- *
29498
- * @param callback A callback type for getFileStatuses.
29499
29194
  */
29500
29195
  export function getFileStatuses(
29501
29196
 
@@ -29515,8 +29210,6 @@ declare namespace chrome {
29515
29210
 
29516
29211
  /**
29517
29212
  * Returns the current sync backend status.
29518
- *
29519
- * @param callback A callback type for getServiceStatus.
29520
29213
  */
29521
29214
  export function getServiceStatus(
29522
29215
 
@@ -30094,7 +29787,6 @@ declare namespace chrome {
30094
29787
  * Requests the information for all attached display devices.
30095
29788
  *
30096
29789
  * @param flags Options affecting how the information is returned.
30097
- * @param callback Promise that resolves with the results.
30098
29790
  */
30099
29791
  export function getInfo(
30100
29792
 
@@ -30119,7 +29811,6 @@ declare namespace chrome {
30119
29811
  /**
30120
29812
  * Requests the layout info for all displays. NOTE: This is only available to ChromeOS Kiosk apps and Web UI.
30121
29813
  *
30122
- * @param callback Promise that resolves with the results.
30123
29814
  * @since Chrome 53
30124
29815
  */
30125
29816
  export function getDisplayLayout(
@@ -30148,7 +29839,6 @@ declare namespace chrome {
30148
29839
  *
30149
29840
  * @param id The display's unique identifier.
30150
29841
  * @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`.
30151
- * @param callback Promise that resolves when the function finishes.
30152
29842
  */
30153
29843
  export function setDisplayProperties(
30154
29844
 
@@ -30175,7 +29865,6 @@ declare namespace chrome {
30175
29865
  * 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.
30176
29866
  *
30177
29867
  * @param layouts The layout information, required for all displays except the primary display.
30178
- * @param callback Promise that resolves when the function finishes.
30179
29868
  * @since Chrome 53
30180
29869
  */
30181
29870
  export function setDisplayLayout(
@@ -30259,7 +29948,6 @@ declare namespace chrome {
30259
29948
  * 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.
30260
29949
  *
30261
29950
  * @param id The display's unique identifier.
30262
- * @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.
30263
29951
  * @since Chrome 57
30264
29952
  */
30265
29953
  export function showNativeTouchCalibration(
@@ -30323,7 +30011,6 @@ declare namespace chrome {
30323
30011
  * 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.
30324
30012
  *
30325
30013
  * @param info The information of the mirror mode that should be applied to the display mode.
30326
- * @param callback Promise that resolves when the function finishes.
30327
30014
  * @since Chrome 65
30328
30015
  */
30329
30016
  export function setMirrorMode(
@@ -30407,8 +30094,6 @@ declare namespace chrome {
30407
30094
 
30408
30095
  /**
30409
30096
  * Retrieves information about local adapters on this system.
30410
- *
30411
- * @param callback Called when local adapter information is available.
30412
30097
  */
30413
30098
  export function getNetworkInterfaces(
30414
30099
 
@@ -30592,7 +30277,6 @@ declare namespace chrome {
30592
30277
  * Adds a new log record.
30593
30278
  *
30594
30279
  * @param options The logging options.
30595
- * @param callback Returns a Promise which resolves once the log has been added.
30596
30280
  */
30597
30281
  export function add(
30598
30282
 
@@ -30695,8 +30379,6 @@ declare namespace chrome {
30695
30379
 
30696
30380
  /**
30697
30381
  * 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).
30698
- *
30699
- * @param callback Returns a Promise which resolves with CaptureInfo\[\] for captured tabs.
30700
30382
  */
30701
30383
  export function getCapturedTabs(
30702
30384
 
@@ -30719,7 +30401,6 @@ declare namespace chrome {
30719
30401
  /**
30720
30402
  * 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.
30721
30403
  *
30722
- * @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.
30723
30404
  * @since Chrome 71
30724
30405
  */
30725
30406
  export function getMediaStreamId(
@@ -32726,6 +32407,7 @@ declare namespace chrome {
32726
32407
  * @chrome-returns-extra since Chrome 88
32727
32408
  * @param tabId The ID of the tab in which to run the script; defaults to the active tab of the current window.
32728
32409
  * @param details Details of the script to run. Either the code or the file property must be set, but both may not be set at the same time.
32410
+ * @returns Resolves after all the JavaScript has been executed.
32729
32411
  * @deprecated Replaced by {@link scripting.executeScript} in Manifest V3.
32730
32412
  * @chrome-max-manifest MV2
32731
32413
  * @chrome-deprecated-since Chrome 91
@@ -32742,6 +32424,7 @@ declare namespace chrome {
32742
32424
  *
32743
32425
  * @chrome-returns-extra since Chrome 88
32744
32426
  * @param details Details of the script to run. Either the code or the file property must be set, but both may not be set at the same time.
32427
+ * @returns Resolves after all the JavaScript has been executed.
32745
32428
  * @deprecated Replaced by {@link scripting.executeScript} in Manifest V3.
32746
32429
  * @chrome-max-manifest MV2
32747
32430
  * @chrome-deprecated-since Chrome 91
@@ -32756,7 +32439,6 @@ declare namespace chrome {
32756
32439
  *
32757
32440
  * @param tabId The ID of the tab in which to run the script; defaults to the active tab of the current window.
32758
32441
  * @param details Details of the script to run. Either the code or the file property must be set, but both may not be set at the same time.
32759
- * @param callback Resolves after all the JavaScript has been executed.
32760
32442
  * @deprecated Replaced by {@link scripting.executeScript} in Manifest V3.
32761
32443
  * @chrome-max-manifest MV2
32762
32444
  * @chrome-deprecated-since Chrome 91
@@ -32779,7 +32461,6 @@ declare namespace chrome {
32779
32461
  * Injects JavaScript code into a page. For details, see the [programmatic injection](https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts#programmatic) section of the content scripts doc.
32780
32462
  *
32781
32463
  * @param details Details of the script to run. Either the code or the file property must be set, but both may not be set at the same time.
32782
- * @param callback Resolves after all the JavaScript has been executed.
32783
32464
  * @deprecated Replaced by {@link scripting.executeScript} in Manifest V3.
32784
32465
  * @chrome-max-manifest MV2
32785
32466
  * @chrome-deprecated-since Chrome 91
@@ -32802,6 +32483,7 @@ declare namespace chrome {
32802
32483
  * @chrome-returns-extra since Chrome 88
32803
32484
  * @param tabId The ID of the tab in which to insert the CSS; defaults to the active tab of the current window.
32804
32485
  * @param details Details of the CSS text to insert. Either the code or the file property must be set, but both may not be set at the same time.
32486
+ * @returns Resolves when all the CSS has been inserted.
32805
32487
  * @deprecated Replaced by {@link scripting.insertCSS} in Manifest V3.
32806
32488
  * @chrome-max-manifest MV2
32807
32489
  * @chrome-deprecated-since Chrome 91
@@ -32818,6 +32500,7 @@ declare namespace chrome {
32818
32500
  *
32819
32501
  * @chrome-returns-extra since Chrome 88
32820
32502
  * @param details Details of the CSS text to insert. Either the code or the file property must be set, but both may not be set at the same time.
32503
+ * @returns Resolves when all the CSS has been inserted.
32821
32504
  * @deprecated Replaced by {@link scripting.insertCSS} in Manifest V3.
32822
32505
  * @chrome-max-manifest MV2
32823
32506
  * @chrome-deprecated-since Chrome 91
@@ -32832,7 +32515,6 @@ declare namespace chrome {
32832
32515
  *
32833
32516
  * @param tabId The ID of the tab in which to insert the CSS; defaults to the active tab of the current window.
32834
32517
  * @param details Details of the CSS text to insert. Either the code or the file property must be set, but both may not be set at the same time.
32835
- * @param callback Resolves when all the CSS has been inserted.
32836
32518
  * @deprecated Replaced by {@link scripting.insertCSS} in Manifest V3.
32837
32519
  * @chrome-max-manifest MV2
32838
32520
  * @chrome-deprecated-since Chrome 91
@@ -32850,7 +32532,6 @@ declare namespace chrome {
32850
32532
  * Injects CSS into a page. Styles inserted with this method can be removed with {@link scripting.removeCSS}. For details, see the [programmatic injection](https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts#programmatic) section of the content scripts doc.
32851
32533
  *
32852
32534
  * @param details Details of the CSS text to insert. Either the code or the file property must be set, but both may not be set at the same time.
32853
- * @param callback Resolves when all the CSS has been inserted.
32854
32535
  * @deprecated Replaced by {@link scripting.insertCSS} in Manifest V3.
32855
32536
  * @chrome-max-manifest MV2
32856
32537
  * @chrome-deprecated-since Chrome 91
@@ -32868,6 +32549,7 @@ declare namespace chrome {
32868
32549
  * @chrome-returns-extra since Chrome 88
32869
32550
  * @param tabId The ID of the tab from which to remove the CSS; defaults to the active tab of the current window.
32870
32551
  * @param details Details of the CSS text to remove. Either the code or the file property must be set, but both may not be set at the same time.
32552
+ * @returns Resolves when all the CSS has been removed.
32871
32553
  * @deprecated Replaced by {@link scripting.removeCSS} in Manifest V3.
32872
32554
  * @since Chrome 87
32873
32555
  * @chrome-max-manifest MV2
@@ -32885,6 +32567,7 @@ declare namespace chrome {
32885
32567
  *
32886
32568
  * @chrome-returns-extra since Chrome 88
32887
32569
  * @param details Details of the CSS text to remove. Either the code or the file property must be set, but both may not be set at the same time.
32570
+ * @returns Resolves when all the CSS has been removed.
32888
32571
  * @deprecated Replaced by {@link scripting.removeCSS} in Manifest V3.
32889
32572
  * @since Chrome 87
32890
32573
  * @chrome-max-manifest MV2
@@ -32900,7 +32583,6 @@ declare namespace chrome {
32900
32583
  *
32901
32584
  * @param tabId The ID of the tab from which to remove the CSS; defaults to the active tab of the current window.
32902
32585
  * @param details Details of the CSS text to remove. Either the code or the file property must be set, but both may not be set at the same time.
32903
- * @param callback Resolves when all the CSS has been removed.
32904
32586
  * @deprecated Replaced by {@link scripting.removeCSS} in Manifest V3.
32905
32587
  * @since Chrome 87
32906
32588
  * @chrome-max-manifest MV2
@@ -32919,7 +32601,6 @@ declare namespace chrome {
32919
32601
  * Removes from a page CSS that was previously injected by a call to {@link scripting.insertCSS}.
32920
32602
  *
32921
32603
  * @param details Details of the CSS text to remove. Either the code or the file property must be set, but both may not be set at the same time.
32922
- * @param callback Resolves when all the CSS has been removed.
32923
32604
  * @deprecated Replaced by {@link scripting.removeCSS} in Manifest V3.
32924
32605
  * @since Chrome 87
32925
32606
  * @chrome-max-manifest MV2
@@ -32938,6 +32619,7 @@ declare namespace chrome {
32938
32619
  * @chrome-returns-extra since Chrome 88
32939
32620
  * @param tabId The ID of the tab to zoom; defaults to the active tab of the current window.
32940
32621
  * @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.
32622
+ * @returns Resolves after the zoom factor has been changed.
32941
32623
  */
32942
32624
  export function setZoom(
32943
32625
 
@@ -32951,6 +32633,7 @@ declare namespace chrome {
32951
32633
  *
32952
32634
  * @chrome-returns-extra since Chrome 88
32953
32635
  * @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.
32636
+ * @returns Resolves after the zoom factor has been changed.
32954
32637
  */
32955
32638
  export function setZoom(
32956
32639
 
@@ -32962,7 +32645,6 @@ declare namespace chrome {
32962
32645
  *
32963
32646
  * @param tabId The ID of the tab to zoom; defaults to the active tab of the current window.
32964
32647
  * @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.
32965
- * @param callback Resolves after the zoom factor has been changed.
32966
32648
  */
32967
32649
  export function setZoom(
32968
32650
 
@@ -32977,7 +32659,6 @@ declare namespace chrome {
32977
32659
  * Zooms a specified tab.
32978
32660
  *
32979
32661
  * @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.
32980
- * @param callback Resolves after the zoom factor has been changed.
32981
32662
  */
32982
32663
  export function setZoom(
32983
32664
 
@@ -32991,6 +32672,7 @@ declare namespace chrome {
32991
32672
  *
32992
32673
  * @chrome-returns-extra since Chrome 88
32993
32674
  * @param tabId The ID of the tab to get the current zoom factor from; defaults to the active tab of the current window.
32675
+ * @returns Resolves with the tab's current zoom factor after it has been fetched.
32994
32676
  */
32995
32677
  export function getZoom(
32996
32678
 
@@ -33001,7 +32683,6 @@ declare namespace chrome {
33001
32683
  * Gets the current zoom factor of a specified tab.
33002
32684
  *
33003
32685
  * @param tabId The ID of the tab to get the current zoom factor from; defaults to the active tab of the current window.
33004
- * @param callback Resolves with the tab's current zoom factor after it has been fetched.
33005
32686
  */
33006
32687
  export function getZoom(
33007
32688
 
@@ -33021,6 +32702,7 @@ declare namespace chrome {
33021
32702
  * @chrome-returns-extra since Chrome 88
33022
32703
  * @param tabId The ID of the tab to change the zoom settings for; defaults to the active tab of the current window.
33023
32704
  * @param zoomSettings Defines how zoom changes are handled and at what scope.
32705
+ * @returns Resolves after the zoom settings are changed.
33024
32706
  */
33025
32707
  export function setZoomSettings(
33026
32708
 
@@ -33034,6 +32716,7 @@ declare namespace chrome {
33034
32716
  *
33035
32717
  * @chrome-returns-extra since Chrome 88
33036
32718
  * @param zoomSettings Defines how zoom changes are handled and at what scope.
32719
+ * @returns Resolves after the zoom settings are changed.
33037
32720
  */
33038
32721
  export function setZoomSettings(
33039
32722
 
@@ -33045,7 +32728,6 @@ declare namespace chrome {
33045
32728
  *
33046
32729
  * @param tabId The ID of the tab to change the zoom settings for; defaults to the active tab of the current window.
33047
32730
  * @param zoomSettings Defines how zoom changes are handled and at what scope.
33048
- * @param callback Resolves after the zoom settings are changed.
33049
32731
  */
33050
32732
  export function setZoomSettings(
33051
32733
 
@@ -33060,7 +32742,6 @@ declare namespace chrome {
33060
32742
  * 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.
33061
32743
  *
33062
32744
  * @param zoomSettings Defines how zoom changes are handled and at what scope.
33063
- * @param callback Resolves after the zoom settings are changed.
33064
32745
  */
33065
32746
  export function setZoomSettings(
33066
32747
 
@@ -33074,6 +32755,7 @@ declare namespace chrome {
33074
32755
  *
33075
32756
  * @chrome-returns-extra since Chrome 88
33076
32757
  * @param tabId The ID of the tab to get the current zoom settings from; defaults to the active tab of the current window.
32758
+ * @returns Resolves with the tab's current zoom settings.
33077
32759
  */
33078
32760
  export function getZoomSettings(
33079
32761
 
@@ -33084,7 +32766,6 @@ declare namespace chrome {
33084
32766
  * Gets the current zoom settings of a specified tab.
33085
32767
  *
33086
32768
  * @param tabId The ID of the tab to get the current zoom settings from; defaults to the active tab of the current window.
33087
- * @param callback Resolves with the tab's current zoom settings.
33088
32769
  */
33089
32770
  export function getZoomSettings(
33090
32771
 
@@ -33103,6 +32784,7 @@ declare namespace chrome {
33103
32784
  *
33104
32785
  * @chrome-returns-extra since Chrome 88
33105
32786
  * @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.
32787
+ * @returns Resolves after the operation is completed.
33106
32788
  * @since Chrome 54
33107
32789
  */
33108
32790
  export function discard(
@@ -33114,7 +32796,6 @@ declare namespace chrome {
33114
32796
  * Discards a tab from memory. Discarded tabs are still visible on the tab strip and are reloaded when activated.
33115
32797
  *
33116
32798
  * @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.
33117
- * @param callback Resolves after the operation is completed.
33118
32799
  * @since Chrome 54
33119
32800
  */
33120
32801
  export function discard(
@@ -33403,7 +33084,6 @@ declare namespace chrome {
33403
33084
  *
33404
33085
  * @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.
33405
33086
  * @param options The speech options.
33406
- * @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.
33407
33087
  */
33408
33088
  export function speak(
33409
33089
 
@@ -33878,6 +33558,7 @@ declare namespace chrome {
33878
33558
  *
33879
33559
  * @chrome-returns-extra since Chrome 96
33880
33560
  * @param details Which setting to change.
33561
+ * @returns Called at the completion of the set operation.
33881
33562
  */
33882
33563
  set(
33883
33564
 
@@ -33900,7 +33581,6 @@ declare namespace chrome {
33900
33581
  * Sets the value of a setting.
33901
33582
  *
33902
33583
  * @param details Which setting to change.
33903
- * @param callback Called at the completion of the set operation.
33904
33584
  */
33905
33585
  set(
33906
33586
 
@@ -33926,6 +33606,7 @@ declare namespace chrome {
33926
33606
  *
33927
33607
  * @chrome-returns-extra since Chrome 96
33928
33608
  * @param details Which setting to clear.
33609
+ * @returns Called at the completion of the clear operation.
33929
33610
  */
33930
33611
  clear(
33931
33612
 
@@ -33942,7 +33623,6 @@ declare namespace chrome {
33942
33623
  * Clears the setting, restoring any default value.
33943
33624
  *
33944
33625
  * @param details Which setting to clear.
33945
- * @param callback Called at the completion of the clear operation.
33946
33626
  */
33947
33627
  clear(
33948
33628
 
@@ -34426,7 +34106,6 @@ declare namespace chrome {
34426
34106
  * Presents a device picker to the user and returns the {@link Device}s selected. If the user cancels the picker devices will be empty. A user gesture is required for the dialog to display. Without a user gesture, the callback will run as though the user cancelled.
34427
34107
  *
34428
34108
  * @param options Configuration of the device picker dialog box.
34429
- * @param callback Invoked with a list of chosen {@link Device}s.
34430
34109
  */
34431
34110
  export function getUserSelectedDevices(
34432
34111
 
@@ -35116,7 +34795,6 @@ declare namespace chrome {
35116
34795
  * Registers one or more user scripts for this extension.
35117
34796
  *
35118
34797
  * @param scripts Contains a list of user scripts to be registered.
35119
- * @param callback Promise that resolves once scripts have been fully registered. The promise will be rejected if an error occurs.
35120
34798
  */
35121
34799
  export function register(
35122
34800
 
@@ -35139,7 +34817,6 @@ declare namespace chrome {
35139
34817
  * Returns all dynamically-registered user scripts for this extension.
35140
34818
  *
35141
34819
  * @param filter If specified, this method returns only the user scripts that match it.
35142
- * @param callback Promise that resolves with the registered scripts. The promise will be rejected if an error occurs.
35143
34820
  */
35144
34821
  export function getScripts(
35145
34822
 
@@ -35164,7 +34841,6 @@ declare namespace chrome {
35164
34841
  * Unregisters all dynamically-registered user scripts for this extension.
35165
34842
  *
35166
34843
  * @param filter If specified, this method unregisters only the user scripts that match it.
35167
- * @param callback Promise that resolves once scripts have been fully unregistered. The promise will be rejected if an error occurs.
35168
34844
  */
35169
34845
  export function unregister(
35170
34846
 
@@ -35187,7 +34863,6 @@ declare namespace chrome {
35187
34863
  * Updates one or more user scripts for this extension.
35188
34864
  *
35189
34865
  * @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.
35190
- * @param callback Promise that resolves once scripts have been fully updated. The promise will be rejected if an error occurs.
35191
34866
  */
35192
34867
  export function update(
35193
34868
 
@@ -35234,7 +34909,6 @@ declare namespace chrome {
35234
34909
  * Configures the `` `USER_SCRIPT` `` execution environment.
35235
34910
  *
35236
34911
  * @param properties Contains the user script world configuration.
35237
- * @param callback Promise that resolves once the world has been configured.
35238
34912
  */
35239
34913
  export function configureWorld(
35240
34914
 
@@ -35253,7 +34927,6 @@ declare namespace chrome {
35253
34927
  /**
35254
34928
  * Retrieves all registered world configurations.
35255
34929
  *
35256
- * @param callback Promise that resolves with the registered world configurations.
35257
34930
  * @since Chrome 133
35258
34931
  */
35259
34932
  export function getWorldConfigurations(
@@ -35278,7 +34951,6 @@ declare namespace chrome {
35278
34951
  * 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.
35279
34952
  *
35280
34953
  * @param worldId The ID of the user script world to reset. If omitted, resets the default world's configuration.
35281
- * @param callback Promise that resolves when the configuration is reset.
35282
34954
  * @since Chrome 133
35283
34955
  */
35284
34956
  export function resetWorldConfiguration(
@@ -35342,7 +35014,6 @@ declare namespace chrome {
35342
35014
  * Sets restrictions on features provided by the virtual keyboard.
35343
35015
  *
35344
35016
  * @param restrictions the preferences to enabled/disabled virtual keyboard features.
35345
- * @param callback Invoked with the values which were updated.
35346
35017
  */
35347
35018
  export function restrictFeatures(
35348
35019
 
@@ -35500,7 +35171,6 @@ declare namespace chrome {
35500
35171
  * Creates a new VPN configuration that persists across multiple login sessions of the user.
35501
35172
  *
35502
35173
  * @param name The name of the VPN configuration.
35503
- * @param callback Returns a Promise which resolves when the configuration is created or rejects if there is an error.
35504
35174
  */
35505
35175
  export function createConfig(
35506
35176
 
@@ -35529,7 +35199,6 @@ declare namespace chrome {
35529
35199
  * Destroys a VPN configuration created by the extension.
35530
35200
  *
35531
35201
  * @param id ID of the VPN configuration to destroy.
35532
- * @param callback Returns a Promise which resolves when the configuration is destroyed or rejects if there is an error.
35533
35202
  */
35534
35203
  export function destroyConfig(
35535
35204
 
@@ -35553,7 +35222,6 @@ declare namespace chrome {
35553
35222
  * 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.
35554
35223
  *
35555
35224
  * @param parameters The parameters for the VPN session.
35556
- * @param callback Returns a Promise which resolves when the parameters are set or rejects if there is an error.
35557
35225
  */
35558
35226
  export function setParameters(
35559
35227
 
@@ -35577,7 +35245,6 @@ declare namespace chrome {
35577
35245
  * 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.
35578
35246
  *
35579
35247
  * @param data The IP packet to be sent to the platform.
35580
- * @param callback Returns a Promise which resolves when the packet is sent or rejects if there is an error.
35581
35248
  */
35582
35249
  export function sendPacket(
35583
35250
 
@@ -35601,7 +35268,6 @@ declare namespace chrome {
35601
35268
  * Notifies the VPN session state to the platform. This will succeed only when the VPN session is owned by the extension.
35602
35269
  *
35603
35270
  * @param state The VPN session state of the VPN client.
35604
- * @param callback Returns a Promise which resolves when the notification is complete or rejects if there is an error.
35605
35271
  */
35606
35272
  export function notifyConnectionStateChanged(
35607
35273