2018-07-10 12:20:53 +00:00
|
|
|
import { PatternConfig } from './types';
|
2018-07-10 19:29:09 +02:00
|
|
|
import Part from './part';
|
|
|
|
import Option from './option';
|
2018-07-10 12:20:53 +00:00
|
|
|
export default class Pattern {
|
|
|
|
config: PatternConfig;
|
2018-07-10 19:29:09 +02:00
|
|
|
parts: {
|
|
|
|
[propName: string]: Part;
|
|
|
|
};
|
|
|
|
options: {
|
|
|
|
[propName: string]: Option;
|
|
|
|
};
|
2018-07-10 12:20:53 +00:00
|
|
|
constructor(config: PatternConfig);
|
2018-07-10 19:29:09 +02:00
|
|
|
draft(config: object): void;
|
2018-07-10 12:20:53 +00:00
|
|
|
}
|