import { OpaqueToolkit } from '@dxos/ai'; import { Operation } from '@dxos/compute'; import { type Type } from '@dxos/echo'; import { type FunctionProtocol } from '@dxos/protocols'; export interface FunctionWrappingOptions { /** * Additional types to register with the database. */ types?: Type.AnyEntity[]; /** * Toolkits to make available via the `OpaqueToolkitProvider`. */ toolkits?: OpaqueToolkit.OpaqueToolkit[]; } /** * Wraps a function handler made with `defineFunction` to a protocol that the functions-runtime expects. */ export declare const wrapFunctionHandler: (func: Operation.WithHandler, opts?: FunctionWrappingOptions) => FunctionProtocol.Func; //# sourceMappingURL=protocol.d.ts.map