import { MultiModalResponse , ResourceWithMetadata } from '@kui-shell/core' ; const apiVersion = 'kui-shell/v1' ; const kind = 'File' ; export default interface File extends ResourceWithMetadata { apiVersion ; kind ; spec : { /** file as specified by user */ filepath : string ; /** absolute path to file */ fullpath : string ; /** file length */ size : number ; } ; } export function isFile ( response ) { return response . apiVersion === apiVersion && response . kind === kind ; }