import { CSSProperties, ReactNode, default as React } from 'react'; import { ReactSlot } from './react.helperTypes'; export declare function $flag(value?: boolean): true | undefined; export declare function $isChecked(value: any): true | undefined; /** Returns the image source as-is (Blue Room CDN functionality removed in v0.8.0) */ export declare function transformImageSrc(src?: string): string | undefined; export type BaseProps = { id?: string; 'z-theme'?: 'dark' | 'light'; className?: string; slot?: string; 'custom-str'?: string; custom?: Record; style?: CSSProperties; 'data-zds'?: 'react'; }; export declare function baseProps(name: string, props: BaseProps, extraStyle?: CSSProperties): BaseProps; type ExtractSubComponents = keyof { [K in keyof T]: T[K] extends React.FC ? K : never; }; export declare function getUniqueSubComponents>(reactElement: T, { children }: { children?: ReactSlot; }): { [K in ExtractSubComponents]?: ReactNode; }; export declare function getSubComponents>(reactElement: T, { children }: { children?: ReactSlot; }): { [K in ExtractSubComponents]?: ReactNode[]; }; export declare function filterSubComponents({ children }: { children?: ReactSlot; }, tag: `React${string}`): string | React.JSX.Element | (string | React.JSX.Element)[] | undefined; export {};