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::error"; /** The name of the module. */ export declare const NAME: "error"; /** Module ID information. */ export declare const id: { readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::error"; readonly NAME: "error"; }; /** Module error codes. */ export declare const errorCodes: {}; /** 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: {}; /** * This module defines a set of canonical error codes which are optional to use by applications for the * `abort` and `assert!` features. * * Canonical error codes use the 3 lowest bytes of the u64 abort code range (the upper 5 bytes are free for other use). * Of those, the highest byte represents the *error category* and the lower two bytes the *error reason*. * Given an error category `0x1` and a reason `0x3`, a canonical abort code looks as `0x10003`. * * A module can use a canonical code with a constant declaration of the following form: * * ``` * /// An invalid ASCII character was encountered when creating a string. * const EINVALID_CHARACTER: u64 = 0x010003; * ``` * * This code is both valid in the worlds with and without canonical errors. It can be used as a plain module local * error reason understand by the existing error map tooling, or as a canonical code. * * The actual canonical categories have been adopted from Google's canonical error codes, which in turn are derived * from Unix error codes [see here](https://cloud.google.com/apis/design/errors#handling_errors). Each code has an * associated HTTP error code which can be used in REST apis. The mapping from error code to http code is not 1:1; * error codes here are a bit richer than HTTP codes. */ export declare const moduleDefinition: { readonly errorCodes: {}; readonly functions: {}; readonly resources: {}; readonly structs: {}; readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::error"; readonly NAME: "error"; }; //# sourceMappingURL=index.d.ts.map