import { type KeyboardEvent } from 'react'; import { type ProductHit, type ProductSearchFn } from './product-options'; import type { ProductResult, ProductVariant } from './product-search'; export type LineProductSearch = ProductSearchFn; /** @deprecated Alias de {@link ProductHit}. */ export type LineProductHit = ProductHit; export interface LineProductCellProps { search: LineProductSearch; /** Texto de la celda (la descripción del renglón, o el borrador del renglón vacío). */ text: string; onTextChange: (text: string) => void; onPick: (product: ProductResult, variant?: ProductVariant) => void; /** * Teclas que el buscador no consume (lista cerrada, Enter sin * coincidencias…): el grid aplica sus comandos (Enter agrega, Supr en * celda vacía borra…). */ onKeyDownClosed?: (e: KeyboardEvent) => void; warehouseId?: string; currency?: string; placeholder?: string; ariaLabel: string; disabled?: boolean; invalid?: boolean; className?: string; /** Atributos de datos para que el grid ubique la celda (foco por teclado). */ dataCell?: string; /** Alta del producto desde la celda, prellenada con lo buscado. */ onCreate?: (query: string) => void; /** Nombre del modelo para «Crear …» (default «producto»). */ entityLabel?: string; /** Detalle de qué se puede buscar: tooltip del buscador y estado sin coincidencias. */ hint?: string; } export declare const LineProductCell: import("react").ForwardRefExoticComponent>; //# sourceMappingURL=line-product-cell.d.ts.map