UNPKG

meta-cloud-api

Version:
40 lines (33 loc) 1.36 kB
import { WabaConfigType } from '../types/config.js'; export { M as MetaError, i as isFlowDataExchangeRequest, a as isFlowErrorRequest, b as isFlowPingRequest, c as isMetaError } from '../isMetaError-CXWJwW58.js'; import { L as LoggerInterface } from '../logger-BdE0Vyim.js'; import '../enums-BZd9T2ul.js'; import '../common-lV0NsO7t.js'; import '../request-vYMaEfk5.js'; declare function buildFieldsQueryString(fields?: string[] | string): string; /** * Formats configuration as a terminal table * @param config - The WABA configuration object * @param apiName - The name of the API being initialized * @returns Formatted table string */ declare function formatConfigTable(config: WabaConfigType): string; declare class Logger implements LoggerInterface { private name; private debug; constructor(name: string, debug?: boolean); log(...data: any[]): void; error(...data: any[]): void; warn(...data: any[]): void; info(...data: any[]): void; } declare const objectToQueryString: (params: Record<string, any>) => string; /** * Get SDK version from package.json */ declare function getVersion(): string; /** * Generate User-Agent string following official SDK pattern */ declare function getUserAgent(): string; export { Logger, buildFieldsQueryString, formatConfigTable, getUserAgent, getVersion, objectToQueryString };