UNPKG

627 BTypeScriptView Raw
1/**
2 * Removed props:
3 * - childrenProps
4 */
5import React from 'react';
6import type { AlignType, AlignResult, TargetType } from './interface';
7declare type OnAlign = (source: HTMLElement, result: AlignResult) => void;
8export 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}
17export interface RefAlign {
18 forceAlign: () => void;
19}
20declare const RcAlign: React.ForwardRefExoticComponent<AlignProps & React.RefAttributes<RefAlign>>;
21export default RcAlign;