UNPKG

489 BTypeScriptView Raw
1/**
2 * Gets the rtl state of the page (returns true if in rtl.)
3 */
4export declare function getRTL(theme?: {
5 rtl?: boolean;
6}): boolean;
7/**
8 * Sets the rtl state of the page (by adjusting the dir attribute of the html element.)
9 */
10export declare function setRTL(isRTL: boolean, persistSetting?: boolean): void;
11/**
12 * Returns the given key, but flips right/left arrows if necessary.
13 */
14export declare function getRTLSafeKeyCode(key: number, theme?: {
15 rtl?: boolean;
16}): number;