Dorian 0d073fa89e Add comprehensive installation and setup documentation
- Add GETTING_STARTED.md with quick start guide and development modes
- Add INSTALL.sh automated installation script
- Add INSTALLATION_CHECKLIST.md, INSTALLATION_SUCCESS.md, and INSTALLATION_SUMMARY.md
- Add QUICK_REFERENCE.md for common commands
- Add SETUP_GUIDE.md with detailed setup instructions
- Update README.md with improved project overview
- Add did-wallet app dependencies and node_modules
2026-01-27 17:18:21 +00:00

28 lines
793 B
TypeScript

import { Encoding, MixedEncoding, KnownEncoding, KnownEncodingName } from './lib/encoding'
export class Transcoder<T = any> {
/**
* Create a Transcoder.
* @param formats Formats supported by consumer.
*/
constructor (formats: Array<'buffer'|'view'|'utf8'>)
/**
* Get an array of supported encoding objects.
*/
encodings (): Array<Encoding<any, T, any>>
/**
* Get the given encoding, creating a transcoder encoding if necessary.
* @param encoding Named encoding or encoding object.
*/
encoding<TIn, TFormat, TOut> (
encoding: MixedEncoding<TIn, TFormat, TOut>
): Encoding<TIn, T, TOut>
encoding<N extends KnownEncodingName> (encoding: N): KnownEncoding<N, T>
encoding (encoding: string): Encoding<any, T, any>
}
export * from './lib/encoding'