export declare function localMinuteOfDay(now: Date, timezone: string): number | null;
export declare function inWindow(minute: number, start: number, end: number): boolean;
export declare function windowEndsAt(now: Date, minute: number, end: number): Date;
export type PrefsRow = {
    enabled: boolean;
    muted_categories: string[];
    quiet_start: number | null;
    quiet_end: number | null;
    timezone: string | null;
};
export type Gate = {
    kind: "pass";
} | {
    kind: "muted";
} | {
    kind: "deferred";
    until: Date;
};
export declare function evaluateGate(prefs: PrefsRow | undefined, category: string, now: Date): Gate;
