/** * Lets an app inside a Teams iframe relay the mouse back (X1) / forward (X2) * buttons to the host so they drive Teams history navigation. * * @module */ /** * The direction of a relayed history-navigation intent. */ export type NavigationDirection = 'back' | 'forward'; /** * Enable the capability so the mouse back (X1) / forward (X2) buttons pressed * inside this iframe drive Teams history navigation in the host. * * @throws Error if {@link app.initialize} has not successfully completed or the * host does not support the mouseRelay capability. */ export declare function enableMouseRelayCapability(): Promise; /** * Disable the mouse relay capability, detaching its listeners so the mouse * back (X1) / forward (X2) buttons no longer drive Teams history navigation. * * @throws Error if {@link app.initialize} has not successfully completed or the * host does not support the mouseRelay capability. */ export declare function disableMouseRelayCapability(): void; /** * Checks if the mouseRelay capability is supported by the host. * @returns boolean to represent whether the mouseRelay capability is supported. * * @throws Error if {@link app.initialize} has not successfully completed. */ export declare function isSupported(): boolean;