aboutsummaryrefslogtreecommitdiff
path: root/src/background/completion/TabRepository.ts
blob: fe1b601a8e971f88a6e250fde7f1c62426d52b36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export type Tab = {
  id: number
  index: number
  active: boolean
  title: string
  url: string
  faviconUrl?: string
}

export default interface TabRepository {
  queryTabs(query: string, excludePinned: boolean): Promise<Tab[]>;

  getAllTabs(excludePinned: boolean): Promise<Tab[]>
}