import type { Decision, RunContext } from './approval-bus.js'; type JsonObject = Record; export type NativeToolRpcResult = { ok: true; result: string; source?: string; } | { ok: false; error: string; source?: string; }; export interface NativeToolApprovalRequest { toolName: 'Bash' | 'Write' | 'Edit'; input: JsonObject; } export interface NativeToolRpcOptions { reqId?: string; signal?: AbortSignal; runContext?: RunContext; requestApproval?: (request: NativeToolApprovalRequest) => Promise; } export declare function normalizeNativeToolName(name: string): string | null; export declare function handleNativeToolOp(payload: JsonObject, opts?: NativeToolRpcOptions): Promise; export {}; //# sourceMappingURL=native-tool-rpc.d.ts.map