/** * Shared positioning utilities for components that need viewport edge/corner positioning. * Used by Dialog, Drawer, Toast, and potentially other overlay components. */ /** * Edge positions (used by Dialog, Drawer) */ export type EdgePosition = 'top' | 'bottom' | 'start' | 'end'; /** * Corner positions (used by Toast and other non-modal overlays) */ export type CornerPosition = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end'; /** * All supported positions */ export type Position = EdgePosition | CornerPosition; /** * Configuration for positioned elements */ export interface PositionConfig { /** Width for vertical edge positions (start/end) */ edgeWidth?: string; /** Height for horizontal edge positions (top/bottom) */ edgeHeight?: string; /** Max width for corner positions */ cornerMaxWidth?: string; /** Max height for corner positions */ cornerMaxHeight?: string; } /** * Default position configuration */ export declare const DEFAULT_POSITION_CONFIG: Required; /** * Check if position is an edge position */ export declare function isEdgePosition(position: Position | undefined): position is EdgePosition; /** * Check if position is a corner position */ export declare function isCornerPosition(position: Position | undefined): position is CornerPosition; /** * Check if position is horizontal (top/bottom or corner with top/bottom) */ export declare function isHorizontalPosition(position: Position | undefined): boolean; /** * Check if position is vertical (start/end) */ export declare function isVerticalPosition(position: Position | undefined): boolean; /** * Get the CSS attribute selector for a position * Used to create selectors like :host([position="top"]) */ export declare function getPositionSelector(position: Position, attributeName?: string): string; /** * Generate CSS for positioning logic * Returns CSS that can be included in component styles */ export declare function generatePositionCSS(hostSelector: string, containerClass: string, attributeName?: string, config?: PositionConfig): string; //# sourceMappingURL=positioning.d.ts.map