import { HookConfig, BeforeSourceHookFunctionPayload, HookBuildConfig, SourceHookExecConfig } from './types'; /** * Configuration required when building/memoizing the handler wrapping the black box hook function. */ export interface BeforeSourceHookBuildConfig extends HookBuildConfig { beforeSource?: HookConfig[]; } /** * Configuration required when executing the hook handler. */ export interface BeforeSourceHookExecConfig extends SourceHookExecConfig { payload: BeforeSourceHookFunctionPayload; } /** * Gets the handler function for the `beforeSource` hook. Wraps the blackbox hook function with common logic/error handling. * @param fnBuildConfig Build configuration. */ declare const getBeforeSourceHookHandler: (fnBuildConfig: BeforeSourceHookBuildConfig) => (fnExecConfig: BeforeSourceHookExecConfig) => Promise; export default getBeforeSourceHookHandler;