export type StateFactory = (...args: Args[]) => T; export declare function defineStore(fn: StateFactory): { provide: (...args: Args[]) => T; inject: () => T; };