import React from 'react'; import { Path, SanityDocument, SlugSchemaType, Marker } from '@sanity/types'; import { PatchEvent } from '../../PatchEvent'; export interface Slug { _type: 'slug'; current?: string; } declare type Props = { type: SlugSchemaType; level: number; value?: Slug; compareValue?: Slug; readOnly?: boolean; document: SanityDocument; onChange: (ev: PatchEvent) => void; onFocus: (pathOrEvent?: Path | React.FocusEvent) => void; getValuePath: () => Path; markers: Marker[]; presence: any; }; declare const _default: { new (props: Omit, "document">, "getValuePath"> | Readonly, "document">, "getValuePath">>): { _input: any; _didShowFocusWarning: boolean; focus(): void; setRef: (input: any) => void; render(): React.JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "document">, "getValuePath">>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly, "document">, "getValuePath">> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "document">, "getValuePath">>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "document">, "getValuePath">>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "document">, "getValuePath">>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "document">, "getValuePath">>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "document">, "getValuePath">>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "document">, "getValuePath">>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "document">, "getValuePath">>, nextState: Readonly<{}>, nextContext: any): void; }; new (props: Omit, "document">, "getValuePath">, context: any): { _input: any; _didShowFocusWarning: boolean; focus(): void; setRef: (input: any) => void; render(): React.JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "document">, "getValuePath">>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly, "document">, "getValuePath">> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "document">, "getValuePath">>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "document">, "getValuePath">>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "document">, "getValuePath">>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "document">, "getValuePath">>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "document">, "getValuePath">>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "document">, "getValuePath">>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "document">, "getValuePath">>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextTypes: { getValuePath: import("prop-types").Requireable; }; contextType?: React.Context; }; export default _default; //# sourceMappingURL=SlugInput.d.ts.map