import { ILDOptions } from "../ldaccess/ildoptions"; import { OutputKVMap, BlueprintConfig } from "../ldaccess/ldBlueprint"; import { RouteComponentProps } from 'react-router'; import { KVL } from "../ldaccess/KVL"; import { ReactCompInfoMap } from "../components/reactUtils/iReactCompInfo"; export interface LDRouteParams { } export interface LDRouteProps extends RouteComponentProps<{}> { } export declare type LDOwnProps = { ldTokenString: string; routes?: LDRouteProps; }; export declare type LDConnectedDispatch = { /** * IMPORTANT: use ldOptionsDeepCopy() before to create a new ldOptions-Object as a parameter here. * Are you sure you don't want to use dispatchKvOutput? */ notifyLDOptionsChange: (ldOptions: ILDOptions) => void; /** * notifies the store to split the KvStores in this ldOptions.resource in a linear fashion. After * completion, the store will have n new values at the keys ldOptions.ldToken+"-l"+(0..n-1) */ notifyLDOptionsLinearSplitChange: (ldOptions: ILDOptions) => void; /** * notifies the store that the ldOptions-Object should be split according to what's defined in the * refMap * @param refMap The BlueprintConfig must be a refMap-Blueprint. */ notifyLDOptionsRefMapSplitChange: (ldOptions: ILDOptions, refMap: BlueprintConfig) => void; /** * dispatches changes inside an itpt to the store, use this to handle updating values. * @param thisLdTkStr is the LD-Token of the itpt from which the update gets dispatched * @param updatedKvMap the values that shall be updated. Unchanged values of the kvMap aren't affected */ dispatchKvOutput: (changedKvStores: KVL[], thisLdTkStr: string, updatedKvMap: OutputKVMap) => void; dispatchLdAction: (ldId: string, ldType: string, payload: any) => void; }; export declare type LDConnectedState = { ldOptions: ILDOptions; }; export declare type ReactCompLDLocalState = { compInfos: ReactCompInfoMap; }; export declare type LDLocalKv = { localValues: Map; localLDTypes: Map; }; export declare type LDLocalState = ReactCompLDLocalState & LDLocalKv;