1 |
|
2 |
|
3 |
|
4 |
|
5 | import React from 'react';
|
6 | import type { AlignResult, AlignType, TargetType } from './interface';
|
7 | declare type OnAlign = (source: HTMLElement, result: AlignResult) => void;
|
8 | export interface AlignProps {
|
9 | align: AlignType;
|
10 | target: TargetType;
|
11 | onAlign?: OnAlign;
|
12 | monitorBufferTime?: number;
|
13 | monitorWindowResize?: boolean;
|
14 | disabled?: boolean;
|
15 | children: React.ReactElement;
|
16 | }
|
17 | export interface RefAlign {
|
18 | forceAlign: () => void;
|
19 | }
|
20 | declare const RcAlign: React.ForwardRefExoticComponent<AlignProps & React.RefAttributes<RefAlign>>;
|
21 | export default RcAlign;
|