import { HTMLAttributes } from 'preact/compat';
import { Container, SlotProps } from '@dropins/tools/types/elsie/src/lib';
import { ImageProps } from '@dropins/tools/types/elsie/src/components';
import { Scope, SearchVariables } from '../../data/models';
import { Product } from '../../data/models/product';
type SlotDefaultContext = {
product: Product;
variables: SearchVariables | null;
};
export interface SearchResultsProps extends HTMLAttributes {
routeProduct?: (product: Product) => string;
scope?: Scope;
imageWidth?: number;
imageHeight?: number;
skeletonCount?: number;
onSearchResult?: (payload: Product[]) => void;
slots?: {
ProductActions?: SlotProps;
ProductPrice?: SlotProps;
ProductName?: SlotProps;
ProductImage?: SlotProps;
NoResults?: SlotProps<{
error: string | null;
variables: SearchVariables | null;
}>;
Header?: SlotProps<{
products: Product[];
variables: SearchVariables | null;
}>;
Footer?: SlotProps<{
products: Product[];
variables: SearchVariables | null;
}>;
};
}
export declare const SearchResults: Container;
export {};
//# sourceMappingURL=SearchResults.d.ts.map