declare namespace _default { export { logc }; export { logd }; export { logdrl }; } export default _default; /** * * * * * * * * * * * * * * * * * * * * * * * * * * ** * @description This function logs styled messages to the console. It takes an array of objects, where each object specifies the text and optional style properties to apply. * @param {Array} objectArray - Array of objects defining the text and style properties for each message. * @returns {void} * * ------------- * * @Properties * @param {Array} objectArray[].text - description * @param {string} objectArray[].text - The text to be logged. * @param {string} [objectArray[].c="#000"] - The color of the text. Default is black. * @param {string} [objectArray[].bg="transparent"] - The background color of the text. Default is transparent. * @param {boolean} [objectArray[].b=false] - Whether the text should be bold. Default is false. * @param {boolean} [objectArray[].i=false] - Whether the text should be italic. Default is false. * @param {boolean} [objectArray[].u=false] - Whether the text should be underlined. Default is false. * @param {string} [objectArray[].border="none"] - The border style of the text. Default is none. * * ------------- * * @example * * // log a single message with defaults * * logc([ { text: "This is the first log message"} ]); * * // Log multiple messages with custom styles * * logc([ * { text: "This is the first log message", c: "blue", bg: "green", u: true, b: false, i: true }, * { text: "And this is another message", c: "red", bg: "yellow", b: true, u: true }, * { text: "And this is another message", c: "red", border: "1px solid red" }, * ]); * * // or * const messages = [] * * messages.push({ text: "This is the first log message", c: "blue", bg: "green", u: true, b: false, i: true }); * messages.push({ text: "And this is another message", c: "red", bg: "yellow", b: true, u: true }); * messages.push({ text: "And this is another message", c: "red", border: "1px solid red" }); * * logc(messages); */ declare function logc(objectArray: Array): void; /** * * * * * * * * * * * * * * * * * * * * * * * * * * ** * @description This function uses the `logc` function to logs styled debug messages to the console. * @param {object} name - name of the logger and styling * @param {string} action - The action being performed. * @param {string} message - The message to be logged. * @param {any} args - The arguments to be logged. * @param {object} config - The configuration object. * @param {boolean} [trace=false] - Whether to include the stack trace. * @returns {void} * * @example * // log message with default styling and meta * logd( { name: 'logd' }, 'action', 'message' ); * * // log message with custom styling, meta, and stack trace * logd( * { name: 'logd', color: '#fff', bg: '#7A5ACF', logname: '🐼', logcolor: white }, * action, * message, * args, * trace = true * ); */ declare function logd(name: object, action: string, message: string, args: any, trace?: boolean): void; /** * * * * * * * * * * * * * * * * * * * * * * * * * * ** * @function logdrl(filter) * @description This function filters the debug log based on the provided filter object. * @param {object} filter - The filter object. * @properties { } * @property {string} filter.name - The name of the logger. * @property {string} [filter.message] - The message of the log. * @property {string} [filter.action] - The action of the log. * @property {string[]} [filter.args] - The arguments of the log. * @returns {void} * * @example * // filter by name * logdrl({ name: 'logd' }); * // filter by message * logdrl({ message: 'message' }); * // filter by action * logdrl({ action: 'action' }); * // filter by args * logdrl({ args: ['arg1', 'arg2'] }); * // filter by multiple fields * logdrl({ name: 'logd', message: 'message', action: 'action', args: ['arg1', 'arg2'] }); */ declare function logdrl(filter?: object): void;