declare function shouldDisplay ( ) ; function displayItems ( items ) { if ( shouldDisplay ) { } } declare function shouldDisplayAsync ( ) ; async function displayItemsAsync ( items ) { if ( shouldDisplayAsync ) { } }