/** * Determines whether payload data should be captured based on the capture mode setting, * HTTP status code, and GraphQL error status. * @param {string} captureMode - The capture mode setting ('none', 'all', or 'failures') * @param {number} statusCode - The HTTP status code * @param {boolean} hasGQLErrors - Whether the response contains GraphQL errors * @returns {boolean} True if payload should be captured */ export function canCapturePayload(captureMode: string, statusCode: number, hasGQLErrors: boolean): boolean; /** * Parses a query string into an object of key-value pairs. * @param {string} search a query string starting with "?" or without (ex. new URL(...).search) * @returns {Object|undefined} Parsed query parameters as key-value pairs. Returns undefined if no valid parameters are found. */ export function parseQueryString(search: string): Object | undefined; /** * Determines if the given content type is likely to be human-readable (text-based). * @param {Object} headers - The headers object containing content-type * @param {*} data - The data to check * @returns {boolean} True if the content type is human-readable (text-based) */ export function isLikelyHumanReadable(headers: Object, data: any): boolean; /** * Truncates a string to ensure its UTF-8 byte length does not exceed 4092 bytes. If truncation is necessary, * the string is cut off at a character boundary to avoid breaking multi-byte characters and " ..." is appended to indicate truncation. * If not a string, it is first converted to a string using JSON.stringify. * @param {*} data The data to truncate. * @returns {string} */ export function truncateAsString(data: any): string; /** * Creates string adder functions for BEL serialization with obfuscation and optional truncation. * This ensures a single string table is used while providing separate handling for regular vs payload attributes. * @param {Function} getAddStringContext - Function that creates a new string table context * @param {Object} obfuscator - Optional obfuscator instance for string obfuscation * @returns {{addString: Function, addStringWithTruncation: Function}} Object containing both string adder functions */ export function createStringAdders(getAddStringContext: Function, obfuscator: Object): { addString: Function; addStringWithTruncation: Function; }; //# sourceMappingURL=payloads.d.ts.map