UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

16 lines (15 loc) 1.14 kB
import { type ReactNode } from "react"; import type { DropzoneRenderProps, FileState } from "./Dropzone"; export declare const DropzoneInner: ({ wrapperRef, inputProps, showPlaceholder, actions: { uploadFile, deleteFile, openFileInput }, dropzoneProps: { placeholder, flow, maxItems, allowedMimeTypes }, onClick, footer, }: DropzoneRenderProps) => import("react/jsx-runtime").JSX.Element; type ReducedFile = Omit<FileState, "state" | "progress">; export type PreviewComponentProps = { file: ReducedFile; fallback?: (props: { file: ReducedFile; }) => ReactNode; className?: string; onClick?: () => void; onTouchStart?: () => void; }; export declare const PreviewWrapperMemoized: import("react").MemoExoticComponent<({ file, fallback, ...props }: PreviewComponentProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined>; export {};