import { StoreApi } from 'zustand'; type Nullable = T | null; type EqualityChecker = (a: T, b: T) => boolean; type PropConfig = { key: K; equals?: EqualityChecker; /** * Optional transformer function to apply to the prop value before storing. * * @example * // Single-prop transformation (data migration) * { key: 'timeRate', transform: migrateTimeRateSetting } * * @example * // Multi-prop transformation (computed value) * { * key: 'padId', * transform: (_, props) => getPadId({ * padId: props.padId, * fracFleet: props.fracFleet * }) * } */ transform?: (value: TProps[Extract], allProps: Partial) => TStore[K] | undefined; }; /** * A generic hook to sync prop values with a store, with custom equality checkers and transformers. */ export declare const useSyncProps: >, K extends keyof TStore>(store: Nullable>, props: TProps, propsConfig: Array>) => void; export {}; //# sourceMappingURL=useSyncProps.d.ts.map