#!/usr/bin/env node
import { type DevRunState } from './dev-state';
export interface ReplCliOptions {
    mode: 'existing' | 'new';
    pid?: number;
    url?: string;
    evalCode?: string;
    script: string;
    debug: boolean;
    tsconfig?: string;
    timeoutMs: number;
    help: boolean;
}
export interface ReplTarget {
    url: string;
    run?: DevRunState;
}
export interface ReplCliIo {
    stdout: NodeJS.WriteStream;
    stderr: NodeJS.WriteStream;
    stdin: NodeJS.ReadStream;
}
export declare function runReplCli(args?: string[], io?: ReplCliIo): Promise<number>;
export declare function parseReplCliArgs(args: readonly string[]): ReplCliOptions;
export declare function normalizeReplUrl(input: string): string;
export declare function resolveExistingReplTarget(projectDir: string, pid?: number, timeoutMs?: number): Promise<ReplTarget>;
//# sourceMappingURL=tsf-repl.d.ts.map