import { type Children } from "@alloy-js/core"; import type { CallSignatureProps } from "./CallSignature.jsx"; import { FunctionBody, FunctionParameters, TypeParameters } from "./FunctionBase.jsx"; export interface ArrowFunctionProps extends CallSignatureProps { async?: boolean; children?: Children; } /** * A TypeScript arrow function expression. * * @example * ```tsx * * return a + b; * * ``` * renders to * ```ts * async (a, b) => { return a + b; } * ``` * * @remarks * * Providing parameters and type parameters can be accomplished in one of three * ways: * * 1. As an array of {@link ParameterDescriptor}s or * {@link TypeParameterDescriptor}s. * 2. As raw content via the `parametersChildren` or `typeParametersChildren` * props. * 3. As a child of this component via the * {@link (ArrowFunction:namespace).Parameters} or * {@link (ArrowFunction:namespace).TypeParameters} components. */ export declare function ArrowFunction(props: ArrowFunctionProps): Children; export declare namespace ArrowFunction { export { TypeParameters }; export { FunctionParameters as Parameters }; export { FunctionBody as Body }; } //# sourceMappingURL=ArrowFunction.d.ts.map