/**
* @file Alert
* @author fex
*/
///
import React from 'react';
import { ThemeProps } from 'amis-core';
import { LocaleProps } from 'amis-core';
import type { PlainObject } from 'amis-core';
export interface AlertProps extends ThemeProps, LocaleProps {
container?: any;
confirmText?: string;
cancelText?: string;
title?: string;
confirmBtnLevel?: string;
alertBtnLevel?: string;
isolate?: boolean;
children?: React.ReactElement;
closeOnEsc?: boolean;
size?: '' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
cancelBtnLevel?: string;
}
interface ConfirmOptions {
closeOnEsc?: AlertProps['closeOnEsc'];
size?: AlertProps['size'];
confirmBtnLevel?: AlertProps['confirmBtnLevel'];
cancelBtnLevel?: AlertProps['cancelBtnLevel'];
confirmText?: AlertProps['confirmText'];
cancelText?: AlertProps['cancelText'];
}
export interface AlertState {
show: boolean;
title?: string;
content: string | React.ReactNode;
confirm: boolean;
prompt?: boolean;
controls?: any;
value?: any;
confirmText?: string;
cancelText?: string;
closeOnEsc?: AlertProps['closeOnEsc'];
size?: AlertProps['size'];
confirmBtnLevel?: AlertProps['confirmBtnLevel'];
cancelBtnLevel?: AlertProps['cancelBtnLevel'];
}
export declare class Alert extends React.Component {
static instance: any;
static getInstance(): Promise;
_resolve: (value: any) => void;
_modal: any;
_body: any;
state: AlertState;
originInstance: Alert | null;
unmount: boolean;
constructor(props: AlertProps);
static defaultProps: {
confirmText: string;
cancelText: string;
title: string;
alertBtnLevel: string;
confirmBtnLevel: string;
cancelBtnLevel: string;
};
componentDidMount(): void;
componentDidUpdate(prevProps: AlertProps, prevState: AlertState): void;
componentWillUnmount(): void;
schemaSope: any;
scopeRef(schemaSope: any): void;
handleConfirm(): void;
handleCancel(): void;
close(confirmed: boolean): void;
alert(content: string, title?: string): void;
confirm(content: string | React.ReactNode, title?: string, optionsOrCofnrimText?: string | ConfirmOptions, cancelText?: string): Promise;
prompt(controls: any, defaultValue?: any, title?: string, confirmText?: string): Promise;
modalRef(ref: any): void;
handleFormSubmit(values: any): void;
render(): React.JSX.Element;
}
export type renderSchemaFn = (controls: Array, value: PlainObject, callback?: (values: PlainObject) => void, scopeRef?: (value: any) => void, theme?: string) => JSX.Element;
export declare function setRenderSchemaFn(fn: renderSchemaFn): void;
export declare const alert: (content: string, title?: string) => Promise;
export declare const confirm: (content: string | React.ReactNode, title?: string, optionsOrCofnrimText?: string | ConfirmOptions, cancelText?: string) => Promise;
export declare const prompt: (controls: any, defaultvalue?: any, title?: string, confirmText?: string) => Promise;
export declare const FinnalAlert: {
new (props: Omit, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType<{
new (props: Pick, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof Alert;
}>;
} & import("hoist-non-react-statics").NonReactStatics<{
new (props: Pick, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof Alert;
}, {}> & {
ComposedComponent: {
new (props: Pick, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "container" | "isolate" | "closeOnEsc" | "size"> & {
title?: string | undefined;
confirmText?: string | undefined;
cancelText?: string | undefined;
confirmBtnLevel?: string | undefined;
alertBtnLevel?: string | undefined;
cancelBtnLevel?: string | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof Alert;
};
};
export default FinnalAlert;