import type { XyoConnection } from '@xyo-network/xl1-protocol/protocol-lib';
import type { Surface } from './Backing.js';
/**
 * Returns a shallow-cloned `XyoConnection` retaining only the branches whose
 * surface matches the requested one.
 *
 * The filter walks a fixed structural map of `XyoConnection` (see
 * `surfaceMap.ts`). Branches whose surface differs are omitted from the
 * returned connection so that downstream consumers (`rpcMethodHandlersFromConnection`,
 * `rpcServerFromConnection`, etc.) naturally produce a smaller method set
 * without having to know about surfaces themselves.
 *
 * Used by API actor route wiring to mount `POST /rpc` (node-only) and
 * `POST /rpc/indexed` (indexer-only) over the same underlying connection.
 */
export declare function connectionSubsetBySurface(connection: XyoConnection, surface: Surface): XyoConnection;
//# sourceMappingURL=connectionSubsetBySurface.d.ts.map