type Cancelable = { readonly cancel: () => void; }; export declare const noop: () => void; export declare const assertExists: (value: T | undefined | null, what: string) => T; export declare const uniqueID: () => string; export declare const stringifyError: (err: unknown) => string; type MapLike = { readonly get: (key: Key) => Value | undefined; readonly set: (key: Key, value: Value) => unknown; }; type GetOrSetOptions = { readonly map: MapLike; readonly key: Key; readonly create: () => Value; }; export declare const getOrSet: ({ map, key, create }: GetOrSetOptions) => Value; export declare const safeInterval: (callback: () => void, time: number) => Cancelable; export declare const addEventListener: (target: EventTarget, event: string, handler: (event: Event) => void) => Cancelable; export {}; //# sourceMappingURL=helpers.d.ts.map