import { createAccessibilityObjectForRole } from './RoleObjectFactory'; import { ROLES } from './Roles'; /** * Setup accessibility support for a Stage. The AccessibilityTranslator instance will be * attached to the provided stage by adding an "accessibilityTranslator" member to the stage. * @param {!createjs.Stage} stage - CreateJS Stage to attach the translator * @param {!(HTMLElement|string)} parentElement - HTML Element or its id to which the DOM * translation will be added * @param {Function} onReady - An optional function to call when the module is mounted into the * parentElement */ declare function setupStage(stage: any, parentElement: any, onReady?: () => void): void; /** * Cleanup and unmount node that tracks accessibility support for a Stage. * @param {!createjs.Stage} stage - CreateJS Stage to cleanup */ declare function releaseStage(stage: any): void; /** * Handles the stage being resized so that the accessibility DOM translation stays under it with * the same dimensions * @param {!createjs.Stage} stage - stage that has been registered for accessibility support that * has been resized */ declare function resize(stage: any): void; /** * Takes either an array or a single object and creates the accessibility object for each with the * config that's passed * @param {Array | Object} configObjects Takes either an array or a single object * @returns {Object} returns accessibility object */ declare function register(configObjects: any): any; declare const AccessibilityModule: { createAccessibilityObjectForRole: typeof createAccessibilityObjectForRole; register: typeof register; resize: typeof resize; ROLES: typeof ROLES; setupStage: typeof setupStage; releaseStage: typeof releaseStage; }; export default AccessibilityModule;