import { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType, ReactElement } from 'react'; export type SearchResultsViewAllProps = { /** * Specify a different component to render the item, such as an anchor tag for links * * @default div */ as?: C; /** * Specify the variant of the View All item. By default, it is inferred from context: * 'group' when inside a Search.Results, 'global' when directly inside Search. */ variant?: 'group' | 'global'; } & // Intentionally not using Omit<..., 'as' | 'variant'> here — the conflict scenario ComponentPropsWithoutRef; interface SearchResultsViewAllComponent { (props: SearchResultsViewAllProps & { ref?: ComponentPropsWithRef['ref']; }): ReactElement | null; displayName?: string; } interface SearchResultsViewAllComponent { (props: SearchResultsViewAllProps & { ref?: React.ComponentPropsWithRef['ref']; }): React.ReactElement | null; displayName?: string; } export declare const ViewAll: SearchResultsViewAllComponent; export {};