/** * * Copyright 2020-2026 Splunk Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ /** * BrowserInstanceService is responsible for generating and storing a unique ID for the tab. * THe ID is stored in the session storage, so stays the same even after page reload * as long as the tab stays on the same domain. * This ID will be the same for all frames/context in the tab as long as they are on the same domain. * Currently, this is simplified version which has this limitation: * - It does not cover the case when tab is duplicated - * browsers copy storage when duplicating tabs so the ID will be the same * To cover this case we need to implement a communication between tabs which requires asynchronous initialization. * This is not implemented yet as requires bigger refactoring. */ export declare class BrowserInstanceService { static _id: string | undefined | null; static get id(): string | undefined; }