1
0

add initial marp implementation with sample content and build configuration

This commit is contained in:
2025-09-13 18:13:22 +02:00
parent dcacc9b409
commit e5f219507f
10319 changed files with 1402023 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import { AuditoryDescription } from '../audio/auditory_description.js';
import { Span } from '../audio/span.js';
declare abstract class FunctionsStore<S> {
private prefix;
private store;
protected constructor(prefix: string, store: {
[key: string]: S;
});
add(name: string, func: S): void;
addStore(store: FunctionsStore<S>): void;
lookup(name: string): S;
private checkCustomFunctionSyntax_;
}
export type CustomQuery = (p1: Element) => Element[];
export declare class CustomQueries extends FunctionsStore<CustomQuery> {
constructor();
}
export type CustomString = (p1: Element) => Span[];
export declare class CustomStrings extends FunctionsStore<CustomString> {
constructor();
}
export type ContextFunction = (p1: Element[] | Element, p2: string | null) => () => string | AuditoryDescription[];
export declare class ContextFunctions extends FunctionsStore<ContextFunction> {
constructor();
}
export type CustomGenerator = (store?: any, flag?: boolean) => string[] | void;
export declare class CustomGenerators extends FunctionsStore<CustomGenerator> {
constructor();
}
export type SpeechRuleFunction = CustomQuery | CustomString | ContextFunction | CustomGenerator;
export {};