import { Json, JsonTypes } from "atom.io/foundations/json"; import { CSSProperties, Component, DetailedHTMLProps, ErrorInfo, FC, ForwardRefExoticComponent, InputHTMLAttributes, ReactElement, ReactNode } from "react"; //#region src/react-devtools/AtomIODevtools.d.ts declare const AtomIODevtools: React.FC<{ hideByDefault?: boolean; }>; //#endregion //#region src/react-devtools/elastic-input/ElasticInput.d.ts type ElasticInputProps = DetailedHTMLProps, HTMLInputElement> & { widthPadding?: number; }; declare const ElasticInput: ForwardRefExoticComponent, HTMLInputElement> & { widthPadding?: number; }>; //#endregion //#region src/react-devtools/elastic-input/NumberInput.d.ts declare function clampInto(min: number, max: number): (value: number) => number; declare const VALID_NON_NUMBERS: readonly ["", "-", ".", "-."]; type ValidNonNumber = (typeof VALID_NON_NUMBERS)[number]; declare const isValidNonNumber: (input: string) => input is ValidNonNumber; declare const VALID_NON_NUMBER_INTERPRETATIONS: Readonly>; type DecimalInProgress = `${number | ``}.${number}`; declare const isDecimalInProgress: (input: string) => input is DecimalInProgress; type NumberConstraints = { max: number; min: number; decimalPlaces: number; nullable: boolean; }; declare const DEFAULT_NUMBER_CONSTRAINTS: NumberConstraints; type NumberInputProps = Partial & { autoSize?: boolean; disabled?: boolean; id?: string; label?: string; name?: string; onChange?: (e: React.ChangeEvent) => void; onClick?: (e: React.MouseEvent) => void; placeholder?: string; set?: ((newValue: number | null) => void) | undefined; testid?: string; value?: number | null; }; declare const NumberInput: FC; //#endregion //#region src/react-devtools/elastic-input/TextInput.d.ts type TextInputProps = { value: string; set?: ((value: string) => void) | undefined; label?: string; placeholder?: string; autoSize?: boolean; readOnly?: boolean; testid?: string; }; declare const TextInput: FC; //#endregion //#region src/react-devtools/error-boundary/DefaultFallback.d.ts type FallbackProps = { error?: Error | string | undefined; errorInfo?: ErrorInfo | undefined; }; declare const DefaultFallback: FC; //#endregion //#region src/react-devtools/error-boundary/ReactErrorBoundary.d.ts type ErrorBoundaryState = { error?: Error | string; errorInfo?: ErrorInfo; }; type ErrorBoundaryProps = { children: ReactNode; onError?: ((error: Error | string, errorInfo: ErrorInfo) => void) | undefined; Fallback?: FC | undefined; resetErrorState?: () => void; useErrorState?: () => [ErrorBoundaryState, (newState: ErrorBoundaryState | ((currState: ErrorBoundaryState) => ErrorBoundaryState)) => void]; }; declare class ErrorBoundary extends Component { constructor(props: ErrorBoundaryProps); override componentDidCatch(error: Error, errorInfo: ErrorInfo): void; override render(): ReactNode; } //#endregion //#region src/react-devtools/json-editor/default-components.d.ts type Dict = Record; type WrapperComponent = Dict> = FC; type WC = Dict> = WrapperComponent; type JsonEditorComponents = { ErrorBoundary: WC; Button: WC<{ onClick?: () => void; disabled?: boolean; }>; DeleteIcon: FC; AddIcon: FC; EditorWrapper: WC<{ style?: CSSProperties | undefined; className?: string | undefined; testid?: string | undefined; }>; ArrayWrapper: WC; ObjectWrapper: WC; StringWrapper: WC; NumberWrapper: WC; BooleanWrapper: WC; Null: FC<{ testid?: string | undefined; }>; MissingPropertyWrapper: WC; KeyWrapper: WC; }; declare const DEFAULT_JSON_EDITOR_COMPONENTS: JsonEditorComponents; //#endregion //#region src/react-devtools/json-editor/json-editor-internal.d.ts type JsonEditorProps_INTERNAL = { data: T; set: SetterOrUpdater; name?: string | undefined; rename?: ((newKey: string) => void) | undefined; remove?: (() => void) | undefined; recast?: (newType: keyof JsonTypes) => void; path?: ReadonlyArray; isReadonly?: (path: ReadonlyArray) => boolean; isHidden?: (path: ReadonlyArray) => boolean; className?: string | undefined; style?: CSSProperties | undefined; Header?: FC<{ data: T; }> | undefined; Components: JsonEditorComponents; isOpen?: boolean; setIsOpen?: (newValue: boolean) => void; testid?: string | undefined; }; //#endregion //#region src/react-devtools/json-editor/developer-interface.d.ts declare const SubEditors: Record>>; type JsonEditorProps = { data: T; set: (valOrUpdater: T | ((currVal: T) => T)) => void; name?: string | undefined; rename?: ((newKey: string) => void) | undefined; remove?: (() => void) | undefined; path?: ReadonlyArray; isReadonly?: (path: ReadonlyArray) => boolean; isHidden?: (path: ReadonlyArray) => boolean; className?: string; style?: CSSProperties; Header?: FC<{ data: T; }>; Components?: Partial; testid?: string | undefined; }; declare const JsonEditor: ({ data, set, name, rename, remove, path, isReadonly, isHidden, className, Header, style, Components: CustomComponents, testid }: JsonEditorProps) => ReactElement; //#endregion //#region src/react-devtools/json-editor/editors-by-type/utilities/cast-to-json.d.ts declare const castToJson: (input: unknown) => { array: Json.Tree.Array; boolean: boolean; number: number; object: Json.Tree.Object; string: string; null: null; }; //#endregion //#region src/react-devtools/json-editor/index.d.ts type SetterOrUpdater = (next: New | ((old: T) => New)) => void; //#endregion export { AtomIODevtools, DEFAULT_JSON_EDITOR_COMPONENTS, DEFAULT_NUMBER_CONSTRAINTS, DecimalInProgress, DefaultFallback, Dict, ElasticInput, ElasticInputProps, ErrorBoundary, ErrorBoundaryProps, ErrorBoundaryState, FallbackProps, JsonEditor, JsonEditorComponents, JsonEditorProps, NumberConstraints, NumberInput, SetterOrUpdater, SubEditors, TextInput, TextInputProps, VALID_NON_NUMBERS, VALID_NON_NUMBER_INTERPRETATIONS, ValidNonNumber, WC, WrapperComponent, castToJson, clampInto, isDecimalInProgress, isValidNonNumber }; //# sourceMappingURL=index.d.ts.map