UNPKG

yanzhen-design-vue

Version:

18 lines (17 loc) 987 B
import { MaybeComputedRef } from '@yanzhen-libs/utils-vue'; import { EmitsOptions, MaybeRef, Ref, SetupContext, SlotsType } from 'vue'; export declare const useProxy: <DefinedProps, DefinedEmits>(proxyConfig?: { excludeProps?: string[]; props?: Partial<{ [K in keyof DefinedProps]: Ref<DefinedProps[K]> | DefinedProps[K]; }> & { [key: string]: unknown; }; on?: Partial<{ [K in keyof DefinedEmits]: DefinedEmits[K] extends (...args: any[]) => any ? (...args: Parameters<DefinedEmits[K]>) => void : any[]; }> & { [key: string]: unknown; }; }) => import('vue').ComputedRef<Record<string, any>>; export declare function useProxyConfig<T extends Record<string, any>, E extends EmitsOptions, S extends SlotsType>(props: MaybeComputedRef<T> | MaybeRef<T>, emits?: MaybeComputedRef<E> | MaybeRef<E> | null, context?: Partial<SetupContext<E, S>> & { exclude?: string[]; include?: string[]; }): import('vue').ComputedRef<{ [x: string]: unknown; }>;