/** * String Manipulation Constants * * Constants used for string generation, manipulation, * and UUID-related operations. * * @module utils/string/constants */ /** * String generation and manipulation constants */ export declare const STRING_CONSTANTS: { /** * Starting position for random string extraction */ readonly RANDOM_STRING_START: 2; /** * Length of random string segment */ readonly RANDOM_STRING_LENGTH: 9; /** * Multiplier for UUID random value generation */ readonly UUID_RANDOM_MULTIPLIER: 16; /** * Hexadecimal mask for UUID generation */ readonly UUID_HEX_MASK: 3; /** * OR value for UUID hexadecimal operations */ readonly UUID_HEX_OR_VALUE: 8; }; /** * Formatting and serialization constants */ export declare const FORMAT_CONSTANTS: { /** * Default indentation for JSON stringification (spaces) */ readonly JSON_INDENT_SPACES: 2; /** * Default indentation for code formatting (spaces) */ readonly CODE_INDENT_SPACES: 2; /** * Tab size in spaces */ readonly TAB_SIZE: 4; /** * Maximum line length for code formatting */ readonly MAX_LINE_LENGTH: 80; /** * Maximum line length for prettier */ readonly PRETTIER_LINE_WIDTH: 100; /** * Default encoding for text files */ readonly DEFAULT_ENCODING: "utf-8"; /** * Line endings */ readonly LINE_ENDING_LF: "\n"; readonly LINE_ENDING_CRLF: "\r\n"; /** * Common file extensions */ readonly EXTENSION_JSON: ".json"; readonly EXTENSION_JS: ".js"; readonly EXTENSION_TS: ".ts"; readonly EXTENSION_TSX: ".tsx"; readonly EXTENSION_JSX: ".jsx"; readonly EXTENSION_CSS: ".css"; readonly EXTENSION_SCSS: ".scss"; readonly EXTENSION_MD: ".md"; readonly EXTENSION_YML: ".yml"; readonly EXTENSION_YAML: ".yaml"; /** * Quote styles */ readonly SINGLE_QUOTE: "'"; readonly DOUBLE_QUOTE: "\""; readonly BACKTICK: "`"; /** * Common separators */ readonly COMMA: ","; readonly SEMICOLON: ";"; readonly COLON: ":"; readonly DOT: "."; readonly SLASH: "/"; readonly BACKSLASH: "\\"; readonly UNDERSCORE: "_"; readonly HYPHEN: "-"; readonly PIPE: "|"; readonly SPACE: " "; readonly EMPTY_STRING: ""; /** * Whitespace characters */ readonly TAB: "\t"; readonly NEWLINE: "\n"; readonly CARRIAGE_RETURN: "\r"; readonly FORM_FEED: "\f"; readonly VERTICAL_TAB: "\v"; /** * Common brackets */ readonly OPEN_PAREN: "("; readonly CLOSE_PAREN: ")"; readonly OPEN_BRACKET: "["; readonly CLOSE_BRACKET: "]"; readonly OPEN_BRACE: "{"; readonly CLOSE_BRACE: "}"; readonly OPEN_ANGLE: "<"; readonly CLOSE_ANGLE: ">"; }; /** * Type for string constant values */ export type StringConstant = (typeof STRING_CONSTANTS)[keyof typeof STRING_CONSTANTS]; /** * Type for format constant values */ export type FormatConstant = (typeof FORMAT_CONSTANTS)[keyof typeof FORMAT_CONSTANTS]; //# sourceMappingURL=constants.d.ts.map