import { type IncomingMessage, type Server as HttpServer } from "http"; export declare function resolvePtySpawnHelper(ptyPackagePath: string): string; export declare function ensurePtySpawnHelperExecutable(helper: string): void; export declare function ensurePtySpawnHelperPermissions(): void; export interface PtyServerOptions { appDir?: string; command?: string; port?: number; authCheck?: (req: IncomingMessage) => boolean | Promise; getCommandArgs?: (command: string) => string[] | Promise; getEnvironment?: (command: string) => NodeJS.ProcessEnv | Promise; getSessionSetup?: (command: string, context: PtySessionContext | null) => PtySessionSetup | Promise; logPrefix?: string; } export interface PtySessionContext { appId: string; path?: string; view?: string; } export interface PtySessionSetup { cwd?: string; commandArgs?: string[]; environment?: NodeJS.ProcessEnv; onClose?: () => void | Promise; } export interface PtyServerResult { server: HttpServer; port: number; close: () => void; } export declare function createPtyWebSocketServer(options?: PtyServerOptions): Promise; export declare function preparePtySpawn(commandPath: string, args: string[], platform?: NodeJS.Platform): { command: string; args: string[]; }; export declare function parseTerminalArguments(value: string, platform?: NodeJS.Platform): string[];