cyphertap
Version:
Nostr, Lightning and Ecash on a single Button component
12 lines (11 loc) • 517 B
TypeScript
export type ScanResultType = 'lightning' | 'ecash' | 'private-key' | 'link' | 'unknown';
export interface ScanResult {
type: ScanResultType;
data: string;
}
export declare const scanResult: {
subscribe: (this: void, run: import("svelte/store").Subscriber<ScanResult | null>, invalidate?: () => void) => import("svelte/store").Unsubscriber;
setResult: (type: ScanResultType, data: string) => void;
clearResult: () => void;
};
export declare function identifyScanType(data: string): ScanResultType;