} refetch - Manually trigger SvelteKit data refresh (invalidateAll)
*
* @example
* ```svelte
*
*
*
* {#if customer}
* Welcome {customer.name}!
* Messages: {customer.features?.messages?.balance}
* {#if !canUpload}
*
* {/if}
* {/if}
* ```
*
* @example
* ```svelte
*
*
*
*
*
* ```
*
* @example
* ```svelte
*
*
*
*
*
*
*
*
* {#if customer?.features?.messages}
* Usage: {customer.features.messages.usage} / {customer.features.messages.included_usage}
* {/if}
* ```
*/
export declare function useCustomer(): {
readonly customer: Customer | null;
allowed: (params: import("./index.js").CheckParams) => import("./index.js").LocalCheckResult;
check: (params: import("./index.js").CheckParams, options?: import("./index.js").RefetchOptions) => Promise;
checkout: (params: import("./index.js").CheckoutParams, options?: import("./index.js").RefetchOptions) => Promise;
track: (params: import("./index.js").TrackParams, options?: import("./index.js").RefetchOptions) => Promise;
attach: (params: import("./index.js").AttachParams, options?: import("./index.js").RefetchOptions) => Promise;
cancel: (params: import("./index.js").CancelParams, options?: import("./index.js").RefetchOptions) => Promise;
openBillingPortal: (params?: import("./index.js").BillingPortalParams) => Promise;
createEntity: (params: import("./index.js").CreateEntityParams, options?: import("./index.js").RefetchOptions) => Promise;
getEntity: (params: import("./index.js").GetEntityParams) => Promise;
setupPayment: (params?: import("./index.js").SetupPaymentParams, options?: import("./index.js").RefetchOptions) => Promise;
createReferralCode: (params: import("./index.js").CreateReferralCodeParams, options?: import("./index.js").RefetchOptions) => Promise;
redeemReferralCode: (params: import("./index.js").RedeemReferralCodeParams, options?: import("./index.js").RefetchOptions) => Promise;
listProducts: () => Promise;
usage: (params: import("./index.js").SetUsageParams) => Promise;
query: (params: import("./index.js").QueryParams) => Promise;
listEvents: (params: import("./index.js").EventListParams) => Promise;
aggregateEvents: (params: import("./index.js").EventAggregateParams) => Promise;
refetch: () => Promise;
};
/**
* Check if Autumn has been set up in the current context
*/
export declare function isAutumnSetup(): boolean;
/**
* Helper for managing loading, error, and result state for Autumn operations.
*
* Reduces boilerplate when calling async billing operations like checkout, track, etc.
* Returns reactive state ($state runes) that automatically updates during operation execution.
*
* @see {@link useAutumnOperation} for detailed documentation and examples
*/
export { useAutumnOperation } from "./client.svelte.js";
export type { Customer, Entity, Feature, Product, ProductItem, CheckParams, CheckResult, CheckoutParams, CheckoutResult, TrackParams, TrackResult, AttachParams, AttachResult, AttachFeatureOptions, CancelParams, BillingPortalParams, BillingPortalResult, CreateEntityParams, GetEntityParams, SetupPaymentParams, SetupPaymentResult, CreateReferralCodeParams, CreateReferralCodeResult, RedeemReferralCodeParams, RedeemReferralCodeResult, SetUsageParams, SetUsageResult, QueryParams, QueryResult, EventRecord, EventListParams, EventListResult, EventAggregateParams, LocalCheckResult, RefetchOptions, AutumnConvexApi, } from "../svelte/types.js";
export type { AutumnServerState, InvalidateFunction } from "./client.svelte.js";
//# sourceMappingURL=index.d.ts.map