import type { UNSAFE_DataWithResponseInit } from "react-router"; type ActionsRecord = Record Promise>>; type ResponsesRecord = { [Action in keyof Actions]: Actions[Action] extends () => Promise> ? Result : never; }; type ResponsesUnion = ResponsesRecord[keyof Actions]; /** * Runs an action based on the FormData's action name * @param formData The FormData to parse for an action name * @param actions The map of actions to run * @returns The response from the action * @throws {ReferenceError} Action name not found * @throws {ReferenceError} Action "${name}" not found */ export declare function namedAction(formData: FormData, actions: Actions): Promise>>; export {};