import { default as React, ReactNode } from 'react';
export type ConfirmOptions = {
    title?: string;
    message: ReactNode;
    confirmText?: string;
    cancelText?: string;
    cancelClassName?: string;
    confirmClassName?: string;
    dialogClassname?: string;
    /**
     * Custom footer actions. Jika diberikan sebagai function, akan menerima handleClose sebagai parameter.
     * Jika diberikan sebagai ReactNode, user harus handle close sendiri.
     */
    footerActions?: ((handleClose: (answer: boolean) => void) => ReactNode) | ReactNode;
};
export type ConfirmationContextValue = {
    confirm: (opts: ConfirmOptions) => Promise<boolean>;
};
export declare const ConfirmationContext: React.Context<ConfirmationContextValue>;
export declare const useConfirmation: () => ConfirmationContextValue;
export declare const ConfirmationProvider: React.FC<{
    children: ReactNode;
}>;
//# sourceMappingURL=ConfirmationProvider.d.ts.map