UNPKG

@kubb/plugin-oas

Version:
46 lines (42 loc) 1.21 kB
import { S as Schema } from './Schema-BbIxCfn7.js'; import * as react from 'react'; import { Operation as Operation$1, Oas as Oas$1 } from '@kubb/oas'; import { KubbNode } from '@kubb/react/types'; import { b as OperationGenerator } from './OperationGenerator-DiF6WJNP.js'; import '@kubb/core'; import '@kubb/fs/types'; type Props$1 = { operation: Operation$1; children?: KubbNode; }; type OperationContextProps = { operation?: Operation$1; }; declare function Operation({ operation, children }: Props$1): any; declare namespace Operation { var Context: react.Context<OperationContextProps>; } type Props = { oas: Oas$1; operations?: Operation$1[]; /** * @deprecated */ generator?: Omit<OperationGenerator, 'build'>; children?: KubbNode; }; type OasContextProps = { oas?: Oas$1; operations?: Operation$1[]; /** * @deprecated */ generator?: Omit<OperationGenerator, 'build'>; }; declare function Oas({ oas, children, operations, generator }: Props): any; declare namespace Oas { var Context: react.Context<OasContextProps>; var Operation: typeof Operation; var Schema: typeof Schema; } export { Oas, Operation, Schema };