/// <reference types="react" />
declare type Flag = [
    boolean,
    {
        on: () => void;
        off: () => void;
        toggle: () => void;
        set: React.Dispatch<React.SetStateAction<boolean>>;
    }
];
export declare const useFlag: (initial?: boolean) => Flag;
export {};
