@donverduyn/react-runtime
Version:
effect-ts react integration
29 lines (28 loc) • 1.66 kB
TypeScript
import { DRYRUN_ID_PROP, PROVIDERS_PROP, type ProviderEntry, COMPONENT_PROP, ID_PROP, PROPS_PROP, type IdProp, type ResolvedProviderEntry, type ScopeId } from '@/types';
export declare const getStaticProviderList: <C extends React.FC<any>, R, P = Partial<IdProp> & React.ComponentProps<C>>(component: C & {
[PROVIDERS_PROP]?: ProviderEntry<R, C, P>[];
}, providers?: ProviderEntry<R, C, P>[]) => ResolvedProviderEntry<R, C, P>[];
export declare const getStaticComponent: <C extends React.FC<any>>(component: C & {
[COMPONENT_PROP]?: React.FC<any>;
}) => import("react").FC<any> | undefined;
export declare const getStaticProps: <C extends React.FC<any>>(component: C & {
[PROPS_PROP]?: Record<string, any>;
}) => Record<string, any> | undefined;
export declare const getStaticDeclarationId: <C extends React.FC<any>>(component: C & {
[ID_PROP]?: string;
}) => string | undefined;
export declare const hoistDeclarationId: <C extends React.FC<any>>(Wrapper: C & {
[ID_PROP]?: string;
}, id: string) => void;
export declare const getStaticDryRunId: <C extends React.FC<any>>(component: C & {
[DRYRUN_ID_PROP]?: ScopeId | null;
}) => ScopeId | null;
export declare const hoistDryRunId: <C extends React.FC<any>>(Wrapper: C & {
[DRYRUN_ID_PROP]?: ScopeId | null;
}, id: ScopeId | null) => void;
export declare const hoistOriginalComponent: <C extends React.FC<any>, C1 extends React.FC<any>>(Wrapper: C & {
[COMPONENT_PROP]?: C1;
}, target: C1) => void;
export declare const hoistProviderList: <C extends React.FC<any>, R>(Wrapper: C & {
[PROVIDERS_PROP]?: ProviderEntry<R, C>[];
}, entries: ProviderEntry<R, C>[]) => void;