import * as react_jsx_runtime from 'react/jsx-runtime'; import * as react from 'react'; import { ContextType, PropsWithChildren } from 'react'; import { O as OmitKeyof } from './PropsWithoutChildren-B-UcudRB.js'; import { SuspenseProps } from './Suspense.js'; import { DelayProps } from './Delay.js'; declare const DelayDefaultPropsContext: react.Context> & { displayName: string; }; declare const SuspenseDefaultPropsContext: react.Context> & { displayName: string; }; /** * A class for configuring default props for Suspensive components. * * @example * ```tsx * const defaultProps = new DefaultProps({ * Delay: { * ms: 1200, * fallback: Loading additional content... * }, * Suspense: { * fallback: Fetching data..., * clientOnly: false, * }, * }) * ``` */ declare class DefaultProps { Suspense?: ContextType; Delay?: ContextType; constructor(defaultProps?: DefaultProps); } interface DefaultPropsProviderProps extends PropsWithChildren { defaultProps: DefaultProps; } /** * A provider component that controls the default settings of Suspensive components. * Use this to configure default props for Suspense, Delay, and other Suspensive components globally. * * @example * ```tsx * const defaultProps = new DefaultProps({ * Delay: { * ms: 1000, * fallback: * }, * Suspense: { * fallback: , * clientOnly: false, * }, * }) * * function App() { * return ( * * * * ) * } * ``` * * @see {@link https://suspensive.org/docs/react/DefaultPropsProvider Suspensive Docs} */ declare const DefaultPropsProvider: ({ defaultProps, children }: DefaultPropsProviderProps) => react_jsx_runtime.JSX.Element; export { DefaultProps, DefaultPropsProvider };