import { HandlerType } from "@metamask/snaps-utils"; import type { Struct } from "@metamask/superstruct"; import type { Json } from "@metamask/utils"; import type { InvokeSnapArgs } from "./BaseSnapExecutor.cjs"; import type { JsonRpcRequestWithoutId } from "./validation.cjs"; /** * Assert that the params match the provided struct. * * @param method - The RPC method being validated. * @param params - The RPC parameters being validated. * @param struct - The struct to validate the parameters against. */ export declare function assertCommandParams(method: string, params: Json | undefined, struct: Struct): asserts params is Type; /** * Formats the arguments for the given handler. * * @param origin - The origin of the request. * @param handler - The handler to pass the request to. * @param request - The request object. * @returns The formatted arguments. */ export declare function getHandlerArguments(origin: string, handler: HandlerType, request: JsonRpcRequestWithoutId): InvokeSnapArgs; //# sourceMappingURL=commands.d.cts.map