/** * Plans — per-project subscription plan CRUD + Stripe sync. * * GET /plans/projects/:id/plans — list plans for project * GET /plans/projects/:id/plans/:planId — get plan * POST /plans/plans — create * PATCH /plans/plans/:planId — update * DELETE /plans/plans/:planId — delete * POST /plans/plans/:planId/sync-stripe — push to Stripe * POST /plans/plans/reorder — reorder display */ import type { Client } from './client.js'; export interface Plan { readonly id: string; readonly projectId: string; readonly name: string; readonly slug: string; readonly priceUsdCents: number; readonly intervalDays: number; readonly stripePriceId: string | null; readonly features: readonly string[]; readonly displayOrder: number; readonly archivedAt: string | null; readonly createdAt: string; } export declare const list: (client: Client, projectId: string) => Promise<{ plans: readonly Plan[]; }>; export declare const get: (client: Client, projectId: string, planId: string) => Promise<{ plan: Plan; }>; export interface CreatePlanInput { readonly projectId: string; readonly name: string; readonly slug: string; readonly priceUsdCents: number; readonly intervalDays?: number; readonly features?: readonly string[]; } export declare const create: (client: Client, body: CreatePlanInput) => Promise<{ plan: Plan; }>; export interface UpdatePlanInput { readonly name?: string; readonly priceUsdCents?: number; readonly intervalDays?: number; readonly features?: readonly string[]; readonly archived?: boolean; } export declare const update: (client: Client, planId: string, body: UpdatePlanInput) => Promise<{ plan: Plan; }>; declare const _delete: (client: Client, planId: string) => Promise<{ success: boolean; }>; export { _delete as delete }; export declare const syncStripe: (client: Client, planId: string) => Promise<{ plan: Plan; stripePriceId: string; }>; export declare const reorder: (client: Client, body: { readonly order: readonly string[]; }) => Promise<{ success: boolean; }>; //# sourceMappingURL=plans.d.ts.map