import { DefaultClient } from "./Client"; interface TokenResponse { key: string; } export function tokenByIdentifier(identifier: string): Promise { return DefaultClient.fetch(["core", "tokens", identifier, "view_key"]).then( (r) => r.key ); }