import type { RpcMethods, RpcMethodName, RpcHandler } from '@scayle/storefront-core'; /** * Normalizes a rpc handler function that is not defined with `defineRpcHandler`. * Sets the `rpcType` property to `WithParam` or `NoParam` based on the number of parameters * the handler function takes, and defaults `httpMethod` to `'POST'` when it is missing. * Handlers that already have both properties set are returned without modification. * * @param handler - The handler function to normalize. * @returns The normalized handler function with `rpcType` and `httpMethod` properties. */ export declare const normalizeRpcHandler: ? RpcHandler & Required, "rpcType" | "httpMethod">> : T extends RpcHandler ? RpcHandler & Required, "rpcType" | "httpMethod">> : never>(handler: T) => NormalizedHandler;