import { InjectionToken, OnDestroy } from '@angular/core'; import * as i0 from "@angular/core"; export interface ManagedSubscription { accountId: string; planId: string; label: string; period: 'month' | 'year'; kind: 'personal' | 'organisation'; spaceID?: string; spaceTitle: string; status: string; paidThroughUTC: string; scheduledEndUTC: string; firstPaidUTC: string; currency?: string; regularMinor: number; renewalMinor: number; discountPercent: number; priceConfirmed: boolean; launchDiscount: boolean; bindingRevision: number; canCancel: boolean; canTransfer: boolean; sessionId?: string; } export interface SubscriptionSettingsPort { observeIdentity(callback: (id: string | null) => void): () => void; load(mode: 'live' | 'test', after: string): Promise<{ items: ManagedSubscription[]; next?: string; }>; read(mode: 'live' | 'test', id: string): Promise; cancel(mode: 'live' | 'test', id: string): Promise; transfer(mode: 'live' | 'test', item: ManagedSubscription, target: string, requestId: string): Promise; spaces(): { id: string; title: string; }[]; resume(mode: 'live' | 'test', item: ManagedSubscription): { path: string; query: Record; } | undefined; message(error: unknown): string; } export declare const SUBSCRIPTION_SETTINGS: InjectionToken; export declare class SubscriptionSettingsComponent implements OnDestroy { private readonly port; private readonly router; readonly accountId: import("@angular/core").InputSignal; readonly mode: import("@angular/core").InputSignal<"live" | "test">; readonly transferView: import("@angular/core").InputSignal; readonly requestId: import("@angular/core").InputSignal; readonly basePath: import("@angular/core").InputSignal; protected readonly identity: import("@angular/core").WritableSignal; protected readonly items: import("@angular/core").WritableSignal; protected readonly selected: import("@angular/core").WritableSignal; protected readonly busy: import("@angular/core").WritableSignal; protected readonly error: import("@angular/core").WritableSignal; protected readonly next: import("@angular/core").WritableSignal; protected readonly target: import("@angular/core").WritableSignal; protected readonly confirmCancel: import("@angular/core").WritableSignal; protected readonly query: import("@angular/core").Signal<{ checkout: string; } | { checkout?: undefined; }>; protected readonly transferQuery: import("@angular/core").Signal<{ requestId: string; checkout: string; } | { requestId: string; checkout?: undefined; }>; protected readonly validRequest: import("@angular/core").Signal; protected readonly eligibleSpaces: import("@angular/core").Signal<{ id: string; title: string; }[]>; private generation; private key; private readonly stop; constructor(); protected status(item: ManagedSubscription): string; protected resume(item: ManagedSubscription): { path: string; query: Record; } | undefined; private read; refresh(): void; protected loadMore(): void; protected cancel(): Promise; protected transfer(): Promise; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }