import { type SubscriptionView } from "./CurrentSubscriptionDialog.types"; export interface UseCurrentSubscriptionDialogProps { /** Callback that fetches the current subscription. Return null when no subscription (404). Throw for network/server errors. */ fetchSubscription: () => Promise; /** Called when user clicks subscribe in empty state */ onSubscribe?: () => void; /** Controls when fetching occurs; typically when dialog opens */ enabled?: boolean; } export declare const useCurrentSubscriptionDialog: ({ fetchSubscription, onSubscribe, enabled, }: UseCurrentSubscriptionDialogProps) => { readonly data: { loading: boolean; error: string | null; subscription: SubscriptionView | null; }; readonly fns: { retry: () => void; subscribe: () => void; }; }; export default useCurrentSubscriptionDialog;