import { FinalizePackageTargetsHookFunction, HookFunction } from './types.js'; export declare function runHooks(hooks: HookFunction[] | undefined, opts: Parameters[0]): Promise; export declare function runHooks(hooks: FinalizePackageTargetsHookFunction[] | undefined, opts: Parameters[0]): Promise; /** * By default, the functions are called in parallel (via * [`Promise.all`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all)). * If you need the functions called serially, you can use the `serialHooks` utility function. * * The return value can be passed directly to hook options (e.g., `afterCopy`, `afterExtract`). */ export declare function serialHooks(hooks: HookFunction[]): [HookFunction]; export declare function serialHooks(hooks: FinalizePackageTargetsHookFunction[]): [FinalizePackageTargetsHookFunction];