1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-27 10:23:48 +01:00
bitwarden-estensione-browser/src/abstractions/import.service.ts

14 lines
458 B
TypeScript
Raw Normal View History

import { Importer } from '../importers/importer';
2018-08-06 16:37:57 +02:00
export interface ImportOption {
id: string;
name: string;
}
export abstract class ImportService {
2018-08-06 17:39:55 +02:00
featuredImportOptions: ImportOption[];
regularImportOptions: ImportOption[];
getImportOptions: () => ImportOption[];
import: (importer: Importer, fileContents: string, organizationId?: string) => Promise<Error>;
getImporter: (format: string, organization?: boolean) => Importer;
}