UNPKG

885 BTypeScriptView Raw
1interface StoryData {
2 viewMode?: string;
3 storyId?: string;
4 refId?: string;
5}
6declare const parsePath: (path: string | undefined) => StoryData;
7interface Args {
8 [key: string]: any;
9}
10declare const DEEPLY_EQUAL: unique symbol;
11declare const deepDiff: (value: any, update: any) => any;
12declare const buildArgsParam: (initialArgs: Args | undefined, args: Args) => string;
13interface Query {
14 [key: string]: any;
15}
16declare const queryFromString: (s?: string) => Query;
17declare const queryFromLocation: (location: Partial<Location>) => Query;
18declare const stringifyQuery: (query: Query) => string;
19type Match = {
20 path: string;
21};
22declare const getMatch: (current: string, target: string | RegExp, startsWith?: any) => Match | null;
23
24export { DEEPLY_EQUAL, StoryData, buildArgsParam, deepDiff, getMatch, parsePath, queryFromLocation, queryFromString, stringifyQuery };