import { EntityType } from '../types/meta.types'; interface UseEntityWithMetaOptions { includeMeta?: string[] | boolean; autoFetch?: boolean; staleTime?: number; gcTime?: number; } /** * useEntityWithMeta - TanStack Query powered entity + metadata hook * * Provides entity management with metadata support: * - Automatic caching * - Optimistic updates for metadata * - No unnecessary refetches */ export declare function useEntityWithMeta>(entityType: EntityType, entityId: string, options?: UseEntityWithMetaOptions): { data: import("@tanstack/react-query").NoInfer; }>; entity: import("@tanstack/react-query").NoInfer; }> & { meta: any; }; meta: Record; loading: boolean; error: string; updateEntity: (updates: Partial, metaUpdates?: Record) => Promise; updateMeta: (metaUpdates: Record) => Promise; getMeta: (metaKey: string, defaultValue?: MetaT) => MetaT; hasMeta: (metaKey: string) => boolean; refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise; }>, Error>>; isUpdating: boolean; }; export declare function useUserWithMeta(userId: string, options?: UseEntityWithMetaOptions): { data: Record & { meta?: Record; }; entity: Record & { meta?: Record; } & { meta: any; }; meta: Record; loading: boolean; error: string; updateEntity: (updates: Partial>, metaUpdates?: Record) => Promise; updateMeta: (metaUpdates: Record) => Promise; getMeta: (metaKey: string, defaultValue?: MetaT) => MetaT; hasMeta: (metaKey: string) => boolean; refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise & { meta?: Record; }, Error>>; isUpdating: boolean; }; export declare function useTaskWithMeta(taskId: string, options?: UseEntityWithMetaOptions): { data: Record & { meta?: Record; }; entity: Record & { meta?: Record; } & { meta: any; }; meta: Record; loading: boolean; error: string; updateEntity: (updates: Partial>, metaUpdates?: Record) => Promise; updateMeta: (metaUpdates: Record) => Promise; getMeta: (metaKey: string, defaultValue?: MetaT) => MetaT; hasMeta: (metaKey: string) => boolean; refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise & { meta?: Record; }, Error>>; isUpdating: boolean; }; export {}; //# sourceMappingURL=useEntityWithMeta.d.ts.map