import type { Client, Options as Options2, TDataShape } from './client'; import type { ConnectToExecWebSocketData, ConnectToExecWebSocketErrors, ConnectToExecWebSocketResponses, CreateDirectoryData, CreateDirectoryErrors, CreateDirectoryResponses, CreateExecData, CreateExecErrors, CreateExecResponses, CreateFileData, CreateFileErrors, CreateFileResponses, DeleteDirectoryData, DeleteDirectoryErrors, DeleteDirectoryResponses, DeleteExecData, DeleteExecErrors, DeleteExecResponses, DeleteFileData, DeleteFileErrors, DeleteFileResponses, ExecExecStdinData, ExecExecStdinErrors, ExecExecStdinResponses, ExecuteTaskActionData, ExecuteTaskActionErrors, ExecuteTaskActionResponses, GetExecData, GetExecErrors, GetExecOutputData, GetExecOutputErrors, GetExecOutputResponses, GetExecResponses, GetFileStatData, GetFileStatErrors, GetFileStatResponses, GetTaskData, GetTaskErrors, GetTaskResponses, ListDirectoryData, ListDirectoryErrors, ListDirectoryResponses, ListExecsData, ListExecsErrors, ListExecsResponses, ListPortsData, ListPortsErrors, ListPortsResponses, ListSetupTasksData, ListSetupTasksErrors, ListSetupTasksResponses, ListTasksData, ListTasksErrors, ListTasksResponses, PerformFileActionData, PerformFileActionErrors, PerformFileActionResponses, ReadFileData, ReadFileErrors, ReadFileResponses, StreamExecsListData, StreamExecsListErrors, StreamExecsListResponses, StreamPortsListData, StreamPortsListErrors, StreamPortsListResponses, UpdateExecData, UpdateExecErrors, UpdateExecResponses } from './types.gen'; export type Options = Options2 & { /** * You can provide a client instance returned by `createClient()` instead of * individual options. This might be also useful if you want to implement a * custom client. */ client?: Client; /** * You can pass arbitrary values through the `meta` object. This can be * used to access values that aren't defined as part of the SDK function. */ meta?: Record; }; /** * Delete a file * Deletes a file at the specified path. */ export declare const deleteFile: (options: Options) => import("./client").RequestResult; /** * Read file content * Reads the content of a file at the specified path. */ export declare const readFile: (options: Options) => import("./client").RequestResult; /** * Perform file actions * Performs actions on files (e.g., move operations). */ export declare const performFileAction: (options: Options) => import("./client").RequestResult; /** * Create a file * Creates a new file at the specified path with optional content. */ export declare const createFile: (options: Options) => import("./client").RequestResult; /** * Get file stat * Reads the file metadata. */ export declare const getFileStat: (options: Options) => import("./client").RequestResult; /** * Delete a directory * Deletes a directory at the specified path. */ export declare const deleteDirectory: (options: Options) => import("./client").RequestResult; /** * List directory contents * Lists the contents of a directory at the specified path. */ export declare const listDirectory: (options: Options) => import("./client").RequestResult; /** * Create a directory * Creates a new directory at the specified path. */ export declare const createDirectory: (options: Options) => import("./client").RequestResult; /** * List all execs * Returns a list of all active execs. */ export declare const listExecs: (options?: Options) => import("./client").RequestResult; /** * Create a new exec * Creates a new exec with specified command and arguments. */ export declare const createExec: (options: Options) => import("./client").RequestResult; /** * Delete Exec * Deletes a exec and execs its process. */ export declare const deleteExec: (options: Options) => import("./client").RequestResult; /** * Get exec by ID * Retrieves a specific exec by its ID. */ export declare const getExec: (options: Options) => import("./client").RequestResult; /** * Update exec * Updates exec status (e.g., start a stopped exec). */ export declare const updateExec: (options: Options) => import("./client").RequestResult; /** * Get Exec output * Retrieves the plain text output from a exec's buffer. */ export declare const getExecOutput: (options: Options) => Promise>; /** * exec exec stdin * exec exec command (e.g., npm install). */ export declare const execExecStdin: (options: Options) => import("./client").RequestResult; /** * Connect to exec via WebSocket * Establishes a WebSocket connection for real-time exec interaction. * * Authentication can be provided via: * - Authorization header: `Authorization: Bearer ` * - Query parameter: `?token=` * * Permissions: * - Admin users: Can send input and receive output * - Readonly users: Can only receive output * */ export declare const connectToExecWebSocket: (options: Options) => import("./client").RequestResult; /** * List all tasks * Lists all configured tasks from .codesandbox/tasks.json with their current status. */ export declare const listTasks: (options?: Options) => import("./client").RequestResult; /** * Get task by ID * Retrieves a specific task by its ID with current status and configuration. */ export declare const getTask: (options: Options) => import("./client").RequestResult; /** * Execute task action * Executes an action on a specific task (start, stop, or restart). */ export declare const executeTaskAction: (options: Options) => import("./client").RequestResult; /** * List setup tasks * Lists all setup tasks with their execution status. Setup tasks are auto-executed during server start. */ export declare const listSetupTasks: (options?: Options) => import("./client").RequestResult; /** * List open ports * Lists all open TCP ports on the system, excluding ignored ports configured in the server. */ export declare const listPorts: (options?: Options) => import("./client").RequestResult; /** * List all execs * Returns a list of all active execs using SSE. */ export declare const streamExecsList: (options?: Options) => Promise>; /** * List open ports using Server-Sent Events (SSE) * Lists all open TCP ports on the system AND LISTEN TO THE CHANGES, excluding ignored ports configured in the server. */ export declare const streamPortsList: (options?: Options) => Promise>;