import React, { useContext } from "react";
import { IScope, Wrapper, useScope } from "./Scope";
export const NOT_FOUND = "__nθt_found__" as const;
export interface ISvs {
/**
* Shorthand for `const scope = useScope(); const output = scope.useProvideSvs(svs, ...input);`
*/
useProvideNewScope(...input: Input): readonly [IScope, Output];
/**
* Find nearest service output from ancestor components.
* When optional==true, return NOT_FOUND when service not found.
* Otherwise, throw error when service not found.
*/
useCtxConsume(): Output;
useCtxConsume(optional: boolean): Output | typeof NOT_FOUND;
}
export interface ISvsInternal
extends ISvs {
__ctx: React.Context