/** * Parses a datasource configuration from a string or object. * * @param {string | object | undefined} config - The datasource configuration to parse. * Can be a JSON string, an object, or undefined. * * @returns {object | undefined} - Returns the parsed configuration as an object if valid, * or `undefined` if the input is invalid or parsing fails. * * @example * // Parsing a JSON string * const config = parseDatasourceConfiguration('{"key": "value"}'); * console.log(config); // { key: "value" } * * @example * // Passing an object directly * const config = parseDatasourceConfiguration({ key: "value" }); * console.log(config); // { key: "value" } * * @example * // Handling invalid input * const config = parseDatasourceConfiguration('invalid json'); * console.log(config); // undefined */ export declare const parseDatasourceConfiguration: (config: string | object | undefined) => any;