/** * Abstraction of a value that may or may not be present. Implemented with a vector of size * zero or one because Move bytecode does not have ADTs. * * Type name: `0x1::option::Option` */ export interface IOption<_Element = unknown> { vec: ReadonlyArray<_Element>; } export { idl } from "./idl.js"; /** The address of the module. */ export declare const ADDRESS: "0x1"; /** The full module name. */ export declare const FULL_NAME: "0x1::option"; /** The name of the module. */ export declare const NAME: "option"; /** Module ID information. */ export declare const id: { readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::option"; readonly NAME: "option"; }; export * as errors from "./errors.js"; /** Module error codes. */ export declare const errorCodes: { readonly "262144": { readonly name: "EOPTION_IS_SET"; readonly doc: "The `Option` is in an invalid state for the operation attempted.\nThe `Option` is `Some` while it should be `None`."; }; readonly "262145": { readonly name: "EOPTION_NOT_SET"; readonly doc: "The `Option` is in an invalid state for the operation attempted.\nThe `Option` is `None` while it should be `Some`."; }; }; /** All module function IDLs. */ export declare const functions: {}; /** All struct types with ability `key`. */ export declare const resources: {}; /** All struct types. */ export declare const structs: { readonly Option: "0x1::option::Option"; }; /** This module defines the Option type and its methods to represent and handle an optional value. */ export declare const moduleDefinition: { readonly errorCodes: { readonly "262144": { readonly name: "EOPTION_IS_SET"; readonly doc: "The `Option` is in an invalid state for the operation attempted.\nThe `Option` is `Some` while it should be `None`."; }; readonly "262145": { readonly name: "EOPTION_NOT_SET"; readonly doc: "The `Option` is in an invalid state for the operation attempted.\nThe `Option` is `None` while it should be `Some`."; }; }; readonly functions: {}; readonly resources: {}; readonly structs: { readonly Option: "0x1::option::Option"; }; readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::option"; readonly NAME: "option"; }; //# sourceMappingURL=index.d.ts.map