export declare const unauthorizedEventName = "unauthorized"; export declare function dispatchUnauthorizedEvent(): void; /** * Registers a callback that will be invoked whenever API returns an Unauthorized error. * * Returns a function that deregisters the callback. */ export declare function subscribeToUnauthorizedEvents(callback: () => void): () => void;