import type { Logger } from '@ariestools/sdk';
import { JsonRpcEngineV2, JsonRpcServer } from '@metamask/json-rpc-engine/v2';
import type { XyoConnection } from '@xyo-network/xl1-protocol/protocol-lib';
/**
 * @deprecated Use {@link composedRpcEngineFromConnection} instead. This original engine dispatches
 * the entire `AllRpcSchemas` surface through a single generic middleware; the composed engine wires
 * per-namespace typed sub-engines (validation + `TypedRpcHandlerRecord`) and is the migration target.
 * Kept until consumers have moved over — see the parity spec.
 */
export declare const rpcEngineFromConnection: (connection: XyoConnection, logger?: Logger) => JsonRpcEngineV2<import("@metamask/json-rpc-engine/v2").JsonRpcCall, import("@metamask/json-rpc-engine/v2").MiddlewareContext<{
    [x: string]: unknown;
    [x: number]: unknown;
    [x: symbol]: unknown;
}>>;
/**
 * @deprecated Use {@link composedRpcServerFromConnection} instead. Wraps the deprecated
 * {@link rpcEngineFromConnection}; superseded by the composed engine. Kept until consumers migrate.
 */
export declare function rpcServerFromConnection(connection: XyoConnection, logger?: Logger): JsonRpcServer<import("@metamask/json-rpc-engine/v2").JsonRpcMiddleware>;
//# sourceMappingURL=rpcEngineFromConnection.d.ts.map