@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
24 lines • 675 B
text/typescript
import type { EnumToUnion } from "../../internals/index.mjs";
/**
* The encoding to use when retrieving the file. Defaults to `Base64`.
*/
export declare enum AuxiliaryFileEncoding {
Base64 = "base64",
Hex = "hex",
Utf8 = "utf8"
}
/**
* The request parameters for the `snap_getFile` method.
*
* @property path - The path to the file to retrieve.
* @property encoding - The encoding to use when retrieving the file.
*/
export type GetFileParams = {
path: string;
encoding?: EnumToUnion<AuxiliaryFileEncoding>;
};
/**
* The result returned by the `snap_getFile` method.
*/
export type GetFileResult = string;
//# sourceMappingURL=get-file.d.mts.map