UNPKG

1pux-to-csv

Version:
22 lines (21 loc) 801 B
/// <reference types="node" /> import { OnePuxData, OnePuxItem, OnePuxExport } from './types'; export declare const parse1PuxFile: (fileContents: string | Buffer | Uint8Array) => Promise<OnePuxExport>; declare type RowData = { name: string; tags: string; url: string; username: string; password: string; notes: string; extraFields: ExtraField[]; }; declare type ExtraFieldType = 'username' | 'password' | 'url' | 'email' | 'date' | 'month' | 'credit' | 'phone' | 'totp' | 'text'; declare type ExtraField = { name: string; value: string; type: ExtraFieldType; }; export declare const parseToRowData: (item: OnePuxItem['item'], defaultTags?: string[]) => RowData; export declare const convert1PuxDataToCSV: (onePuxData: OnePuxData) => Promise<string>; export {};