import { resolveLifecyclePort } from '../../cliproxy/config/port-manager';
import { ensureCliproxyService } from '../../cliproxy/service-manager';
import { waitForProxyHealthy } from '../../cliproxy/proxy/proxy-detector';
import { stopProxy } from '../../cliproxy/session-tracker';
import { isRunningUnderSupervisord, restartCliproxyViaSupervisord } from '../../docker/supervisord-lifecycle';
export interface CliproxyDashboardRestartResult {
    success: boolean;
    port?: number;
    error?: string;
}
export interface CliproxyDashboardRestartDeps {
    resolveLifecyclePortFn?: typeof resolveLifecyclePort;
    isRunningUnderSupervisordFn?: typeof isRunningUnderSupervisord;
    restartCliproxyViaSupervisordFn?: typeof restartCliproxyViaSupervisord;
    waitForProxyHealthyFn?: typeof waitForProxyHealthy;
    stopProxyFn?: typeof stopProxy;
    ensureCliproxyServiceFn?: typeof ensureCliproxyService;
    delayFn?: (ms: number) => Promise<void>;
}
export declare function restartDashboardCliproxy(deps?: CliproxyDashboardRestartDeps): Promise<CliproxyDashboardRestartResult>;
//# sourceMappingURL=cliproxy-dashboard-restart-service.d.ts.map