export type position = 'down' | 'up'; /** * @description 布局管理器, 放入其中的元素将会自动布局 */ declare class LayoutManager { protected position: position; protected appList: Array; constructor(position: position); /** * @description 在尾部添加一个元素 * @param el */ push(el: HTMLElement): void; /** * @description 删除一个元素 * @param el */ delete(el: HTMLElement): void; /** * @description 下一个元素的位置 */ nextPos(): number; getEl(index: number): HTMLElement | undefined; getIndexOf(el: HTMLElement): number; /** * @description 更新元素位置 * @protected */ protected update(): void; protected _layoutUp(): void; protected _layoutDown(): void; } export { LayoutManager };