1 | import React, { ChangeEvent, Component } from 'react';
|
2 | import { KnobControlConfig, KnobControlProps } from './types';
|
3 | export declare type ArrayTypeKnobValue = string[] | readonly string[];
|
4 | export interface ArrayTypeKnob extends KnobControlConfig<ArrayTypeKnobValue> {
|
5 | separator: string;
|
6 | }
|
7 | interface ArrayTypeProps extends KnobControlProps<ArrayTypeKnobValue> {
|
8 | knob: ArrayTypeKnob;
|
9 | }
|
10 | export default class ArrayType extends Component<ArrayTypeProps> {
|
11 | static defaultProps: Partial<ArrayTypeProps>;
|
12 | static propTypes: {
|
13 | knob: React.Validator<ArrayTypeKnob>;
|
14 | onChange: React.Validator<(value: ArrayTypeKnobValue) => ArrayTypeKnobValue>;
|
15 | };
|
16 | static serialize: (value: ArrayTypeKnobValue) => ArrayTypeKnobValue;
|
17 | static deserialize: (value: string[] | Record<string, string>) => string[];
|
18 | shouldComponentUpdate(nextProps: Readonly<ArrayTypeProps>): boolean;
|
19 | handleChange: (e: ChangeEvent<HTMLTextAreaElement>) => void;
|
20 | render(): JSX.Element;
|
21 | }
|
22 | export {};
|