import * as apid from '../../../api' ; import * as mapid from '../../../node_modules/mirakurun/api' ; import Channel from '../../db/entities/Channel' ; export interface ChannelUpdateValues { insert : mapid . Service [ ] ; update : mapid . Service [ ] ; } export default interface IChannelDB { insert ( channels ) : Promise < void > ; update ( values ) : Promise < void > ; findId ( channelId ) : Promise < Channel | null > ; findChannleTypes ( types , needSort ? ) : Promise < Channel [ ] > ; findAll ( needSort ? ) : Promise < Channel [ ] > ; }