UNPKG

histoire

Version:

A fast story book powered by Vite

12 lines • 780 B
/** Finds an existing runtime named import, including its authored alias. */ export declare function factoryImports(code: string, id: string, name: string): string[]; /** Finds the first reusable runtime factory alias. */ export declare function factoryImport(code: string, id: string, name: string): string | undefined; /** Adds a collision-free named import without reprinting authored statements. */ export declare function ensureFactoryImport(code: string, id: string, name: string): { code: string; /** Local call identifier. */ local: string; }; /** Removes only an unused factory specifier, retaining other exports and uses. */ export declare function removeUnusedFactoryImport(code: string, id: string, local: string): string; //# sourceMappingURL=imports.d.ts.map