import type { CLIFlags } from '../args.js';
import type { ProjectConfig } from '../local-runtime.js';
export declare function resolveNotebookConnection(config: ProjectConfig, projectRoot: string): import("@duckcodeailabs/dql-connectors").ConnectionConfig | null;
export interface ProjectRuntimeHandle {
    port: number;
    url: string;
    /** Stop the HTTP listener so the process can exit (no-op if already closed). */
    close: () => Promise<void>;
}
/**
 * Start the local notebook/runtime HTTP server for a project and return a handle.
 * Shared by `dql notebook` (long-running) and `dql agent ask` (which starts an
 * ephemeral runtime on a free port — `preferredPort: 0` — and closes it after).
 */
export declare function startProjectRuntime(projectRoot: string, opts?: {
    preferredPort?: number;
    host?: string;
}): Promise<ProjectRuntimeHandle>;
export declare function runNotebook(targetArg: string | null, flags: CLIFlags): Promise<void>;
//# sourceMappingURL=notebook.d.ts.map