`;
}
}
/**
* Context for `Alert.show`/`Alert.showAsync` function(s) to programmatically render a new `` instance.
*/
export type AlertInit = {
/**
* The id to apply to the Alert element.
*/
id?: string;
/**
* A function that returns, or an instance of content to render as the alert status indicator
*/
statusIndicator?: RenderFunction | RenderResult;
/**
* A function that returns, or an instance of content to render in the alert header
*/
header?: RenderFunction | RenderResult;
/**
* A function that returns, or an instance of content to render as alert body
*/
body?: RenderFunction | RenderResult;
/**
* A function that returns, or an instance of content to render as the alert primary action
*/
primary?: RenderFunction | RenderResult;
/**
* A function that returns, or an instance of content to render as the alert secondary action
*/
secondary?: RenderFunction | RenderResult;
/**
* The alert status (Defaults to 'none').
*/
status?: 'success' | 'warning' | 'error' | 'info' | 'none';
/**
* The alert header message.
*/
message?: string;
/**
* Header content horizontal alignment:
* - `left` Align header to the left.
* - `center` Align header to the center. (Default)
* - `right` Align header to the right.
*/
headerAlign?: 'left' | 'center' | 'right';
/**
* The alert detail message.
*/
description?: string;
/**
* Description content horizontal alignment:
* - `left` Align description content to the left.
* - `center` Align description content to the center. (Default)
* - `right` Align description content to the right.
*/
descriptionAlign?: 'left' | 'center' | 'right';
/**
* The primary action button label (Defaults to 'Ok').
*/
primaryAction?: string;
/**
* The secondary action button label (Defaults to 'Cancel').
*/
secondaryAction?: string;
/**
* If true, will provide a secondary action button.
*/
enableSecondary?: boolean;
/**
* Action button(s) horizontal alignment:
* - `left` Align action button(s) to the left.
* - `center` Align action button(s) to the center.
* - `right` Align action button(s) to the right. (Default)
* - `stretch` Align action button(s) stretched to fill the horizontal space.
*/
actionAlign?: 'left' | 'center' | 'right' | 'stretch';
};
declare global {
interface HTMLElementTagNameMap {
'omni-alert': Alert;
}
}