import { type Result } from './result';
export type NonEmptyArray<T> = [T, ...T[]];
export declare function fromArray<T>(items: readonly T[]): Result<NonEmptyArray<T>, 'empty_array'>;
export declare function mapNonEmptyArray<T, U>(items: NonEmptyArray<T>, map: (item: T, index: number) => U): NonEmptyArray<U>;
