import { type SubscriptionManager } from '@acala-network/chopsticks-core'; export type Handler = (data: { method: string; params: string[]; }, subscriptionManager: SubscriptionManager) => Promise; export declare const createServer: (handler: Handler, port: number, host?: string) => Promise<{ addr: string; port: number; close: () => Promise; }>;