import type { ReactNode } from 'react'; import type { PickerBaseProps } from './picker/picker-base'; /** * Value exposed on {@link FilestackContext} — the same shape as * {@link PickerBaseProps} (apikey + picker/client options + callbacks). */ export type FilestackContextValue = PickerBaseProps; /** * Props accepted by {@link FilestackProvider}. */ export interface FilestackProviderProps extends PickerBaseProps { /** React subtree that may read picker defaults from this provider. */ children?: ReactNode; } export declare const FilestackContext: import("react").Context; /** * Supplies default props to descendant picker components via React context. * * Picker components call {@link useResolvedPickerProps} to merge their own * props with the values declared on the nearest provider — scalars (apikey, * callbacks) prefer the component's own prop when set, while `pickerOptions` * and `clientOptions` are shallow-merged with context as the base. */ declare const FilestackProvider: ({ apikey, pickerOptions, clientOptions, onSuccess, onUploadDone, onError, children }: FilestackProviderProps) => import("react/jsx-runtime").JSX.Element; /** * Merge component props with {@link FilestackContext} defaults. Component * props win for scalars; option objects are shallow-merged with context first. */ export declare const useResolvedPickerProps: (props: PickerBaseProps) => Required> & Omit; export default FilestackProvider; //# sourceMappingURL=filestack-provider.d.ts.map