/** * Requests a random lock that will be released once the optional signal is aborted (or, if no signal is given, when the * tab is closed). * * This allows sending the name of the lock to another context (e.g. a shared worker), which will also attempt to * acquire it. Since the lock is returned when the tab is closed, this allows the shared worker to free resources * assocatiated with this tab. * * We take hold of this lock as soon-as-possible in order to cater for potentially closed tabs. */ export declare function generateTabCloseSignal(abort?: AbortSignal): Promise;