import { BuildBlockMode } from '../../blockchain/txpool.js'; import { type Context } from '../shared.js'; /** * Set block build mode. * * 1 - Batch, 2 - Instant, 3 - Manual * * This function is a dev rpc handler. Use `dev_setBlockBuildMode` as the method name when calling it. * * @param context - The context object of the rpc handler * @param params - The parameters of the rpc handler * * @example Set build block mode to instant * ```ts * import { WsProvider } from '@polkadot/rpc-provider' * import { BuildBlockMode } from '@acala-network/chopsticks-core' * const ws = new WsProvider(`ws://localhost:8000`) * await ws.send('dev_setBlockBuildMode', [BuildBlockMode.Instant]) * ``` */ export declare const dev_setBlockBuildMode: (context: Context, [mode]: [BuildBlockMode]) => Promise;