import React from "react"; import { IScope, Wrapper } from "./Scope"; export declare const NOT_FOUND: "__nθt_found__"; 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; __useRun: (scope: IScope, ...input: Input) => readonly [Output, Wrapper]; } export declare function createSvs(useHook: (scope: IScope, ...input: Input) => Output): ISvs; //# sourceMappingURL=createSvs.d.ts.map