import { type ComponentProps, type FC, type PropsWithChildren, type RefObject } from 'react'; import { type FocusTrapRef } from './FocusTrap'; import type { DialogSize } from './types'; export type DialogContentInnerProps = PropsWithChildren<{ /** * オーバーレイをクリックした時に発火するコールバック関数 */ onClickOverlay?: () => void; /** * エスケープキーを押下した時に発火するコールバック関数 */ onPressEscape?: () => void; /** * ダイアログを開いているかどうか */ isOpen: boolean; /** * @deprecated ダイアログの幅を指定する場合は、`width` ではなく `size` を使用してください。 * ダイアログの幅 */ width?: string | number; /** * ダイアログの大きさ */ size?: DialogSize; /** * ダイアログの `id` * TODO 使われてなさそうなので確認 */ id?: string; /** * ダイアログを開いた時にフォーカスする対象 */ firstFocusTarget?: RefObject; /** * ダイアログの `aria-label` */ ariaLabel?: string; /** * ダイアログの `aria-labelledby` */ ariaLabelledby?: string; /** * ダイアログトップのフォーカストラップへの ref */ focusTrapRef?: RefObject; }>; type Props = DialogContentInnerProps & Omit, keyof DialogContentInnerProps>; export declare const DialogContentInner: FC; export {};