2021-01-28 15:37:21 -05:00
|
|
|
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true" />
|
|
|
|
/// <reference lib="esnext" />
|
|
|
|
|
|
|
|
declare namespace globalThis {
|
2021-04-14 16:49:16 -04:00
|
|
|
declare var TextEncoder: typeof TextEncoder;
|
|
|
|
declare var TextDecoder: typeof TextDecoder;
|
|
|
|
|
2021-01-28 15:37:21 -05:00
|
|
|
declare namespace __bootstrap {
|
2021-04-08 09:05:08 -04:00
|
|
|
declare var infra: {
|
|
|
|
collectSequenceOfCodepoints(
|
|
|
|
input: string,
|
|
|
|
position: number,
|
|
|
|
condition: (char: string) => boolean,
|
|
|
|
): {
|
|
|
|
result: string;
|
|
|
|
position: number;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
declare var mimesniff: {
|
|
|
|
parseMimeType(input: string): {
|
|
|
|
type: string;
|
|
|
|
subtype: string;
|
|
|
|
parameters: Map<string, string>;
|
|
|
|
} | null;
|
|
|
|
};
|
|
|
|
|
2021-03-01 05:31:13 -05:00
|
|
|
declare var eventTarget: {
|
|
|
|
EventTarget: typeof EventTarget;
|
|
|
|
};
|
|
|
|
|
2021-01-28 15:37:21 -05:00
|
|
|
declare var location: {
|
|
|
|
getLocationHref(): string | undefined;
|
|
|
|
};
|
2021-04-06 06:55:05 -04:00
|
|
|
|
|
|
|
declare var base64: {
|
|
|
|
byteLength(b64: string): number;
|
|
|
|
toByteArray(b64: string): Uint8Array;
|
|
|
|
fromByteArray(uint8: Uint8Array): string;
|
|
|
|
};
|
2021-01-28 15:37:21 -05:00
|
|
|
}
|
|
|
|
}
|