1 | import * as React from 'react';
|
2 | import { TransitionComponent } from '@restart/ui/types';
|
3 | export type Omit<T, U> = Pick<T, Exclude<keyof T, keyof U>>;
|
4 | export type ReplaceProps<Inner extends React.ElementType, P> = Omit<React.ComponentPropsWithRef<Inner>, P> & P;
|
5 | export interface BsPrefixOnlyProps {
|
6 | bsPrefix?: string;
|
7 | }
|
8 | export interface AsProp<As extends React.ElementType = React.ElementType> {
|
9 | as?: As;
|
10 | }
|
11 | export interface BsPrefixProps<As extends React.ElementType = React.ElementType> extends BsPrefixOnlyProps, AsProp<As> {
|
12 | }
|
13 | export interface BsPrefixRefForwardingComponent<TInitial extends React.ElementType, P = unknown> {
|
14 | <As extends React.ElementType = TInitial>(props: React.PropsWithChildren<ReplaceProps<As, BsPrefixProps<As> & P>>, context?: any): React.ReactElement | null;
|
15 | propTypes?: any;
|
16 | contextTypes?: any;
|
17 | defaultProps?: Partial<P>;
|
18 | displayName?: string;
|
19 | }
|
20 | export declare class BsPrefixComponent<As extends React.ElementType, P = unknown> extends React.Component<ReplaceProps<As, BsPrefixProps<As> & P>> {
|
21 | }
|
22 | export type BsPrefixComponentClass<As extends React.ElementType, P = unknown> = React.ComponentClass<ReplaceProps<As, BsPrefixProps<As> & P>>;
|
23 | export type TransitionType = boolean | TransitionComponent;
|
24 | export declare function getOverlayDirection(placement: string, isRTL?: boolean): string;
|