{"version":3,"file":"get-state.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-state.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\n/**\n * An object containing the parameters for the `snap_getState` method.\n *\n * @property key - The key of the state to retrieve. If not provided, the entire\n * state is retrieved. This may contain Lodash-style path syntax, for example,\n * `a.b.c`, with the exception of array syntax.\n * @property encrypted - Whether to use the separate encrypted state, or the\n * unencrypted state. Defaults to the encrypted state. Encrypted state can only\n * be used if the client is unlocked, while unencrypted state can be used\n * whether the client is locked or unlocked.\n *\n * Use the encrypted state for sensitive data (such as private keys or secrets),\n * and the unencrypted state for non-sensitive data that needs to be accessed\n * while the client is locked.\n */\nexport type GetStateParams = {\n  key?: string;\n  encrypted?: boolean;\n};\n\n/**\n * The state of the Snap. If a key was provided in the request parameters, this\n * is the value of that key in the state. Otherwise, this is the entire state.\n */\nexport type GetStateResult = Json;\n"]}