text-editor-drcsystems
Version:
Text Editor Made with Love by DRC Systems
17 lines (16 loc) • 598 B
TypeScript
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import { ReactNode } from 'react';
declare type Suggestion = null | string;
declare type PublishFn = (newSuggestion: Suggestion) => void;
declare type HookShape = [suggestion: Suggestion, setSuggestion: PublishFn];
export declare const SharedAutocompleteContext: ({ children, }: {
children: ReactNode;
}) => JSX.Element;
export declare const useSharedAutocompleteContext: () => HookShape;
export {};