export declare type CountMaxTilesOptions = {
    container: DOMRect;
    maxTiles: number;
};
export declare type CalculateGridOptions = {
    container: DOMRect;
    elements: number;
    gap: number;
};
export declare const countMaxTiles: ({ container, maxTiles }: CountMaxTilesOptions) => number;
export declare const calculateGrid: ({ container, elements, gap }: CalculateGridOptions) => {
    ratio: number;
    width: string;
    height: string;
    maxWidth: string;
    maxHeight: string;
    ratioWidth: number;
    ratioHeight: number;
};
export declare type CalculateGrid = ReturnType<typeof calculateGrid>;
export declare const manipulateSize: (container: DOMRect | null, size: CalculateGrid, index: number, tiles: number, rest: number) => {
    ratio: number;
    width: string;
    height: string;
    maxWidth: string;
    maxHeight: string;
    ratioWidth: number;
    ratioHeight: number;
} | {
    width: string;
    height: string | number;
    maxWidth?: undefined;
    maxHeight?: undefined;
} | {
    width: number;
    height: string | number;
    maxWidth: string;
    maxHeight: string;
};
