@llamaindex/ui
Version:
A comprehensive UI component library built with React, TypeScript, and Tailwind CSS for LlamaIndex applications
50 lines (46 loc) • 1.33 kB
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
interface BoundingBox {
id: string;
x: number;
y: number;
width: number;
height: number;
confidence?: number;
label?: string;
color?: string;
}
interface PageData {
pageNumber: number;
imageUrl: string;
width: number;
height: number;
boundingBoxes: BoundingBox[];
}
interface FileData {
fileName: string;
pages: PageData[];
totalPages: number;
}
interface Highlight {
page: number;
x: number;
y: number;
width: number;
height: number;
}
interface FileToolbarProps {
fileName?: string | null;
onFullscreen?: () => void;
scale?: number;
onScaleChange?: (scale: number) => void;
onReset?: () => void;
onRemove?: () => void;
onDownload?: () => void;
currentPage?: number;
totalPages?: number;
onPageChange?: (page: number) => void;
className?: string;
isOverlay?: boolean;
}
declare const FileToolbar: ({ fileName, onFullscreen, scale, onScaleChange, onReset, onRemove, onDownload, currentPage, totalPages, onPageChange, className, isOverlay, }: FileToolbarProps) => react_jsx_runtime.JSX.Element;
export { type BoundingBox as B, FileToolbar as F, type Highlight as H, type PageData as P, type FileData as a, type FileToolbarProps as b };