import React from 'react'; import { UniversalSystemProps } from '../utils/universal'; type UnknownProps = Record; export interface FactoryPayload { props: any & UniversalSystemProps; ref: any; staticComponents?: Record; } export interface ComponentWithProps { withProps: >(fixedProps: T) => any; } export interface PlatformBlocksComponent extends React.ForwardRefExoticComponent & React.RefAttributes>, ComponentWithProps { extend: any; displayName?: string; } /** * Factory function for creating PlatformBlocks components */ export interface FactoryOptions { /** * Optional display name applied to the resulting component. If omitted, React will infer the name. */ displayName?: string; /** * Enable or disable memoization. Defaults to `true`. */ memo?: boolean; /** * Optional custom comparison used when memoization is enabled. */ arePropsEqual?: (prevProps: Readonly, nextProps: Readonly) => boolean; } export declare function factory(ui: React.ForwardRefRenderFunction, options?: FactoryOptions): PlatformBlocksComponent; export type Factory = Payload; export {};