import type { PickerBaseProps } from './picker-base'; /** * Return value of {@link usePicker}. */ export interface UsePickerResult { /** DOM `id` attribute the picker will mount into. */ containerId: string; } /** * Drive a Filestack picker through its lifecycle. * * Instantiates `filestack.Filestack(apikey, clientOptions).picker(...)` inside * a `useEffect`, opens it, and closes it on unmount. Stable references are * derived for `pickerOptions` / `clientOptions` so callers can pass new-but-equal * object literals on every render without re-creating the picker. */ declare const usePicker: ({ apikey, pickerOptions, clientOptions, onSuccess, onUploadDone, onError }: PickerBaseProps) => UsePickerResult; export default usePicker; //# sourceMappingURL=use-picker.d.ts.map