Does какой decline? according to noun or part of speech?
It agrees with the noun like any adjective. with adverbs как is used.