import { canUseFreshDirectScalarFormulaBinding } from './formula-initialization-hydrated-direct-scalar.js';
import { compiledFormulaRequiresWorkbookMetadataBinding } from './formula-initialization-predicates.js';
const MIN_INITIAL_FRESH_DIRECT_SCALAR_FAST_BINDINGS = 32;
export function canBindInitialFreshDirectScalarFormula(args) {
    return (!args.hadExistingFormulas &&
        args.refsLength >= MIN_INITIAL_FRESH_DIRECT_SCALAR_FAST_BINDINGS &&
        args.bindFreshDirectScalarFormulaRun !== undefined &&
        args.prepared.templateId !== undefined &&
        !compiledFormulaRequiresWorkbookMetadataBinding(args.prepared.compiled) &&
        canUseFreshDirectScalarFormulaBinding(args.prepared.compiled));
}
export function assertInitialFreshDirectScalarFormulaBindingMember(prepared) {
    if (prepared.templateId === undefined) {
        throw new Error('Expected initial fresh direct scalar formula template id');
    }
}
//# sourceMappingURL=formula-initialization-fresh-direct-scalar-binding.js.map