import { useContext } from 'react';
import { InputContext } from "./InputContext.js";
/**
 * Returns attachment context (files, header chips, send helpers).
 * Must be used only under `InputContextProvider`.
 */
export function useInputContext() {
    const ctx = useContext(InputContext);
    if (!ctx) {
        throw new Error('useInputContext must be used within InputContextProvider');
    }
    return ctx;
}
//# sourceMappingURL=useInputContext.js.map
