import { type SyntheticEvent } from 'react';
import type { FileState } from '@atlaskit/media-state/file-state';
/**
* Builds a descriptive `secondaryError` for an `
` onerror so the downstream
* `loadFailed` analytics event reports a meaningful `error`/`errorDetail` instead of
* the opaque `unknown`/`unknown`. The returned Error's `message` captures decode
* diagnostics as a comma-separated `key=value` string (undefined fields are omitted):
* - whether the browser decoded any pixels (`naturalWidth`/`naturalHeight === 0`)
* - the file MIME type and whether it is natively browser-decodable
* - which source failed (preview blob vs. original-binary/HD url)
*
* @example
* // message:
* "mimeType=image/png, isBrowserDecodable=true, naturalWidth=0, naturalHeight=0, failedSrcType=blob"
*/
export declare function buildImgErrorDiagnostics(item: FileState | undefined, event?: SyntheticEvent): Error;