## API Report File for "metro-transform-worker"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts

export type CustomTransformOptions = {
    [key: string]: unknown;
};

export const getCacheKey: (config: JsTransformerConfig, opts?: Readonly<{projectRoot: string}>) => string;

export type getCacheKey = typeof getCacheKey;

export type JsOutput = Readonly<{
    data: Readonly<{
        code: string;
        lineCount: number;
        map: VlqMap;
        functionMap: null | undefined | FBSourceFunctionMap;
    }>;
    type: JSFileType;
}>;

export type JsTransformerConfig = Readonly<{
    assetPlugins: ReadonlyArray<string>;
    assetRegistryPath: string;
    asyncRequireModulePath: string;
    babelTransformerPath: string;
    dynamicDepsInPackages: DynamicRequiresBehavior;
    enableBabelRCLookup: boolean;
    enableBabelRuntime: boolean | string;
    globalPrefix: string;
    hermesParser: boolean;
    minifierConfig: MinifierConfig;
    minifierPath: string;
    optimizationSizeLimit: number;
    publicPath: string;
    allowOptionalDependencies: AllowOptionalDependencies;
    unstable_dependencyMapReservedName: null | undefined | string;
    unstable_disableModuleWrapping: boolean;
    unstable_disableNormalizePseudoGlobals: boolean;
    unstable_compactOutput: boolean;
    unstable_allowRequireContext: boolean;
    unstable_memoizeInlineRequires?: boolean | undefined;
    unstable_nonMemoizedInlineRequires?: ReadonlyArray<string> | undefined;
}>;

export type JsTransformOptions = Readonly<{
    customTransformOptions?: CustomTransformOptions | undefined;
    dev: boolean;
    experimentalImportSupport?: boolean | undefined;
    inlinePlatform: boolean;
    inlineRequires: boolean;
    minify: boolean;
    nonInlinedRequires?: ReadonlyArray<string> | undefined;
    platform: null | undefined | string;
    type: Type;
    unstable_memoizeInlineRequires?: boolean | undefined;
    unstable_nonMemoizedInlineRequires?: ReadonlyArray<string> | undefined;
    unstable_staticHermesOptimizedRequire?: boolean | undefined;
    unstable_transformProfile: TransformProfile;
}>;

export type Minifier = (opts: MinifierOptions) => MinifierResult | Promise<MinifierResult>;

export type MinifierOptions = {
    code: string;
    map: null | undefined | BasicSourceMap;
    filename: string;
    reserved: ReadonlyArray<string>;
    config: MinifierConfig;
};

export type MinifierResult = {code: string; map?: BasicSourceMap | undefined};

export const transform: (config: JsTransformerConfig, projectRoot: string, projectRelativePath: string, data: Buffer, options: JsTransformOptions) => Promise<TransformResponse>;

export type transform = typeof transform;

export type Type = 'script' | 'module' | 'asset';

```
