import { RuntimeFunctionRef, s } from '@hashbrownai/core'; import { DependencyList } from 'react'; /** * Creates a function with an input schema. * * @public * @param cfg - The configuration for the function containing: * - name: The name of the function * - description: The description of the function * - args: The input schema of the function * - result: The result schema of the function * - handler: The handler of the function * - deps: The dependencies of the function * @returns The function reference. * @public */ export declare function useRuntimeFunction(cfg: { name: string; description: string; deps: DependencyList; args: ArgsSchema; result: ResultSchema; handler: (input: s.Infer, abortSignal?: AbortSignal) => s.Infer | Promise>; }): RuntimeFunctionRef, s.Infer>; /** * Creates a function without an input schema. * * @param cfg - The configuration for the function containing: * - name: The name of the function * - description: The description of the function * - result: The result schema of the function * - handler: The handler of the function * - deps: The dependencies of the function * @returns The function reference. * @public */ export declare function useRuntimeFunction(cfg: { name: string; description: string; deps: DependencyList; result: ResultSchema; handler: (abortSignal?: AbortSignal) => s.Infer | Promise>; }): RuntimeFunctionRef>; /** * Creates a function with an input schema. * * @param cfg - The configuration for the function containing: * - name: The name of the function * - description: The description of the function * - args: The args schema of the function * - handler: The handler of the function * - deps: The dependencies of the function * @returns The function reference. * @public */ export declare function useRuntimeFunction(cfg: { name: string; description: string; deps: DependencyList; args: ArgsSchema; handler: (args: s.Infer, abortSignal?: AbortSignal) => void | Promise; }): RuntimeFunctionRef, void>; /** * Creates a function without input or output schema. * * @param cfg - The configuration for the function containing: * - name: The name of the function * - description: The description of the function * - handler: The handler of the function, which returns void or a promise thereof * - deps: The dependencies of the function * @returns The function reference. * @public */ export declare function useRuntimeFunction(cfg: { name: string; description: string; deps: DependencyList; handler: (abortSignal?: AbortSignal) => void | Promise; }): RuntimeFunctionRef; //# sourceMappingURL=use-runtime-function.d.ts.map