export type ImageState = 'showImage' | 'showError' | 'showStub'; export declare const calculateImageState: (src: string | null | undefined, isError: boolean, showStubOnError: boolean) => ImageState;