## API Report File for "metro-core"

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

```ts

import type { Socket } from 'node:net';
import type { Writable } from 'node:stream';

type ActionLogEntryData = {
    action_name: string;
    log_entry_label?: string | undefined;
};

type ActionStartLogEntry = {
    action_name?: string | undefined;
    action_phase?: string | undefined;
    log_entry_label: string;
    log_session?: string | undefined;
    start_timestamp?: [number, number] | undefined;
};

export class AmbiguousModuleResolutionError extends Error {
    constructor(fromModulePath: string, hasteError: DuplicateHasteCandidatesError);
    fromModulePath: string;
    hasteError: DuplicateHasteCandidatesError;
}

function createActionEndEntry(logEntry: ActionStartLogEntry, error?: null | undefined | Error): LogEntry;

function createActionStartEntry(data: ActionLogEntryData | string): LogEntry;

function createEntry(data: LogEntry | string): LogEntry;

function log(logEntry: LogEntry): LogEntry;

type LogEntry = {
    action_name?: string | undefined;
    action_phase?: string | undefined;
    action_result?: string | undefined;
    duration_ms?: number | undefined;
    entry_point?: string | undefined;
    file_name?: string | undefined;
    log_entry_label: string;
    log_session?: string | undefined;
    start_timestamp?: [number, number] | undefined;
    outdated_modules?: number | undefined;
    bundle_size?: number | undefined;
    bundle_options?: BundleOptions | undefined;
    bundle_hash?: string | undefined;
    build_id?: string | undefined;
    error_message?: string | undefined;
    error_stack?: string | undefined;
};

declare namespace Logger {
    export {
        ActionLogEntryData,
        ActionStartLogEntry,
        LogEntry,
        on,
        createEntry,
        createActionStartEntry,
        createActionEndEntry,
        log
    }
}
export { Logger }

function on(event: string, handler: (logEntry: LogEntry) => void): void;

export class PackageResolutionError extends Error {
    constructor(opts: {readonly originModulePath: string; readonly packageError: InvalidPackageError; readonly targetModuleName: string});
    originModulePath: string;
    packageError: InvalidPackageError;
    targetModuleName: string;
}

export class Terminal {
    constructor(stream: UnderlyingStream, opts?: {ttyPrint?: boolean | undefined});
    flush(): Promise<void>;
    log(format: string, ...args: Array<unknown>): void;
    persistStatus(): void;
    status(format: string, ...args: Array<unknown>): string;
    waitForUpdates(): Promise<void>;
}

```
