CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
lib.webworker.d.ts15607 linesDownload Raw Back to lib
1/*! *****************************************************************************2Copyright (c) Microsoft Corporation. All rights reserved.3Licensed under the Apache License, Version 2.0 (the "License"); you may not use4this file except in compliance with the License. You may obtain a copy of the5License at http://www.apache.org/licenses/LICENSE-2.06 7THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY8KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED9WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,10MERCHANTABILITY OR NON-INFRINGEMENT.11 12See the Apache Version 2.0 License for specific language governing permissions13and limitations under the License.14***************************************************************************** */15 16 17/// <reference lib="es2015" />18/// <reference lib="es2018.asynciterable" />19 20/////////////////////////////21/// Worker APIs22/////////////////////////////23 24interface AacEncoderConfig {25    format?: AacBitstreamFormat;26}27 28interface AddEventListenerOptions extends EventListenerOptions {29    once?: boolean;30    passive?: boolean;31    signal?: AbortSignal;32}33 34interface AesCbcParams extends Algorithm {35    iv: BufferSource;36}37 38interface AesCtrParams extends Algorithm {39    counter: BufferSource;40    length: number;41}42 43interface AesDerivedKeyParams extends Algorithm {44    length: number;45}46 47interface AesGcmParams extends Algorithm {48    additionalData?: BufferSource;49    iv: BufferSource;50    tagLength?: number;51}52 53interface AesKeyAlgorithm extends KeyAlgorithm {54    length: number;55}56 57interface AesKeyGenParams extends Algorithm {58    length: number;59}60 61interface Algorithm {62    name: string;63}64 65interface AudioConfiguration {66    bitrate?: number;67    channels?: string;68    contentType: string;69    samplerate?: number;70    spatialRendering?: boolean;71}72 73interface AudioDataCopyToOptions {74    format?: AudioSampleFormat;75    frameCount?: number;76    frameOffset?: number;77    planeIndex: number;78}79 80interface AudioDataInit {81    data: BufferSource;82    format: AudioSampleFormat;83    numberOfChannels: number;84    numberOfFrames: number;85    sampleRate: number;86    timestamp: number;87    transfer?: ArrayBuffer[];88}89 90interface AudioDecoderConfig {91    codec: string;92    description?: AllowSharedBufferSource;93    numberOfChannels: number;94    sampleRate: number;95}96 97interface AudioDecoderInit {98    error: WebCodecsErrorCallback;99    output: AudioDataOutputCallback;100}101 102interface AudioDecoderSupport {103    config?: AudioDecoderConfig;104    supported?: boolean;105}106 107interface AudioEncoderConfig {108    aac?: AacEncoderConfig;109    bitrate?: number;110    bitrateMode?: BitrateMode;111    codec: string;112    numberOfChannels: number;113    opus?: OpusEncoderConfig;114    sampleRate: number;115}116 117interface AudioEncoderInit {118    error: WebCodecsErrorCallback;119    output: EncodedAudioChunkOutputCallback;120}121 122interface AudioEncoderSupport {123    config?: AudioEncoderConfig;124    supported?: boolean;125}126 127interface AvcEncoderConfig {128    format?: AvcBitstreamFormat;129}130 131interface BlobPropertyBag {132    endings?: EndingType;133    type?: string;134}135 136interface CSSMatrixComponentOptions {137    is2D?: boolean;138}139 140interface CSSNumericType {141    angle?: number;142    flex?: number;143    frequency?: number;144    length?: number;145    percent?: number;146    percentHint?: CSSNumericBaseType;147    resolution?: number;148    time?: number;149}150 151interface CacheQueryOptions {152    ignoreMethod?: boolean;153    ignoreSearch?: boolean;154    ignoreVary?: boolean;155}156 157interface ClientQueryOptions {158    includeUncontrolled?: boolean;159    type?: ClientTypes;160}161 162interface CloseEventInit extends EventInit {163    code?: number;164    reason?: string;165    wasClean?: boolean;166}167 168interface CookieInit {169    domain?: string | null;170    expires?: DOMHighResTimeStamp | null;171    name: string;172    partitioned?: boolean;173    path?: string;174    sameSite?: CookieSameSite;175    value: string;176}177 178interface CookieListItem {179    name?: string;180    value?: string;181}182 183interface CookieStoreDeleteOptions {184    domain?: string | null;185    name: string;186    partitioned?: boolean;187    path?: string;188}189 190interface CookieStoreGetOptions {191    name?: string;192    url?: string;193}194 195interface CryptoKeyPair {196    privateKey: CryptoKey;197    publicKey: CryptoKey;198}199 200interface CustomEventInit<T = any> extends EventInit {201    detail?: T;202}203 204interface DOMMatrix2DInit {205    a?: number;206    b?: number;207    c?: number;208    d?: number;209    e?: number;210    f?: number;211    m11?: number;212    m12?: number;213    m21?: number;214    m22?: number;215    m41?: number;216    m42?: number;217}218 219interface DOMMatrixInit extends DOMMatrix2DInit {220    is2D?: boolean;221    m13?: number;222    m14?: number;223    m23?: number;224    m24?: number;225    m31?: number;226    m32?: number;227    m33?: number;228    m34?: number;229    m43?: number;230    m44?: number;231}232 233interface DOMPointInit {234    w?: number;235    x?: number;236    y?: number;237    z?: number;238}239 240interface DOMQuadInit {241    p1?: DOMPointInit;242    p2?: DOMPointInit;243    p3?: DOMPointInit;244    p4?: DOMPointInit;245}246 247interface DOMRectInit {248    height?: number;249    width?: number;250    x?: number;251    y?: number;252}253 254interface EcKeyGenParams extends Algorithm {255    namedCurve: NamedCurve;256}257 258interface EcKeyImportParams extends Algorithm {259    namedCurve: NamedCurve;260}261 262interface EcdhKeyDeriveParams extends Algorithm {263    public: CryptoKey;264}265 266interface EcdsaParams extends Algorithm {267    hash: HashAlgorithmIdentifier;268}269 270interface EncodedAudioChunkInit {271    data: AllowSharedBufferSource;272    duration?: number;273    timestamp: number;274    transfer?: ArrayBuffer[];275    type: EncodedAudioChunkType;276}277 278interface EncodedAudioChunkMetadata {279    decoderConfig?: AudioDecoderConfig;280}281 282interface EncodedVideoChunkInit {283    data: AllowSharedBufferSource;284    duration?: number;285    timestamp: number;286    type: EncodedVideoChunkType;287}288 289interface EncodedVideoChunkMetadata {290    decoderConfig?: VideoDecoderConfig;291    svc?: SvcOutputMetadata;292}293 294interface ErrorEventInit extends EventInit {295    colno?: number;296    error?: any;297    filename?: string;298    lineno?: number;299    message?: string;300}301 302interface EventInit {303    bubbles?: boolean;304    cancelable?: boolean;305    composed?: boolean;306}307 308interface EventListenerOptions {309    capture?: boolean;310}311 312interface EventSourceInit {313    withCredentials?: boolean;314}315 316interface ExtendableCookieChangeEventInit extends ExtendableEventInit {317    changed?: CookieList;318    deleted?: CookieList;319}320 321interface ExtendableEventInit extends EventInit {322}323 324interface ExtendableMessageEventInit extends ExtendableEventInit {325    data?: any;326    lastEventId?: string;327    origin?: string;328    ports?: MessagePort[];329    source?: Client | ServiceWorker | MessagePort | null;330}331 332interface FetchEventInit extends ExtendableEventInit {333    clientId?: string;334    handled?: Promise<void>;335    preloadResponse?: Promise<any>;336    request: Request;337    resultingClientId?: string;338}339 340interface FilePropertyBag extends BlobPropertyBag {341    lastModified?: number;342}343 344interface FileSystemCreateWritableOptions {345    keepExistingData?: boolean;346}347 348interface FileSystemGetDirectoryOptions {349    create?: boolean;350}351 352interface FileSystemGetFileOptions {353    create?: boolean;354}355 356interface FileSystemReadWriteOptions {357    at?: number;358}359 360interface FileSystemRemoveOptions {361    recursive?: boolean;362}363 364interface FontFaceDescriptors {365    ascentOverride?: string;366    descentOverride?: string;367    display?: FontDisplay;368    featureSettings?: string;369    lineGapOverride?: string;370    stretch?: string;371    style?: string;372    unicodeRange?: string;373    variationSettings?: string;374    weight?: string;375}376 377interface FontFaceSetLoadEventInit extends EventInit {378    fontfaces?: FontFace[];379}380 381interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {382    entries: GPUBindGroupEntry[];383    layout: GPUBindGroupLayout;384}385 386interface GPUBindGroupEntry {387    binding: GPUIndex32;388    resource: GPUBindingResource;389}390 391interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {392    entries: GPUBindGroupLayoutEntry[];393}394 395interface GPUBindGroupLayoutEntry {396    binding: GPUIndex32;397    buffer?: GPUBufferBindingLayout;398    externalTexture?: GPUExternalTextureBindingLayout;399    sampler?: GPUSamplerBindingLayout;400    storageTexture?: GPUStorageTextureBindingLayout;401    texture?: GPUTextureBindingLayout;402    visibility: GPUShaderStageFlags;403}404 405interface GPUBlendComponent {406    dstFactor?: GPUBlendFactor;407    operation?: GPUBlendOperation;408    srcFactor?: GPUBlendFactor;409}410 411interface GPUBlendState {412    alpha: GPUBlendComponent;413    color: GPUBlendComponent;414}415 416interface GPUBufferBinding {417    buffer: GPUBuffer;418    offset?: GPUSize64;419    size?: GPUSize64;420}421 422interface GPUBufferBindingLayout {423    hasDynamicOffset?: boolean;424    minBindingSize?: GPUSize64;425    type?: GPUBufferBindingType;426}427 428interface GPUBufferDescriptor extends GPUObjectDescriptorBase {429    mappedAtCreation?: boolean;430    size: GPUSize64;431    usage: GPUBufferUsageFlags;432}433 434interface GPUCanvasConfiguration {435    alphaMode?: GPUCanvasAlphaMode;436    colorSpace?: PredefinedColorSpace;437    device: GPUDevice;438    format: GPUTextureFormat;439    toneMapping?: GPUCanvasToneMapping;440    usage?: GPUTextureUsageFlags;441    viewFormats?: GPUTextureFormat[];442}443 444interface GPUCanvasToneMapping {445    mode?: GPUCanvasToneMappingMode;446}447 448interface GPUColorDict {449    a: number;450    b: number;451    g: number;452    r: number;453}454 455interface GPUColorTargetState {456    blend?: GPUBlendState;457    format: GPUTextureFormat;458    writeMask?: GPUColorWriteFlags;459}460 461interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {462}463 464interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {465}466 467interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {468    timestampWrites?: GPUComputePassTimestampWrites;469}470 471interface GPUComputePassTimestampWrites {472    beginningOfPassWriteIndex?: GPUSize32;473    endOfPassWriteIndex?: GPUSize32;474    querySet: GPUQuerySet;475}476 477interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {478    compute: GPUProgrammableStage;479}480 481interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {482    colorSpace?: PredefinedColorSpace;483    premultipliedAlpha?: boolean;484}485 486interface GPUCopyExternalImageSourceInfo {487    flipY?: boolean;488    origin?: GPUOrigin2D;489    source: GPUCopyExternalImageSource;490}491 492interface GPUDepthStencilState {493    depthBias?: GPUDepthBias;494    depthBiasClamp?: number;495    depthBiasSlopeScale?: number;496    depthCompare?: GPUCompareFunction;497    depthWriteEnabled?: boolean;498    format: GPUTextureFormat;499    stencilBack?: GPUStencilFaceState;500    stencilFront?: GPUStencilFaceState;501    stencilReadMask?: GPUStencilValue;502    stencilWriteMask?: GPUStencilValue;503}504 505interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {506    defaultQueue?: GPUQueueDescriptor;507    requiredFeatures?: GPUFeatureName[];508    requiredLimits?: Record<string, GPUSize64 | undefined>;509}510 511interface GPUExtent3DDict {512    depthOrArrayLayers?: GPUIntegerCoordinate;513    height?: GPUIntegerCoordinate;514    width: GPUIntegerCoordinate;515}516 517interface GPUExternalTextureBindingLayout {518}519 520interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {521    colorSpace?: PredefinedColorSpace;522    source: VideoFrame;523}524 525interface GPUFragmentState extends GPUProgrammableStage {526    targets: (GPUColorTargetState | null)[];527}528 529interface GPUMultisampleState {530    alphaToCoverageEnabled?: boolean;531    count?: GPUSize32;532    mask?: GPUSampleMask;533}534 535interface GPUObjectDescriptorBase {536    label?: string;537}538 539interface GPUOrigin2DDict {540    x?: GPUIntegerCoordinate;541    y?: GPUIntegerCoordinate;542}543 544interface GPUOrigin3DDict {545    x?: GPUIntegerCoordinate;546    y?: GPUIntegerCoordinate;547    z?: GPUIntegerCoordinate;548}549 550interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {551    layout: GPUPipelineLayout | GPUAutoLayoutMode;552}553 554interface GPUPipelineErrorInit {555    reason: GPUPipelineErrorReason;556}557 558interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {559    bindGroupLayouts: (GPUBindGroupLayout | null)[];560}561 562interface GPUPrimitiveState {563    cullMode?: GPUCullMode;564    frontFace?: GPUFrontFace;565    stripIndexFormat?: GPUIndexFormat;566    topology?: GPUPrimitiveTopology;567    unclippedDepth?: boolean;568}569 570interface GPUProgrammableStage {571    constants?: Record<string, GPUPipelineConstantValue>;572    entryPoint?: string;573    module: GPUShaderModule;574}575 576interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {577    count: GPUSize32;578    type: GPUQueryType;579}580 581interface GPUQueueDescriptor extends GPUObjectDescriptorBase {582}583 584interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {585}586 587interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {588    depthReadOnly?: boolean;589    stencilReadOnly?: boolean;590}591 592interface GPURenderPassColorAttachment {593    clearValue?: GPUColor;594    depthSlice?: GPUIntegerCoordinate;595    loadOp: GPULoadOp;596    resolveTarget?: GPUTexture | GPUTextureView;597    storeOp: GPUStoreOp;598    view: GPUTexture | GPUTextureView;599}600 601interface GPURenderPassDepthStencilAttachment {602    depthClearValue?: number;603    depthLoadOp?: GPULoadOp;604    depthReadOnly?: boolean;605    depthStoreOp?: GPUStoreOp;606    stencilClearValue?: GPUStencilValue;607    stencilLoadOp?: GPULoadOp;608    stencilReadOnly?: boolean;609    stencilStoreOp?: GPUStoreOp;610    view: GPUTexture | GPUTextureView;611}612 613interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {614    colorAttachments: (GPURenderPassColorAttachment | null)[];615    depthStencilAttachment?: GPURenderPassDepthStencilAttachment;616    maxDrawCount?: GPUSize64;617    occlusionQuerySet?: GPUQuerySet;618    timestampWrites?: GPURenderPassTimestampWrites;619}620 621interface GPURenderPassLayout extends GPUObjectDescriptorBase {622    colorFormats: (GPUTextureFormat | null)[];623    depthStencilFormat?: GPUTextureFormat;624    sampleCount?: GPUSize32;625}626 627interface GPURenderPassTimestampWrites {628    beginningOfPassWriteIndex?: GPUSize32;629    endOfPassWriteIndex?: GPUSize32;630    querySet: GPUQuerySet;631}632 633interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {634    depthStencil?: GPUDepthStencilState;635    fragment?: GPUFragmentState;636    multisample?: GPUMultisampleState;637    primitive?: GPUPrimitiveState;638    vertex: GPUVertexState;639}640 641interface GPURequestAdapterOptions {642    forceFallbackAdapter?: boolean;643    powerPreference?: GPUPowerPreference;644}645 646interface GPUSamplerBindingLayout {647    type?: GPUSamplerBindingType;648}649 650interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {651    addressModeU?: GPUAddressMode;652    addressModeV?: GPUAddressMode;653    addressModeW?: GPUAddressMode;654    compare?: GPUCompareFunction;655    lodMaxClamp?: number;656    lodMinClamp?: number;657    magFilter?: GPUFilterMode;658    maxAnisotropy?: number;659    minFilter?: GPUFilterMode;660    mipmapFilter?: GPUMipmapFilterMode;661}662 663interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {664    code: string;665}666 667interface GPUStencilFaceState {668    compare?: GPUCompareFunction;669    depthFailOp?: GPUStencilOperation;670    failOp?: GPUStencilOperation;671    passOp?: GPUStencilOperation;672}673 674interface GPUStorageTextureBindingLayout {675    access?: GPUStorageTextureAccess;676    format: GPUTextureFormat;677    viewDimension?: GPUTextureViewDimension;678}679 680interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {681    buffer: GPUBuffer;682}683 684interface GPUTexelCopyBufferLayout {685    bytesPerRow?: GPUSize32;686    offset?: GPUSize64;687    rowsPerImage?: GPUSize32;688}689 690interface GPUTexelCopyTextureInfo {691    aspect?: GPUTextureAspect;692    mipLevel?: GPUIntegerCoordinate;693    origin?: GPUOrigin3D;694    texture: GPUTexture;695}696 697interface GPUTextureBindingLayout {698    multisampled?: boolean;699    sampleType?: GPUTextureSampleType;700    viewDimension?: GPUTextureViewDimension;701}702 703interface GPUTextureDescriptor extends GPUObjectDescriptorBase {704    dimension?: GPUTextureDimension;705    format: GPUTextureFormat;706    mipLevelCount?: GPUIntegerCoordinate;707    sampleCount?: GPUSize32;708    size: GPUExtent3D;709    usage: GPUTextureUsageFlags;710    viewFormats?: GPUTextureFormat[];711}712 713interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {714    arrayLayerCount?: GPUIntegerCoordinate;715    aspect?: GPUTextureAspect;716    baseArrayLayer?: GPUIntegerCoordinate;717    baseMipLevel?: GPUIntegerCoordinate;718    dimension?: GPUTextureViewDimension;719    format?: GPUTextureFormat;720    mipLevelCount?: GPUIntegerCoordinate;721    usage?: GPUTextureUsageFlags;722}723 724interface GPUUncapturedErrorEventInit extends EventInit {725    error: GPUError;726}727 728interface GPUVertexAttribute {729    format: GPUVertexFormat;730    offset: GPUSize64;731    shaderLocation: GPUIndex32;732}733 734interface GPUVertexBufferLayout {735    arrayStride: GPUSize64;736    attributes: GPUVertexAttribute[];737    stepMode?: GPUVertexStepMode;738}739 740interface GPUVertexState extends GPUProgrammableStage {741    buffers?: (GPUVertexBufferLayout | null)[];742}743 744interface GetNotificationOptions {745    tag?: string;746}747 748interface HkdfParams extends Algorithm {749    hash: HashAlgorithmIdentifier;750    info: BufferSource;751    salt: BufferSource;752}753 754interface HmacImportParams extends Algorithm {755    hash: HashAlgorithmIdentifier;756    length?: number;757}758 759interface HmacKeyGenParams extends Algorithm {760    hash: HashAlgorithmIdentifier;761    length?: number;762}763 764interface IDBDatabaseInfo {765    name?: string;766    version?: number;767}768 769interface IDBIndexParameters {770    multiEntry?: boolean;771    unique?: boolean;772}773 774interface IDBObjectStoreParameters {775    autoIncrement?: boolean;776    keyPath?: string | string[] | null;777}778 779interface IDBTransactionOptions {780    durability?: IDBTransactionDurability;781}782 783interface IDBVersionChangeEventInit extends EventInit {784    newVersion?: number | null;785    oldVersion?: number;786}787 788interface ImageBitmapOptions {789    colorSpaceConversion?: ColorSpaceConversion;790    imageOrientation?: ImageOrientation;791    premultiplyAlpha?: PremultiplyAlpha;792    resizeHeight?: number;793    resizeQuality?: ResizeQuality;794    resizeWidth?: number;795}796 797interface ImageBitmapRenderingContextSettings {798    alpha?: boolean;799}800 801interface ImageDataSettings {802    colorSpace?: PredefinedColorSpace;803    pixelFormat?: ImageDataPixelFormat;804}805 806interface ImageDecodeOptions {807    completeFramesOnly?: boolean;808    frameIndex?: number;809}810 811interface ImageDecodeResult {812    complete: boolean;813    image: VideoFrame;814}815 816interface ImageDecoderInit {817    colorSpaceConversion?: ColorSpaceConversion;818    data: ImageBufferSource;819    desiredHeight?: number;820    desiredWidth?: number;821    preferAnimation?: boolean;822    transfer?: ArrayBuffer[];823    type: string;824}825 826interface ImageEncodeOptions {827    quality?: number;828    type?: string;829}830 831interface JsonWebKey {832    alg?: string;833    crv?: string;834    d?: string;835    dp?: string;836    dq?: string;837    e?: string;838    ext?: boolean;839    k?: string;840    key_ops?: string[];841    kty?: string;842    n?: string;843    oth?: RsaOtherPrimesInfo[];844    p?: string;845    q?: string;846    qi?: string;847    use?: string;848    x?: string;849    y?: string;850}851 852interface KeyAlgorithm {853    name: string;854}855 856interface KeySystemTrackConfiguration {857    robustness?: string;858}859 860interface LockInfo {861    clientId?: string;862    mode?: LockMode;863    name?: string;864}865 866interface LockManagerSnapshot {867    held?: LockInfo[];868    pending?: LockInfo[];869}870 871interface LockOptions {872    ifAvailable?: boolean;873    mode?: LockMode;874    signal?: AbortSignal;875    steal?: boolean;876}877 878interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {879}880 881interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {882}883 884interface MediaCapabilitiesInfo {885    powerEfficient: boolean;886    smooth: boolean;887    supported: boolean;888}889 890interface MediaCapabilitiesKeySystemConfiguration {891    audio?: KeySystemTrackConfiguration;892    distinctiveIdentifier?: MediaKeysRequirement;893    initDataType?: string;894    keySystem: string;895    persistentState?: MediaKeysRequirement;896    sessionTypes?: string[];897    video?: KeySystemTrackConfiguration;898}899 900interface MediaConfiguration {901    audio?: AudioConfiguration;902    video?: VideoConfiguration;903}904 905interface MediaDecodingConfiguration extends MediaConfiguration {906    keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;907    type: MediaDecodingType;908}909 910interface MediaEncodingConfiguration extends MediaConfiguration {911    type: MediaEncodingType;912}913 914interface MediaStreamTrackProcessorInit {915    maxBufferSize?: number;916}917 918interface MessageEventInit<T = any> extends EventInit {919    data?: T;920    lastEventId?: string;921    origin?: string;922    ports?: MessagePort[];923    source?: MessageEventSource | null;924}925 926interface MultiCacheQueryOptions extends CacheQueryOptions {927    cacheName?: string;928}929 930interface NavigationPreloadState {931    enabled?: boolean;932    headerValue?: string;933}934 935interface NotificationEventInit extends ExtendableEventInit {936    action?: string;937    notification: Notification;938}939 940interface NotificationOptions {941    badge?: string;942    body?: string;943    data?: any;944    dir?: NotificationDirection;945    icon?: string;946    lang?: string;947    requireInteraction?: boolean;948    silent?: boolean | null;949    tag?: string;950}951 952interface OpusEncoderConfig {953    complexity?: number;954    format?: OpusBitstreamFormat;955    frameDuration?: number;956    packetlossperc?: number;957    usedtx?: boolean;958    useinbandfec?: boolean;959}960 961interface Pbkdf2Params extends Algorithm {962    hash: HashAlgorithmIdentifier;963    iterations: number;964    salt: BufferSource;965}966 967interface PerformanceMarkOptions {968    detail?: any;969    startTime?: DOMHighResTimeStamp;970}971 972interface PerformanceMeasureOptions {973    detail?: any;974    duration?: DOMHighResTimeStamp;975    end?: string | DOMHighResTimeStamp;976    start?: string | DOMHighResTimeStamp;977}978 979interface PerformanceObserverInit {980    buffered?: boolean;981    entryTypes?: string[];982    type?: string;983}984 985interface PermissionDescriptor {986    name: PermissionName;987}988 989interface PlaneLayout {990    offset: number;991    stride: number;992}993 994interface ProgressEventInit extends EventInit {995    lengthComputable?: boolean;996    loaded?: number;997    total?: number;998}999 1000interface PromiseRejectionEventInit extends EventInit {1001    promise: Promise<any>;1002    reason?: any;1003}1004 1005interface PushEventInit extends ExtendableEventInit {1006    data?: PushMessageDataInit | null;1007}1008 1009interface PushSubscriptionChangeEventInit extends ExtendableEventInit {1010    newSubscription?: PushSubscription;1011    oldSubscription?: PushSubscription;1012}1013 1014interface PushSubscriptionJSON {1015    endpoint?: string;1016    expirationTime?: EpochTimeStamp | null;1017    keys?: Record<string, string>;1018}1019 1020interface PushSubscriptionOptionsInit {1021    applicationServerKey?: BufferSource | string | null;1022    userVisibleOnly?: boolean;1023}1024 1025interface QueuingStrategy<T = any> {1026    highWaterMark?: number;1027    size?: QueuingStrategySize<T>;1028}1029 1030interface QueuingStrategyInit {1031    /**1032     * Creates a new ByteLengthQueuingStrategy with the provided high water mark.1033     *1034     * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.1035     */1036    highWaterMark: number;1037}1038 1039interface RTCEncodedAudioFrameMetadata extends RTCEncodedFrameMetadata {1040    sequenceNumber?: number;1041}1042 1043interface RTCEncodedFrameMetadata {1044    contributingSources?: number[];1045    mimeType?: string;1046    payloadType?: number;1047    rtpTimestamp?: number;1048    synchronizationSource?: number;1049}1050 1051interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {1052    dependencies?: number[];1053    frameId?: number;1054    height?: number;1055    spatialIndex?: number;1056    temporalIndex?: number;1057    timestamp?: number;1058    width?: number;1059}1060 1061interface ReadableStreamBYOBReaderReadOptions {1062    min?: number;1063}1064 1065interface ReadableStreamGetReaderOptions {1066    /**1067     * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.1068     *1069     * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.1070     */1071    mode?: ReadableStreamReaderMode;1072}1073 1074interface ReadableStreamIteratorOptions {1075    /**1076     * Asynchronously iterates over the chunks in the stream's internal queue.1077     *1078     * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.1079     *1080     * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.1081     */1082    preventCancel?: boolean;1083}1084 1085interface ReadableStreamReadDoneResult<T> {1086    done: true;1087    value: T | undefined;1088}1089 1090interface ReadableStreamReadValueResult<T> {1091    done: false;1092    value: T;1093}1094 1095interface ReadableWritablePair<R = any, W = any> {1096    readable: ReadableStream<R>;1097    /**1098     * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.1099     *1100     * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.1101     */1102    writable: WritableStream<W>;1103}1104 1105interface RegistrationOptions {1106    scope?: string;1107    type?: WorkerType;1108    updateViaCache?: ServiceWorkerUpdateViaCache;1109}1110 1111interface Report {1112    body?: ReportBody | null;1113    type?: string;1114    url?: string;1115}1116 1117interface ReportBody {1118}1119 1120interface ReportingObserverOptions {1121    buffered?: boolean;1122    types?: string[];1123}1124 1125interface RequestInit {1126    /** A BodyInit object or null to set request's body. */1127    body?: BodyInit | null;1128    /** A string indicating how the request will interact with the browser's cache to set request's cache. */1129    cache?: RequestCache;1130    /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */1131    credentials?: RequestCredentials;1132    /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */1133    headers?: HeadersInit;1134    /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */1135    integrity?: string;1136    /** A boolean to set request's keepalive. */1137    keepalive?: boolean;1138    /** A string to set request's method. */1139    method?: string;1140    /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */1141    mode?: RequestMode;1142    priority?: RequestPriority;1143    /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */1144    redirect?: RequestRedirect;1145    /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */1146    referrer?: string;1147    /** A referrer policy to set request's referrerPolicy. */1148    referrerPolicy?: ReferrerPolicy;1149    /** An AbortSignal to set request's signal. */1150    signal?: AbortSignal | null;1151    /** Can only be null. Used to disassociate request from any Window. */1152    window?: null;1153}1154 1155interface ResponseInit {1156    headers?: HeadersInit;1157    status?: number;1158    statusText?: string;1159}1160 1161interface RsaHashedImportParams extends Algorithm {1162    hash: HashAlgorithmIdentifier;1163}1164 1165interface RsaHashedKeyGenParams extends RsaKeyGenParams {1166    hash: HashAlgorithmIdentifier;1167}1168 1169interface RsaKeyGenParams extends Algorithm {1170    modulusLength: number;1171    publicExponent: BigInteger;1172}1173 1174interface RsaOaepParams extends Algorithm {1175    label?: BufferSource;1176}1177 1178interface RsaOtherPrimesInfo {1179    d?: string;1180    r?: string;1181    t?: string;1182}1183 1184interface RsaPssParams extends Algorithm {1185    saltLength: number;1186}1187 1188interface SchedulerPostTaskOptions {1189    delay?: number;1190    priority?: TaskPriority;1191    signal?: AbortSignal;1192}1193 1194interface SecurityPolicyViolationEventInit extends EventInit {1195    blockedURI?: string;1196    columnNumber?: number;1197    disposition?: SecurityPolicyViolationEventDisposition;1198    documentURI?: string;1199    effectiveDirective?: string;1200    lineNumber?: number;

Showing the first 1,200 of 15607 lines. Download the file for the rest.