import net from "node:net";
import type { ReadyCheck } from "../types.js";
type LogListener = (line: string, stream: "stdout" | "stderr") => void;
export interface ReadinessLogSource {
    subscribe(listener: LogListener): () => void;
}
type TcpConnect = typeof net.connect;
export declare function waitForReady(check: ReadyCheck, options: {
    signal?: AbortSignal;
    onLog?: ReadinessLogSource;
    timeoutMs?: number;
    connect?: TcpConnect;
}): Promise<boolean>;
export {};
