{"version":3,"file":"get-interface-state.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-interface-state.ts"],"names":[],"mappings":"","sourcesContent":["import type { InterfaceState } from '../interface';\n\n/**\n * An object containing the parameters for the `snap_getInterfaceState` method.\n *\n * @property id - The interface ID.\n */\nexport type GetInterfaceStateParams = {\n  id: string;\n};\n\n/**\n * The state of the given interface. This is a `Record` of the form state, where\n * the keys are the `name` properties of the form fields, and the values are the\n * current values of those fields, depending on the type of the field.\n *\n * For example, for a text field, the value would be a `string`, for a checkbox\n * field, the value would be a `boolean`, and for a file upload field, the value\n * would be a `File` object. The exact structure of the state depends on the\n * form fields that were defined when the interface was created.\n */\nexport type GetInterfaceStateResult = InterfaceState;\n"]}