import { Ref } from 'vue'; export declare type ReducerAction = { type: T; payload?: P; }; export declare type CreateMethods = (state: T) => { [P in keyof M]: (payload?: any) => T; }; export declare type WrappedMethods = { [P in keyof M]: (...payload: any) => void; }; export declare function useMethods(createMethods: CreateMethods, initialState: T): [Ref, WrappedMethods];