import * as React from 'react';
import { F as FestivalCardConfig, j as FestivalCardServiceOptions, h as FestivalCardConfigSummary, i as FestivalCardDbAdapter } from './types-D2WetAPc.js';

interface UseFestivalCardConfigOptions {
    initialConfig?: FestivalCardConfig;
    fetchConfig?: () => Promise<FestivalCardConfig>;
    onSave?: (config: FestivalCardConfig) => Promise<void> | void;
}
declare const useFestivalCardConfig: (options?: UseFestivalCardConfigOptions) => {
    config: FestivalCardConfig;
    setConfig: React.Dispatch<React.SetStateAction<FestivalCardConfig>>;
    loading: boolean;
    saving: boolean;
    save: () => Promise<void>;
};

declare class FestivalCardService {
    private db;
    constructor(options?: FestivalCardServiceOptions);
    listConfigs(): Promise<FestivalCardConfigSummary[]>;
    getConfig(cardId?: string): Promise<FestivalCardConfig>;
    saveConfig(cardId: string, config: FestivalCardConfig): Promise<FestivalCardConfig>;
    deleteConfig(cardId: string): Promise<void>;
}
declare const createInMemoryFestivalCardDb: () => FestivalCardDbAdapter;

export { FestivalCardService as F, createInMemoryFestivalCardDb as c, useFestivalCardConfig as u };
