24 lines
565 B
TypeScript
24 lines
565 B
TypeScript
import { type Config } from "./gen/types.gen.js";
|
|
export type ServerOptions = {
|
|
hostname?: string;
|
|
port?: number;
|
|
signal?: AbortSignal;
|
|
timeout?: number;
|
|
config?: Config;
|
|
};
|
|
export type TuiOptions = {
|
|
project?: string;
|
|
model?: string;
|
|
session?: string;
|
|
agent?: string;
|
|
signal?: AbortSignal;
|
|
config?: Config;
|
|
};
|
|
export declare function createOpencodeServer(options?: ServerOptions): Promise<{
|
|
url: string;
|
|
close(): void;
|
|
}>;
|
|
export declare function createOpencodeTui(options?: TuiOptions): {
|
|
close(): void;
|
|
};
|