import type { PropsWithChildren } from "react"; import React from "react"; import type { AsyncSupportProps, ExtendablePromise } from "./types"; /** * Props for IfAsync */ interface Props extends AsyncSupportProps, PropsWithChildren<{ promise: ExtendablePromise; }> { } /** * Is included in the `` component, rendered when the condition prop of `` is a Promise; * Renders the Fallback component, if contains any, until provided promise is fulfilled; * Renders `` when promise is fulfilled, `` when rejected */ declare function IfAsyncFn({ promise, keepAlive, children }: Props): JSX.Element | null; declare const IfAsync: React.MemoExoticComponent; export { IfAsync }; //# sourceMappingURL=IfAsync.d.ts.map