import Elysia$1, { Elysia } from 'elysia'; import { E as EdenQueryStoreKey, G as GenericElysiaPlugin, a as EdenQueryConstraints } from './constraints-iwkJs7sG.cjs'; export { B as BatchPluginOptions, b as BatchedRequestData, c as batchPlugin, s as safeBatchPlugin } from './constraints-iwkJs7sG.cjs'; import { D as DataTransformerOptions } from './transformer-BrEsAU6i.cjs'; /** * @fixme: * * TS 4118 The type of this node cannot be serialized because its property '[EdenQueryStoreKey]' cannot be serialized. * * Turn off declaration: true and declarationMap: true */ declare function safeTransformPlugin(transformer: T): (elysia: Elysia) => Elysia; derive: {}; resolve: {}; }>; declare function transformPlugin(transformer: DataTransformerOptions): GenericElysiaPlugin; type EdenPluginOptions = EdenQueryConstraints; /** * Combines both the batch and transform plugins, ___and orders them properly___. * * The transform plugin (if used) needs to be set before the batch plugin. * * -- * * Type Invariants * * > Constraints that are captured on the type-level. * * If the server has enabled batching, the client can use batching if desired. * If the server has NOT enabled batching, the client can NOT use a batch link. * * If the server has enabled a transformer, the client MUST apply the same transformer. * If the server has NOT enabled any transformers, the client can opt-in to using a transformer; * this is at your own risk, since eden allows transformers to be specified for any request, * but it's not guranteed to be parsed correctly by the server... */ declare function safeEdenPlugin(config: T): (elysia: Elysia$1) => Elysia$1; derive: {}; resolve: {}; }>; /** * Combines both the batch and transform plugins, ___and orders them properly___. * * The transform plugin (if used) needs to be set before the batch plugin. * * -- * * Type Invariants * * > Constraints that are captured on the type-level. * * If the server has enabled batching, the client can use batching if desired. * If the server has NOT enabled batching, the client can NOT use a batch link. * * If the server has enabled a transformer, the client MUST apply the same transformer. * If the server has NOT enabled any transformers, the client can opt-in to using a transformer; * this is at your own risk, since eden allows transformers to be specified for any request, * but it's not guranteed to be parsed correctly by the server... */ declare function edenPlugin(config: EdenQueryConstraints): GenericElysiaPlugin; export { type EdenPluginOptions, edenPlugin, safeEdenPlugin, safeTransformPlugin, transformPlugin };