import { Construct } from "aws-cdk-lib"; import { UserPool } from "aws-cdk-lib/aws-cognito"; import { GraphqlApi } from "aws-cdk-lib/lib/aws-appsync"; import { Table, TableProps } from "aws-cdk-lib/aws-dynamodb"; import { Routing } from "../routing"; export interface ApiOptions { } export interface ApiProps extends ApiOptions { /** * Routing to use for custom domains * * If present, the RestApi will be aliased to the API domain name * * @default - The API will not use a custom domain name */ routing?: Routing; /** * Cognito User Pool to use for authorization * * @default - The API will use the AppSync default */ userPool?: UserPool; } /** * A Construct to create and deploy the application's API */ export declare class Api extends GraphqlApi { constructor(scope: Construct, props: ApiProps); addTable(name: string, props: TableProps): Table; }