{"version":3,"file":"get-file.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-file.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,oCAAW,CAAA;IACX,sCAAa,CAAA;AACf,CAAC,EAJW,qBAAqB,KAArB,qBAAqB,QAIhC","sourcesContent":["import type { EnumToUnion } from '../../internals';\n\n/**\n * The encoding to use when retrieving the file. Defaults to `Base64`.\n */\nexport enum AuxiliaryFileEncoding {\n  Base64 = 'base64',\n  Hex = 'hex',\n  Utf8 = 'utf8',\n}\n\n/**\n * An object containing the parameters for the `snap_getFile` method.\n */\nexport type GetFileParams = {\n  /**\n   * The path to the file, relative to the Snap's package directory\n   * (that is, one level above `src`).\n   */\n  path: string;\n\n  /**\n   * The encoding to use when retrieving the file. Defaults to `base64`.\n   */\n  encoding?: EnumToUnion<AuxiliaryFileEncoding>;\n};\n\n/**\n * The file content as a string in the requested encoding.\n */\nexport type GetFileResult = string;\n"]}