export type ArrayOr<T> = T | T[];
/** Names of the parsers that are built into PixiJS. */
export type LoadParserName = 'loadJson' | 'loadSVG' | 'loadTextures' | 'loadTxt' | 'loadVideo' | 'loadWebFont' | string;
/** A fully resolved asset, with all the information needed to load it. */
export interface ResolvedAsset<T = any> {
    /** Aliases associated with asset */
    alias?: string[];
    /**
     * Please use `alias` instead.
     * @deprecated since 7.3.0
     */
    name?: string[];
    /** The URL or relative path to the asset */
    src?: string;
    /**
     * Please use `src` instead.
     * @deprecated since 7.3.0
     */
    srcs?: string;
    /** Optional data */
    data?: T;
    /** Format, usually the file extension */
    format?: string;
    /** An override that will ensure that the asset is loaded with a specific parser */
    loadParser?: LoadParserName;
    [key: string]: any;
}
/** A fully resolved src, Glob patterns will not work here, and the src will be resolved to a single file. */
export type ResolvedSrc = Pick<ResolvedAsset, 'src' | 'srcs' | 'format' | 'loadParser' | 'data'> & {
    [key: string]: any;
};
export type AssetSrc = ArrayOr<string> | ArrayOr<ResolvedSrc>;
/** An asset that has not been resolved yet. */
export interface UnresolvedAsset<T = any> extends Omit<ResolvedAsset<T>, 'src' | 'srcs' | 'name' | 'alias'> {
    /** Aliases associated with asset */
    alias?: ArrayOr<string>;
    /** The URL or relative path to the asset */
    src?: AssetSrc;
    /**
     * Please use `alias` instead.
     * @deprecated since 7.3.0
     */
    name?: ArrayOr<string>;
    /**
     * Please use `src` instead.
     * @deprecated since 7.3.0
     */
    srcs?: AssetSrc;
}
/** The object version of an unresolved asset */
export type UnresolvedAssetObject = Omit<UnresolvedAsset, 'name' | 'alias'>;
/** Structure of a bundle found in a manifest file */
export interface AssetsBundle {
    name: string;
    assets: UnresolvedAsset[] | Record<string, ArrayOr<string> | UnresolvedAssetObject>;
}
/** The expected format of a manifest. This would normally be auto generated or made by the developer */
export interface AssetsManifest {
    bundles: AssetsBundle[];
}
