export declare const defaultTagGenerator: TagGenerator; /** * A function that gets called for each pack and generates a script tag for the pack. * @param packagePath - The path to the pack relative to the base. * @example * (packagePath) => `` */ export declare type TagGenerator = (packagePath: string) => string; export interface Options { /** * The directory where your public javascript files are located. * @example * { base: 'public/js' } */ base?: string; /** * Gulp-webrequire will cache which files are in which packs. * To disable this behaviour you can set this option to false. * (default: true) * @example * { cache: process.env.NODE_ENV !== 'development' } */ cache?: boolean; /** * A custom function that gets the path to the file and its contents passed. * It returns a string containing the html script-tag for the given file. * @example * { tagGenerator: (path) => `` } */ tagGenerator?: TagGenerator; } /** * Generate script tags for all packs that are related to your entry point(s). * @param entryPoints - Entry points to your code relative to the base directory. (The file extension should be set.) * @param options - A function that generates script tags. */ export default function generateTags(entryPoint: string | string[], options?: Options): string; /** * Set options for the generateTags() method. * The options will be overloaded by the ones that you set in the generateTags() method. * @example * setup({ * base: 'public/js', * cache: process.env.NODE_ENV !== 'development' * }) */ export declare function setup(options: Options): void;