/** * PublishButton Component * * Two-step button for publishing a document to the live site. * First click shows a confirmation prompt, second click publishes. */ import React from 'react'; import type { Checkpoint } from '@pantheon-systems/css-client'; interface PublishButtonProps { /** * Callback to publish the current document. */ onPublish: () => Promise; /** * Whether the button is disabled. */ disabled?: boolean; /** * Callback when publish succeeds. */ onSuccess?: (checkpoint: Checkpoint) => void; /** * Callback when publish fails. */ onError?: (error: Error) => void; /** * Additional CSS class name. */ className?: string; /** * Button text. */ children?: React.ReactNode; } /** * Two-step publish button. First click reveals a confirmation prompt * warning that this publishes to the live site. Confirming triggers * the actual publish. * * @example * ```tsx * console.log('Published:', cp.id)} * > * Publish * * ``` */ export declare function PublishButton({ onPublish, disabled, onSuccess, onError, className, children, }: PublishButtonProps): React.ReactElement; export {};