@hoover-institution/hubspot-lib
Version:
A toolkit for deep integration with HubSpot's Marketing Events API with a plugin-based architecture.
13 lines (10 loc) • 342 B
TypeScript
// types/hooks.d.ts
/**
* Defines named hooks and assigns each a unique bitmask (power of 2).
* Returns the updated hook map.
*/
export function defineHooks(names?: string[]): Record<string, number>;
/**
* Returns a snapshot of all currently defined hooks and their bit values.
*/
export function getHookMap(): Record<string, number>;