import { type Address } from '@solana/kit'; /** * Map the shared subscription period to the subscriptions program's * `period_hours` value. The Solana profile only supports `day` and `week`; * `month` cannot be represented exactly because the on-chain program uses * fixed elapsed seconds. * * @throws If the inputs cannot be represented on-chain. */ export declare function mapSubscriptionPeriodToHours(periodUnit: 'day' | 'week', periodCount: number): number; /** Verify the computed `period_hours` is within the on-chain program's [1, 8760] bound. */ export declare function assertPeriodHoursInRange(periodHours: number): void; /** * Derive the `SubscriptionAuthority` PDA for a given subscriber and mint. * Seeds: `["SubscriptionAuthority", subscriber, mint]`. */ export declare function deriveSubscriptionAuthorityPda(params: { mint: Address; programId: Address; subscriber: Address; }): Promise
; /** * Derive the `SubscriptionDelegation` PDA for a given plan and subscriber. * Seeds: `["subscription", plan_pda, subscriber]`. */ export declare function deriveSubscriptionPda(params: { planPda: Address; programId: Address; subscriber: Address; }): Promise
; //# sourceMappingURL=subscription.d.ts.map