import { ScopeLayer } from './interfaces';
* API compatibility version of this shim.
*
* WARNING: This number should only be incresed when the global interface
* changes a and new methods are introduced.
*/
export declare const API_VERSION = 1;
* Internal class used to make sure we always have the latest internal functions
* working in case we have a version conflict.
*/
export declare class Shim {
readonly version: number;
constructor(version?: number);
* Checks if this shim's version is older than the given version.
*
* @param version A version number to compare to.
* @return True if the given version is newer; otherwise false.
*/
isOlderThan(version: number): boolean;
* Creates a new 'local' ScopeLayer with the given client.
* @param client Optional client, defaults to the current client.
*/
pushScope(client?: any): void;
popScope(): boolean;
* Convenience method for pushScope and popScope.
*
* @param arg1 Either the client or callback.
* @param arg2 Either the client or callback.
*/
withScope(arg1: (() => void) | any, arg2?: (() => void) | any): void;
clearScope(): void;
getCurrentClient(): any | undefined;
getStack(): ScopeLayer[];
getStackTop(): ScopeLayer;
private getGlobalStackTop();
private getDomainStackTop();
* Obtains a new scope instance from the client.
*
* @param client An SDK client that implements `getInitialScope`.
* @returns The scope instance or an empty object on error.
*/
getInitialScope(client?: any): any;
}