import { Ref } from 'vue'; import type { UnwrapNestedRefs } from 'vue'; import type { MaybeRef } from '../types/index'; /** * toggle show * @param state init value (default `false`) */ export declare function useShow(state?: MaybeRef): { show: Ref; toggleShow: () => void; }; /** * emit value to parent * @param key value key * @param emit update function */ export declare function useEmitValue(key?: string, emit?: (name: string, ...args: unknown[]) => void): (value: unknown) => void; type UseSplitReactive[]> = { [P in keyof K]: P extends `${number}` ? UnwrapNestedRefs>[number]>> : never; }; /** * split reactive object to multiple reactive objects * @param reactive the reactive object in vue * @param args split keys */ export declare function useSplitReactive[]>(reactive: T, ...args: K): UseSplitReactive; export {};