import { FactoryFunction } from '../../utils/factory.js'; import type { TypedFunction } from './typed.js'; /** * Options for the import function */ export interface ImportOptions { /** If true, existing functions will be overwritten. False by default. */ override?: boolean; /** If true, the function will not throw errors on duplicates or invalid types. False by default. */ silent?: boolean; /** If true, the functions will be wrapped in a wrapper function which converts data types. */ wrap?: boolean; } /** * The math namespace object that functions are imported into */ interface MathNamespace { [key: string]: unknown; expression: { transform: Record; mathWithTransform: Record; }; Unit?: { isValuelessUnit: (name: string) => boolean; }; emit: (event: string, name: string, resolver: () => unknown) => void; } /** * Create the `import` function for a math.js instance. * * The created function adds functions, values and factories to `math`. */ export declare function importFactory(typed: TypedFunction, _load: (factory: FactoryFunction) => unknown, math: MathNamespace, importedFactories: Record): (functions: unknown, options?: ImportOptions) => void; export {}; //# sourceMappingURL=import.d.ts.map