aboutsummaryrefslogtreecommitdiff
path: root/src/background/completion/TabRepository.ts
blob: 57dbf21b3510b1bb32ec8baa371054e4ae52a0db (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[]>;
}