@revenuecat/purchases-ui-js
Version:
Web components for Paywalls. Powered by RevenueCat
20 lines (19 loc) • 858 B
TypeScript
import type { Component } from "../../../types/component";
import type { PackageProps } from "../../../types/components/package";
import type { StackProps } from "../../../types/components/stack";
import type { TextNodeProps } from "../../../types/components/text";
export declare function createStack({ id, name, components, }: {
id: string;
name: string;
components: Component[];
}): StackProps;
export declare function createPackageComponent({ id, name, package_id, is_selected_by_default, stackId, stackName, components, }: Pick<PackageProps, "id" | "name" | "package_id" | "is_selected_by_default"> & {
stackId?: string;
stackName?: string;
components: Component[];
}): PackageProps;
export declare function createTextComponent({ id, name, textLid, }: {
id: string;
name?: string;
textLid: string;
}): TextNodeProps;