import type { GuildSettings } from './types/giveaway.js'; /** * Resolve the persisted giveaway settings for a Discord guild. * * Defaults are applied automatically when a guild has not stored any custom * settings yet, ensuring downstream consumers always receive a complete * {@link GuildSettings} object. * * @param guildId - Discord guild ID to load settings for. * @returns Promise that resolves to the guild's configured giveaway settings. * @example * const settings = await getGuildSettings('123456789012345678') * console.log(settings.defaults.winners) */ export declare function getGuildSettings(guildId: string): Promise; /** * Persist custom giveaway settings for a Discord guild. * * This overwrites the guild's stored configuration, replacing the default * values provided by {@link DEFAULT_SETTINGS}. Values are stored in * Flashcore under a deterministic namespace keyed by the guild ID. * * @param guildId - Discord guild ID whose settings should be updated. * @param settings - Complete {@link GuildSettings} object to persist. * @returns Promise that resolves once the settings have been written. * @example * await setGuildSettings('123456789012345678', { * defaults: { winners: 2, duration: '2h', buttonLabel: 'Join', dmWinners: true }, * limits: { maxWinners: 10, maxDurationDays: 14 }, * restrictions: { allowRoleIds: [], denyRoleIds: [], minAccountAgeDays: null } * }) */ export declare function setGuildSettings(guildId: string, settings: GuildSettings): Promise; export type { Giveaway, GuildSettings } from './types/giveaway.js';