ohctechv3/.svn/pristine/e6/e60f2e781ff811810445c6cb2b00f2c0b42244ac.svn-base
2024-10-28 15:03:36 +05:30

15 lines
903 B
Plaintext

import { type Options } from "./index";
export interface HookOptions {
matcher?: (code: string) => boolean;
ignoreNodeModules?: boolean;
}
export type RevertFunction = () => void;
export declare function addHook(extension: string, sucraseOptions: Options, hookOptions?: HookOptions): RevertFunction;
export declare function registerJS(hookOptions?: HookOptions): RevertFunction;
export declare function registerJSX(hookOptions?: HookOptions): RevertFunction;
export declare function registerTS(hookOptions?: HookOptions): RevertFunction;
export declare function registerTSX(hookOptions?: HookOptions): RevertFunction;
export declare function registerTSLegacyModuleInterop(hookOptions?: HookOptions): RevertFunction;
export declare function registerTSXLegacyModuleInterop(hookOptions?: HookOptions): RevertFunction;
export declare function registerAll(hookOptions?: HookOptions): RevertFunction;