import { HasTypeForMockDescriptor } from './nodes.types'; type VariableValue = any; /** * The base SetupInfo provided to all mock setup functions and triggers. * @public * @remarks * All SetupInfo objects extend this type */ export type BaseSetupInfo = { /** * Variables provided by state setup functions */ stateVariables: Record; /** * Setup returned by the mock executor (eg, urls, function names, etc) */ mock: Record; /** * Arbitrary map of invokeable functions. For most purposes, this can be * empty. Useful for allowing plugins to invoke functions - the intention is * that arguments and return values are JSON encoded strings. */ functions: Record string>; }; /** * Helper type to extract a specific mock's SetupInfo object form all known SetupInfo objects * @public * @typeParam AllSetupInfo - All known SetupInfo objects * @typeParam T - the type of the mock descriptor that you want to get the SetupInfo for. */ export type SetupInfoFor = Extract> & BaseSetupInfo; export {}; //# sourceMappingURL=setup.types.d.ts.map