UNPKG

390 BTypeScriptView Raw
1import { ExpoConfig, Hook, HookArguments, HookType } from '@expo/config';
2export declare type LoadedHook = Hook & {
3 _fn: (input: HookArguments) => any;
4};
5export declare function prepareHooks(hooks: ExpoConfig['hooks'], hookType: HookType, projectRoot: string): LoadedHook[];
6export declare function runHook(hook: LoadedHook, hookOptions: Omit<HookArguments, 'config'>): Promise<void>;