import React from 'react'; import { Path, SanityDocument } from '@sanity/types'; interface WithParentProps { parent: ParentType; } export default function withParent(ComposedComponent: React.ComponentType): { new (props: Omit Path; }> & React.RefAttributes, "getValuePath">, context: any): { _input: any; _didShowFocusWarning: boolean; state: { document: Record; }; unsubscribe: () => void; componentWillUnmount(): void; focus(): void; setRef: (input: any) => void; render(): React.JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly Path; }> & React.RefAttributes, "getValuePath">, "document">>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly Path; }> & React.RefAttributes, "getValuePath">, "document">> & Readonly<{ children?: React.ReactNode; }>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly Path; }> & React.RefAttributes, "getValuePath">, "document">>, nextState: Readonly<{}>, nextContext: any): boolean; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly Path; }> & React.RefAttributes, "getValuePath">, "document">>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly Path; }> & React.RefAttributes, "getValuePath">, "document">>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly Path; }> & React.RefAttributes, "getValuePath">, "document">>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly Path; }> & React.RefAttributes, "getValuePath">, "document">>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly Path; }> & React.RefAttributes, "getValuePath">, "document">>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly Path; }> & React.RefAttributes, "getValuePath">, "document">>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextTypes: { formBuilder: import("prop-types").Requireable; }; contextType?: React.Context; }; export {}; //# sourceMappingURL=withParent.d.ts.map