add initial marp implementation with sample content and build configuration
This commit is contained in:
34
node_modules/speech-rule-engine/js/common/processor.d.ts
generated
vendored
Normal file
34
node_modules/speech-rule-engine/js/common/processor.d.ts
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
import { Highlighter } from '../highlighter/highlighter.js';
|
||||
import { SpeechGenerator } from '../speech_generator/speech_generator.js';
|
||||
import { Walker } from '../walker/walker.js';
|
||||
import { KeyCode } from './event_util.js';
|
||||
export declare class Processor<T> {
|
||||
name: string;
|
||||
static LocalState: {
|
||||
walker: Walker;
|
||||
speechGenerator: SpeechGenerator;
|
||||
highlighter: Highlighter;
|
||||
};
|
||||
process: (p1: string) => T;
|
||||
postprocess: (p1: T, p2: string) => T;
|
||||
print: (p1: T) => string;
|
||||
pprint: (p1: T) => string;
|
||||
processor: (p1: string) => T;
|
||||
private static stringify_;
|
||||
constructor(name: string, methods: {
|
||||
processor: (p1: string) => T;
|
||||
postprocessor?: (p1: T, p2: string) => T;
|
||||
print?: (p1: T) => string;
|
||||
pprint?: (p1: T) => string;
|
||||
});
|
||||
}
|
||||
export declare class KeyProcessor<T> extends Processor<T> {
|
||||
key: (p1: KeyCode | string) => KeyCode;
|
||||
private static getKey_;
|
||||
constructor(name: string, methods: {
|
||||
processor: (p1: string) => T;
|
||||
key?: (p1: KeyCode | string) => KeyCode;
|
||||
print?: (p1: T) => string;
|
||||
pprint?: (p1: T) => string;
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user