import type { RequestOp, Transport, TransportName, TransportResult } from "./types.js"; import type { HttpTransportResult } from "./http.js"; export interface EngineRequest { method: string; path: string; headers: [string, string][]; body: string; } export interface EngineResponse { status: number; headers: [string, string][]; body: string; } export type InvokeFn = (command: string, args?: Record) => Promise; export interface IpcTransportConfig { invoke: InvokeFn; command?: string; namespace?: string; maxRetries?: number; backoffMs?: number; } export declare class IpcTransport implements Transport { readonly name: TransportName; private readonly invoke; private readonly command; private readonly namespace; private readonly maxRetries; private readonly backoffMs; constructor(config: IpcTransportConfig); request(op: RequestOp): Promise; } export type { TransportResult };