import type { Collection, MediaField, MediaLibrarInsertOptions, MediaPath } from '@staticcms/core/interface';
import type { MouseEvent } from 'react';
export default function useMediaInsert<T extends string | string[], F extends MediaField>(value: MediaPath<T>, options: {
    collection: Collection<F>;
    field: F;
    controlID?: string;
    forImage?: boolean;
    forFolder?: boolean;
    insertOptions?: MediaLibrarInsertOptions;
}, callback: (newValue: MediaPath<T>) => void): (e?: MouseEvent) => void;
