import { z } from "zod"; import type { DaemonClient } from "../daemon-client.js"; declare const TerminalSchema: z.ZodObject<{ id: z.ZodString; workspaceId: z.ZodString; cwd: z.ZodString; name: z.ZodString; }, z.core.$strip>; export type PaseoTerminal = z.infer; export interface PaseoTerminalCreateOptions { workspaceId: string; /** Process working directory; defaults to the workspace directory. */ cwd?: string; name?: string; command?: string; args?: string[]; size?: { rows: number; cols: number; }; requestId?: string; } export interface PaseoTerminalListOptions { /** Ownership filter. When supplied, cwd does not restrict the results. */ workspaceId?: string; /** Workspace root directory filter for unscoped listings. */ cwd?: string; requestId?: string; } export interface PaseoTerminalListResult { entries: PaseoTerminal[]; requestId: string; } export interface PaseoTerminalCaptureOptions { start?: number; end?: number; stripAnsi?: boolean; requestId?: string; } export type PaseoTerminalCaptureResult = Awaited>; export interface PaseoTerminalHandle { readonly id: string; current(): PaseoTerminal | null; refresh(options?: { requestId?: string; }): Promise; /** Sends literal input and returns its UTF-16 length. Does not await command execution. */ write(data: string): number; /** Expands CLI key tokens; other strings are literal. Returns the input's UTF-16 length. */ sendKeys(keys: readonly string[]): number; capture(options?: PaseoTerminalCaptureOptions): Promise; kill(requestId?: string): Promise; } export interface PaseoTerminalActions { create(options: PaseoTerminalCreateOptions): Promise; list(options?: PaseoTerminalListOptions): Promise; ref(terminal: string | PaseoTerminal): PaseoTerminalHandle; } export interface PaseoWorkspaceTerminalActions { create(options?: Omit): Promise; list(options?: { requestId?: string; }): Promise; } type TerminalClient = Pick; /** @package */ export declare function createTerminalActions(daemonClient: TerminalClient, resolveWorkspaceDirectory: (workspaceId: string) => Promise): PaseoTerminalActions; export {}; //# sourceMappingURL=index.d.ts.map