import { Command } from 'commander';
import { type ComputerClient, type RPCResponse } from '../lib/computer/computer-rpc.js';
export { emitComputerAction, pickTarget, resolveTargetPidDecision, type AppInfo } from '../lib/computer/actions.js';
export declare function parseXY(s: string, flag: string): {
    x: number;
    y: number;
};
export declare function buildElementOrCoords(opts: {
    id?: string;
    x?: number;
    y?: number;
}): {
    ok: true;
    params: Record<string, unknown>;
} | {
    ok: false;
    error: string;
};
export declare function buildRaiseParams(opts: {
    windowId?: number;
    title?: string;
}): Record<string, unknown>;
export declare const CHAR_DELAY_MIN_MS = 1;
export declare const CHAR_DELAY_MAX_MS = 250;
export declare function clampCharDelay(ms: number | undefined): number | undefined;
export declare function buildWaitParams(opts: {
    duration?: number;
    id?: string;
    until?: string;
    role?: string;
    label?: string;
    identifier?: string;
    timeout?: number;
}): {
    ok: true;
    params: Record<string, unknown>;
} | {
    ok: false;
    error: string;
};
export declare function withClient<T>(fn: (client: ComputerClient) => Promise<T>): Promise<T>;
export declare function unwrap(r: RPCResponse): Record<string, unknown>;
export declare function focusStealNotes(opts: {
    id?: string;
    x?: number;
    y?: number;
    raise?: boolean;
}): string[];
export declare function shouldRaise(opts: {
    id?: string;
    raise?: boolean;
}): boolean;
export declare function appPathIsElectron(appPath: string | null, exists?: (p: string) => boolean): boolean;
export declare function electronWebviewTip(appLabel: string): string;
export declare function registerActionCommands(program: Command): void;
