import type { ScriptCallback } from "./utils/index.ts"; /** * Given the calling module's import.meta object, runs the callback if that module is the entry script. * * ```ts * runIfScript(import.meta, async () => {...}) * ``` * * The caller's meta is required: `import.meta.main` is per-module, so checking our own would always be false. This is * useful for conditionally running scripts without too much boilerplate. * * @internal */ export declare function runIfScript(meta: ImportMeta, scriptCallback: ScriptCallback): Promise; //# sourceMappingURL=index.d.ts.map