/// /// // Handwritten contracts for the web helpers consumed by TS-authored extensions. type PromiseRejectionEvent = import("./src/events.js").PromiseRejectionEvent; declare function addEventListener( type: "unhandledrejection" | "rejectionhandled", listener: (event: PromiseRejectionEvent) => void, ): void; declare function removeEventListener( type: "unhandledrejection" | "rejectionhandled", listener: (event: PromiseRejectionEvent) => void, ): void; declare module "ext:web/idl.js" { // The array has no prototype; callers must use indexing or captured intrinsics. export const array: typeof import("./src/idl.js").array; export const byteString: typeof import("./src/idl.js").byteString; export const dictionary: typeof import("./src/idl.js").dictionary; export const isObject: typeof import("./src/idl.js").isObject; export const missing: typeof import("./src/idl.js").missing; export const required: typeof import("./src/idl.js").required; export const state: typeof import("./src/idl.js").state; export const string: typeof import("./src/idl.js").string; export const usv: typeof import("./src/idl.js").usv; } declare module "ext:web/interface.js" { export const installInterface: typeof import("./src/interface.js").installInterface; export const installGlobal: typeof import("./src/interface.js").installGlobal; } declare module "ext:web/events.js" { export type EventListener = import("./src/events.js").EventListener; export const abort: typeof import("./src/events.js").abort; export type AbortController = import("./src/events.js").AbortController; export const AbortController: typeof import("./src/events.js").AbortController; export type AbortSignal = import("./src/events.js").AbortSignal; export const AbortSignal: typeof import("./src/events.js").AbortSignal; export const addAbort: typeof import("./src/events.js").addAbort; export const addListener: typeof import("./src/events.js").addListener; export const createException: typeof import("./src/events.js").createException; export type CustomEvent = import("./src/events.js").CustomEvent; export const CustomEvent: typeof import("./src/events.js").CustomEvent; export const dataCloneError: typeof import("./src/events.js").dataCloneError; export const dispatch: typeof import("./src/events.js").dispatch; export type DOMException = import("./src/events.js").DOMException; export const DOMException: typeof import("./src/events.js").DOMException; export type ErrorEvent = import("./src/events.js").ErrorEvent; export const ErrorEvent: typeof import("./src/events.js").ErrorEvent; export type Event = import("./src/events.js").Event; export const Event: typeof import("./src/events.js").Event; export type EventTarget = import("./src/events.js").EventTarget; export const EventTarget: typeof import("./src/events.js").EventTarget; export const followSignal: typeof import("./src/events.js").followSignal; export const hasListener: typeof import("./src/events.js").hasListener; export const installGlobalEventTarget: typeof import("./src/events.js").installGlobalEventTarget; export const isDispatching: typeof import("./src/events.js").isDispatching; export const observeListeners: typeof import("./src/events.js").observeListeners; export const preventDefault: typeof import("./src/events.js").preventDefault; export type PromiseRejectionEvent = import("./src/events.js").PromiseRejectionEvent; export const PromiseRejectionEvent: typeof import("./src/events.js").PromiseRejectionEvent; export const removeListener: typeof import("./src/events.js").removeListener; export const reportErrorValue: typeof import("./src/events.js").reportErrorValue; export const reportException: typeof import("./src/events.js").reportException; export const reportRejectionHandled: typeof import("./src/events.js").reportRejectionHandled; export const reportUnhandledRejection: typeof import("./src/events.js").reportUnhandledRejection; export const secret: typeof import("./src/events.js").secret; export const signals: typeof import("./src/events.js").signals; } declare module "ext:web/navigator.js" { export const userAgent: typeof import("./src/navigator.js").userAgent; } declare module "ext:web/messaging.js" { export const adoptPort: typeof import("./src/messaging.js").adoptPort; export const dispatchMessage: typeof import("./src/messaging.js").dispatchMessage; export type MessageChannel = import("./src/messaging.js").MessageChannel; export const MessageChannel: typeof import("./src/messaging.js").MessageChannel; export const messageData: typeof import("./src/messaging.js").messageData; export type MessageEvent = import("./src/messaging.js").MessageEvent; export const MessageEvent: typeof import("./src/messaging.js").MessageEvent; export type MessagePort = import("./src/messaging.js").MessagePort; export const MessagePort: typeof import("./src/messaging.js").MessagePort; export const messagePorts: typeof import("./src/messaging.js").messagePorts; export const isMessagePort: typeof import("./src/messaging.js").isMessagePort; export const referencePort: typeof import("./src/messaging.js").referencePort; export const setPortCloseHandler: typeof import("./src/messaging.js").setPortCloseHandler; export const startPort: typeof import("./src/messaging.js").startPort; export const transferList: typeof import("./src/messaging.js").transferList; } declare module "ext:web/serialization.js" { export const registerSerializable: typeof import("./src/serialization.js").registerSerializable; export const registerWire: typeof import("./src/serialization.js").registerWire; export const registerUncloneable: typeof import("./src/serialization.js").registerUncloneable; export const registerTransferable: typeof import("./src/serialization.js").registerTransferable; export const registerMarkedTransferable: typeof import("./src/serialization.js").registerMarkedTransferable; export const markUncloneable: typeof import("./src/serialization.js").markUncloneable; export const classify: typeof import("./src/serialization.js").classify; export const decodeWire: typeof import("./src/serialization.js").decodeWire; export const setStructuredClone: typeof import("./src/serialization.js").setStructuredClone; export const cloneValue: typeof import("./src/serialization.js").cloneValue; export const transferCallbacks: typeof import("./src/serialization.js").transferCallbacks; }