import { LimeWebComponent, StateOptions } from '..'; type OptionFactory = (options: StateOptions, component: LimeWebComponent) => StateOptions; /** * @group Core * @internal */ export interface StateDecoratorConfig { /** * Name of the state service to use in the platform */ name: string; /** * Name of the method on the service to use */ method?: string; /** * Factory for creating options dynamically * * @param options - decorator options * @param component - the web component * @returns state options */ optionFactory?: OptionFactory; } /** * Create a new state decorator * * @param options - decorator options * @param config - decorator configuration * @returns state decorator * @public */ export declare function createStateDecorator(options: StateOptions, config: StateDecoratorConfig): PropertyDecorator; export {};