import { type Children } from "@alloy-js/core"; import type { CallSignatureProps } from "./CallSignature.jsx"; import type { CommonDeclarationProps } from "./Declaration.js"; import { FunctionBody, FunctionParameters, TypeParameters } from "./FunctionBase.jsx"; export interface FunctionDeclarationProps extends CommonDeclarationProps, CallSignatureProps { async?: boolean; children?: Children; } /** * A TypeScript function declaration. * * @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 (FunctionDeclaration:namespace).Parameters} or * {@link (FunctionDeclaration:namespace).TypeParameters} components. */ export declare function FunctionDeclaration(props: FunctionDeclarationProps): Children; export declare namespace FunctionDeclaration { export { TypeParameters }; export { FunctionParameters as Parameters }; export { FunctionBody as Body }; } //# sourceMappingURL=FunctionDeclaration.d.ts.map